X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Edit out prices (https://forum.x-cart.com/showthread.php?t=12609)

expressrugs 03-05-2005 09:35 AM

Edit out prices
 
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

markwhoo 03-05-2005 09:53 AM

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 :wink:

expressrugs 03-05-2005 10:27 AM

Hello thanks for the reply. I didn't know you could use {**} It however did't work or I did it wrong it changed the detail page. Not the our price on products page. Not sure i'm trying to change right page code. Its the first page after you click Categories.
Thank you

markwhoo 03-05-2005 10:47 AM

Quote:

Originally Posted by expressrugs
Hello thanks for the reply. I didn't know you could use {**} It however did't work or I did it wrong it changed the detail page. Not the price on products page. Not sure i'm trying to change right page code. Its the first page after you click Categories.
Thank you


Try this on products.tpl:



Code:

{*{else}
{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">{$lng.lbl_our_price}: {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}


<TABLE border="0">
<TR>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}
</TR>
</TABLE>
{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
{/if} *}


Now that takes the info (pricing) from the second page after clicking on the catagory. :wink:

markwhoo 03-05-2005 10:48 AM

Remember expressrugs, this is in my 4.0.11 code, so yours may vary slightly, but the overall layout and basic code should be the same.

expressrugs 03-05-2005 10:57 AM

Man you are awesome.
Thank you so much :D :D :D

markwhoo 03-05-2005 11:00 AM

Quote:

Originally Posted by expressrugs
Man you are awesome.
Thank you so much :D :D :D


Not a problem, happy to help when I can :)


All times are GMT -8. The time now is 11:22 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.