chrometweaks.org

If I buy a domain name from iPage.com, how do I actually make the website?

Click Here To View All Answers...


Got a question, hope someone can answer... If I buy a domain name from iPage.com, how do I actually make the website? Thanks for any comment. Another quick question... I need to add a back button on the product_info.php to return.

To the previously view page..

I tried using this code below (from shopping_cart.php, slightly modified).

But I can't get it to work properly, as I dont know how the 'isset($navigation->path[$back]))' and all that works..

<?php.

$back = sizeof($navigation->path)-3;.

If (isset($navigation->path[$back])) {.

?>.

<td class="main"><?php echo '<a href="'tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode'])'">'tep_image_button('button_back.gif', IMAGE_BUTTON_BACK)'</a>'; ?></td>.

<?php.

}.

?>..

Comments (78)

I'm stumped. I'm not so sure what is the answer. I'll do some poking around and get back to you if I bump into an useful answer. You should email the people at iPage as they probably could assist you..

Comment #1

This code added to footer.php will work also, giving you a back button on every osCommerce page, and works with all the browsers I have tested, including MSN and AOL9..

<tr>.

<td><p><center><! this script and many more avaliable from A1 javascripts all credit to A1javascripts. Please leave these comments intact thank you >.

<form><input type=button value="Back" onClick="history.back()"></form><! ></center></p></td>.

</tr>.

George..

Comment #2

I am wanting to use the back button instead of the review button, So I have replaced the review button code..

IF I use this.

<td><p><center><! this script and many more avaliable from A1 javascripts all credit to A1javascripts. Please leave these comments intact thank you >.

<form><input type=button value="Back" onClick="history.back()"></form><! ></center></p></td>.

Then it works fine.

If however I try to use the back button from my images collection like this.

  <td><p><center><! this script and many more avaliable from A1 javascripts all credit to A1javascripts.

Please leave these comments intact thank you >.

<form><input type=image src="/includes/languages/english/images/buttons/button_back.gif" value="Back".

OnClick="history.back()"></form><! ></center></p></td>.

However this takes me to the cart page and tells me there is nothing in my cart, why does changing this one thing stop it from working..

Comment #3

Not sure if it is in the same place as you are looking for but there is a contribution for a back button.....

Comment #4

Really.

I couldnt find that, any idea where ?

Comment #5

Here is the code I'm using.

"Add a BACK button in the product_info".

For MS2.2.

This is a small modification in order to alow costumers to go back when they are in the product info page..

Step 1:.

Open the file catalog/product_info.php.

Step 2:.

Find this:.

It is about line 212.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())'">'tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS)'</a>'; ?></td>.

And after add this:.

<?php.

$back = sizeof($navigation->path)-2;.

If (isset($navigation->path[$back])) {.

?>.

<td class="main" align="center"><?php echo '<a href="'tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode'])'">'tep_image_button('button_back.gif', IMAGE_BUTTON_BACK)'</a>'; ?></td>.

<?php.

}.

?>.

You are done it..

I wish this to be usefull to some people..

_____________.

Dimitris Behtsis.

Hope that helps.

Catcastle.

Http://castlesweb.com..

Comment #6

Thanks for that I also found there is a contribution in the contribs section, which is very simple and does the job too.

Get it here.

Http://www.oscommerc...tributions,1586..

Comment #7

I need to add a back button on the product_info.php to return.

To the previously view page..

I tried using this code below (from shopping_cart.php, slightly modified).

But I can't get it to work properly, as I dont know how the 'isset($navigation->path[$back]))' and all that works..

<?php.

$back = sizeof($navigation->path)-3;.

If (isset($navigation->path[$back])) {.

?>.

<td class="main"><?php echo '<a href="'tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode'])'">'tep_image_button('button_back.gif', IMAGE_BUTTON_BACK)'</a>'; ?></td>.

<?php.

}.

?>..

Comment #8

Just use something like:.

<script language="javascript"><!.

Function GoBack().

{.

If (navigator.appName == "Microsoft Internet Explorer").

Document.location="javascript: history.go(-1)".

Else.

Document.location="javascript: window.back()".

}.

//>.

</script>.

But put it BETWEEN.

<HEAD>.

.....

</HEAD>..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.