View Single Post
  #4  
Old 09-20-2006, 10:00 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

Oh, wow, that was super helpful! The only issue I'm finding is that my "buy now" buttons are aligned to the left and are about 3 or 4 line breaks below the product thumb. I've been trying to fiddle with this code

Code:
<TABLE border="0" cellpadding="0" cellspacing="0"><TR> {if $js_enabled} {if $special_offers_add_to_cart eq 'Y'} <TD>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"}</TD> {else} <TD>{include file="buttons/buy_now.tpl" style="button" href="javascript: document.orderform_`$product.productid`_`$product.add_date`.submit();"}</TD> {/if} {if $login ne "" and $active_modules.Wishlist ne "" and $special_offers_add_to_cart eq ""} {if $product.is_product_options ne 'Y' || $config.Appearance.buynow_with_options_enabled ne 'Y'} <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD> <TD>{include file="buttons/add_to_wishlist.tpl" style="button" href="javascript:document.orderform_`$product.productid`_`$product.add_date`.mode.value='add2wl'; document.orderform_`$product.productid`_`$product.add_date`.submit()"}</TD> {/if} {/if}

but nothing seems to do much good. Am I even on the right track?
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote