Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tip * Add Back Button to product_info Problem


demastermind

Recommended Posts

Hello, I am currently setting up my new osC store. I have been reading the osCommerce v2.3 documentation and found a problem on page 78, Section: Tip * Add Back Button to product_info

 

It should add a back button on the product_info page that will take the shopper back to the the category of the product they were just viewing. It told me exactly what code to change and where it was, but the code it tells me to find does not match up with anything in the product_info file.

 

This is everything from the "Tip * Add Back Button to product_info" section (pg. 78):

 

(!) catalog/product_info.php about line 231

 

Change this code:

 

<td width="17"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td width="168" align="right"><?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>

 

To:

 

<td width="17"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td width="102" class="main"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=' .
$cPath); ?>"><?php echo tep_image_button('button_back.gif', IMAGE_BUTTON_BACK); ?></a></td>
<td width="168" align="right"><?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>

 

You are adding this cell to the table:

 

<td width="102" class="main"><a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=' .
$cPath); ?>"><?php echo tep_image_button('button_back.gif', IMAGE_BUTTON_BACK); ?></a></td>

 

I would be grateful if anyone could help me with this problem. Thanks.

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

Luc, I don't know where you got the documentation from but the code you've quoted is 2.2 code not 2.3 and would need a bit of work to get it to run properly

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

Luc, I don't know where you got the documentation from but the code you've quoted is 2.2 code not 2.3 and would need a bit of work to get it to run properly

 

Ohh. Thank you, I didn't catch that. The documentation came with the download for the store and was written by Harald Ponce de Leon, John Fitchett, and Melinda Odom.

I suppose that a newer version of the documentation, or some parts of the documentation, were never updated or changed for newer versions of the store.

Would someone, or the osCommerce team be able to update the code and update the documentation that came with the osCommerce Online Merchant v2.3 documentation?

It would be of great help. I searched in the forums and I found some people were looking for a "back button".

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

Ohh. Thank you, I didn't catch that. The documentation came with the download for the store and was written by Harald Ponce de Leon, John Fitchett, and Melinda Odom.

I suppose that a newer version of the documentation, or some parts of the documentation, were never updated or changed for newer versions of the store.

 

I was able to add the back button to product_info using this contribution but with some changes so as to work with ver 2.3.1. I got it to work fine but was unable to get to align up and also it had an underscore under the word BACK.

 

You may see what I did by viewing my post here.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...