Add to Cart/Basket button does not change in product_reviews

Description

The add to cart/basket button does not change depending on your setting on the product_reviews page.

Just need to copy the code from the product_info page.

To fix;

Open /catalog/templates/fallback/product_reviews.tpl.php

Find around line 148;
<?php } else { ?>
<td class="main" align="right" rowspan="2"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
<?php } // END: PGM Edit to switch Add to Cart image if stock = 0 ?>

Change to;
<?php } else {
if (BASKET_CART == 'cart') { ?>
<td class="main" align="right" rowspan="2"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
<?php } else { ?>
<td class="main" align="right" rowspan="2"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_basket.gif', IMAGE_BUTTON_IN_BASKET); ?></td>
<?php }
} // END: PGM Edit to switch Add to Cart image if stock = 0 ?>

Environment

None

Steps to reproduce

None

Assignee

Giles Marshall

Reporter

Scott Murphy

Labels

None

Severity

Minor

Components

Fix versions

Affects versions

Priority

Configure