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)
-   -   List Price not showing? (https://forum.x-cart.com/showthread.php?t=35868)

zenkisser 12-03-2007 06:08 AM

List Price not showing?
 
Hi everyone!

We have a very hardcore modified cart and the initial coder instead of uncommneting out certain lines, took them out of the templates.

I am trying for the holidays to have a List price show and then the holiday price. I went to a clients system and it works fine, so it is missing in my templates.

Can some one please tell me what templates and the missing code might be?

It seems a line or smarty variable is not present so it won't show.

Thanks.

balinor 12-03-2007 06:11 AM

Re: List Price not showing?
 
Do you mean the category pages or the product detail page? And are you using a multi-column layout for the category page or a single column layout?

zenkisser 12-03-2007 06:15 AM

Re: List Price not showing?
 
Hi Padriac-

Thank you for your lightning fast reply

Is is not showing in either. For the layout question I unfornataley don't know or remember. I think you might know my URL, if not can I PM you with it?

Quote:

Originally Posted by balinor
Do you mean the category pages or the product detail page? And are you using a multi-column layout for the category page or a single column layout?


If you are talin about this part in General Display products list in multiple columns (1-3) (leave empty to use standard format):

It is set to empty. I don'ty want to upset the cart in any way as I know it can be tempermental.

Thanks again.

I wish to keep my X-Cart site private if not I would provide a link.

I pretty much want to put portions up showing that they are on sale and I don't mind using the built-in list price - our price. I do wish to purchase the Sales script that is out as a MOD , but have no time to learn it.

balinor 12-03-2007 06:26 AM

Re: List Price not showing?
 
Sorry, don't know who you are :( But to show list/our price on the category page, this is the original code:

{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}: <S>
{include file="currency.tpl" value=$products[product].list_price}
</S></FONT><BR>
{/if}
{/if}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT><BR><FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""}, {/if}{$lng.lbl_save_price} {$discount}%{/if}
{if $products[product].taxes}<BR>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
{/if}

That is not present on the product detail page by default, so you'd need to rewrite the above code using the correct variable for the product detail page, which is $product instead of $products[product]

zenkisser 12-03-2007 06:36 AM

Re: List Price not showing?
 
Thanks!

What template would this go in and the path please?

balinor 12-03-2007 06:46 AM

Re: List Price not showing?
 
That's why I asked which layout you use....multi-column uses customer/main/products_t.tpl, single uses customer/main/product.tpl

zenkisser 12-03-2007 06:47 AM

Re: List Price not showing?
 
Thanks!


All times are GMT -8. The time now is 09:24 AM.

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