View Single Post
  #1  
Old 11-16-2004, 09:52 AM
  Christopher728's Avatar 
Christopher728 Christopher728 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: CA
Posts: 46
 

Default Help me modify and if/else statement PLEASE

Could someone help me modify this chunk of code from product.tpl Please.
Code:
{if $product.forsale ne "B"} {include file="buttons/add_to_cart.tpl" style="button"} {if $login ne "" and $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl"} {/if} {else} {$lng.txt_pconf_product_is_bundled} {/if} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart} {/if} {/if}

I want to incorporate this some how:
Code:
{if $products[product].param00 eq ""} {include file="customer/main/buy_now.tpl" product=$products[product]} {else} {if $products[product].param00 eq Y} {include file="customer/main/call.tpl"}

My goal is to replace the buy now button only on certain products with with a separate tpl I made (call.tpl) containing instructions to call and order.
I got it to work in my products.tpl but I can't seem to get it right in the product.tpl

Thanks for any help!
__________________
X-cart versions 4.1.11, 4.1.9 & 4.1.8
Reply With Quote