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)
-   -   Delete price on products page. (https://forum.x-cart.com/showthread.php?t=25496)

CobaltCat 10-03-2006 09:01 PM

Delete price on products page.
 
My client wants to have the price gone from the thumbnails pages. I tried with this code in products.tbl:
Code:

{*  {else}
{if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)}
{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="%3.0f" assign=discount}
{if $discount gt 0}
<FONT class="MarketPrice">{$lng.lbl_market_price}:
{include file="currency.tpl" value=$products[product].list_price}
</FONT><BR>
{/if}
{/if}
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
<S>
{/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}{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""}, {/if}{$lng.lbl_save_price} {$discount}%{/if}</FONT>
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
</S>
{/if}
{if $products[product].taxes}
<BR>
<TABLE border="0">
<TR>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="70" height="1" alt=""></TD>
<TD>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</TD>
</TR>
</TABLE>
{/if}
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
{include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]}
{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
{/if}  *}


The price goes away, but so does the buy now button. What can I do to bring the button back?

Thanks!

v 4.0.18

inebriate 10-03-2006 09:28 PM

Re: Delete price on products page.
 
I think you need to have editted the products_t.tpl rather than products.tpl

CobaltCat 10-03-2006 09:32 PM

Re: Delete price on products page.
 
This is a single column thumbnail display.

inebriate 10-03-2006 11:50 PM

Re: Delete price on products page.
 
have you tried to include the buynow?

Code:

{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}


CobaltCat 10-03-2006 11:59 PM

Re: Delete price on products page.
 
That's right below that snippet:
Code:

{* $Id: products.tpl,v 1.45.2.17 2006/02/27 08:53:50 svowl Exp $ *}
{if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'}
{include file="modules/Feature_Comparison/compare_selected_button.tpl"}
{include file="modules/Feature_Comparison/products_check_js.tpl"}
{/if}
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}
{include file="customer/main/products_t.tpl" products=$products}
{else}
{if $products}
{section name=product loop=$products}
{assign var="discount" value=0}
<TABLE border="0" width="100%" cellpadding="0" cellspacing="6">
<TR>
<TD width="90" align="center" valign="top">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD valign="top" align="center">
{if $active_modules.Special_Offers ne "" and $products[product].have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}
{else}
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}</A>
{/if}
</TD>
</TR>
<TR>
<TD height="18" align="center">
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{$lng.lbl_see_details}</A>
</TD>
</TR>
</TABLE>
{if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0 && $printable ne 'Y'}
<BR>
<BR>
{include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid}
{/if}
</TD>
<TD valign="top">
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0">
<TR>
<TD class="ProductTitleBorder" colspan="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
<TR class="ProductTitleTopBorder">
<TD width="7"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
<TD height="22">
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}"><FONT class="ProductTitle">{$products[product].product}</FONT></A></TD>
</TR>
</TABLE>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0">
<TR>
<TD width="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
<TD>
<FONT size="1">
{$products[product].descr|truncate:300:"...":true}
<BR>
</FONT>
<BR>
{if $products[product].product_type eq "C"}
{include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"}
{*  {else}
{if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)}
{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="%3.0f" assign=discount}
{if $discount gt 0}
<FONT class="MarketPrice">{$lng.lbl_market_price}:
{include file="currency.tpl" value=$products[product].list_price}
</FONT><BR>
{/if}
{/if}
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
<S>
{/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}{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""}, {/if}{$lng.lbl_save_price} {$discount}%{/if}</FONT>
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
</S>
{/if}
{if $products[product].taxes}
<BR>
<TABLE border="0">
<TR>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="70" height="1" alt=""></TD>
<TD>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}</TD>
</TR>
</TABLE>
{/if}
{if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""}
{include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]}
{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
{/if}  *}
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
{/if}
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
<BR>
<BR>
<BR>
{/section}
{if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'}
{include file="modules/Feature_Comparison/compare_selected_button.tpl"}
{/if}
{else}
{$lng.txt_no_products_found}
{/if}
{/if}


But the button's not there. Any ideas?

CobaltCat 10-09-2006 11:44 AM

Re: Delete price on products page.
 
Anybody? I just need to get rid of the price on the thumbnail pages, but leave the buy now button.

Thanks!


All times are GMT -8. The time now is 03:17 AM.

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