Thread: Buy Now Button
View Single Post
  #1  
Old 02-03-2012, 04:26 PM
 
Yvonnewilt Yvonnewilt is offline
 

Advanced Member
  
Join Date: Jun 2009
Posts: 41
 

Default Uselling Products - Smarty error?

Can someone help me with adding the buy now button to the products view. I tried uncommenting the code in the products_t.tpl

Code:
{*** Uncomment it if you need 'Buy Now' button *** {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} *** Uncomment it if you need 'Buy Now' button ***}


And the buy now button does then show up. However, now under 'related products' I have this error:
Warning: Smarty error: math ``x/y'' in ``modules/Special_Offers/customer/new_offers_short_list.tpl'': parameter ``y'' is empty in (store path)/Smarty-2.6.19/Smarty.class.php on line 1092


And also, when I uncomment that area, the qty line is also added to the products page. How do I remove the qty line please?

Thank you in advance!!
__________________
4.1.11
New products
News Management
Magnifier
BCSE Detailed Images
Special Offers
Wishlist
OnSale

Last edited by Yvonnewilt : 02-05-2012 at 10:30 AM. Reason: updating issue and title
Reply With Quote