Thread: Edit out prices
View Single Post
  #2  
Old 03-05-2005, 09:53 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default Re: Edit out prices

Quote:
Originally Posted by expressrugs
Hello
V 4.0.12 What code do you take out of customer/main/products_t.tpl to not show the price. On the product page. I do want it on detail page.
Thank you for your help

The following is the code to look for in 4.0.12 so it should be close to the same in your version as far as the tpl is concerned. the code may have a slight difference to it, but this is the bit:

Code:
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%d" assign=discount} {if $discount gt 0} <FONT class="MarketPrice">{$lng.lbl_market_price}: <S> {include file="currency.tpl" value=$products[product].list_price} </S></FONT> {/if} {/if} <FONT class="ProductPrice">{include file="currency.tpl" value=$products[product].taxed_price}</FONT> <FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT>{if $discount gt 0}, {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes} {include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if} {else} <FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT> {/if} {/if}

This is the subscription, enter your price, makrket price and product price codes.

Now if you want it to NOT show, simply add this to the front ==> { * and this to the end of the entire line of code you do not want to show ==> * }

This is called "comment tag" This will make the code non readable to smarty, therefore skipped.

Not sure fo you already knew that or not, so I thought I would throw it in
__________________
vs 4.1.12
Reply With Quote