Latest News: (loading..)

Archived

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

zeemedia

Add Extra Add to Cart Button just under product name and price

2 posts in this topic

Simple change to catalog/product_info.php will add Reviews button and Add to Cart button on the top of the product description, just like on this site: trioka.net

 

FIND (around line 57):

 

 <div>
 <h1 style="float: right;"><?php echo $products_price; ?></h1>
 <h1><?php echo $products_name; ?></h1>
</div>

 

ADD BENEATH:

 

 <div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>
<?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>
 </div>

 

 

Hope it will be useful.

I have tried to just add Add to Cart button to that position, but when I remove part of the code for reviews - product description and images position gets messed up. So I left it like this, with Reviews button on the top as well.

 

Please post here if anyone come up with the solution.

Share this post


Link to post
Share on other sites

Removed the echo comand in the second string, that should leave you with one review botton

php echo tep_draw_button(IMAGE_BUTTON_REVIEWS .

Share this post


Link to post
Share on other sites