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)
-   -   Remove brackets on variant price (https://forum.x-cart.com/showthread.php?t=34736)

pbrad 10-19-2007 05:38 AM

Remove brackets on variant price
 
Hi,

I am trying to figure out how to remove the brackets around the product price if the product has a variant. It makes it look as if the price is negative.

I know that it has something to do with the check options.tpl but I am stumped on how to remove them.

Any help would be appreciated.

Thanks,
Pete

balinor 10-19-2007 05:54 AM

Re: Remove brackets on variant price
 
Got an example url? This isn't standard behavior...

pbrad 10-19-2007 06:06 AM

Re: Remove brackets on variant price
 
1 Attachment(s)
Hi,

Thanks for the quick response. I am afraid that the domain isn't propogated yet and since the site is on a Virtual Dedicated Server with shared ip addresses it is not possible to view the site by entering in the ip address of the site.

It is only the products that have variants that are showing brackets before and after the price but for the life of me, I can't figure out what is putting those brackets there. I am modifying the site fairly heavily so I am sure that it is something that I must have caused if this is not normal.

Is there any info that I can provide that would help you to help me? I have attached a screenshot of a product with this problem.

Thanks again,
Pete

carpeperdiem 10-19-2007 07:16 AM

Re: Remove brackets on variant price
 
1. Use webmaster mode.
2. determine that the template you are seeing this in is /skin1/customer/main/product.tpl (right?)
3. Find the code in product.tpl that displays the price.

Code:

{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price plain_text_message=true}</span></font>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}


Do you have a ( or ) in there?

Make them go away. :-)

pbrad 10-19-2007 07:33 AM

Re: Remove brackets on variant price
 
Hi,

That would have been the easy solution right? My code is the same as yours except I removed the references to the alt currency as I only want to show the primary currency.

{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;">{include file="currency.tpl" value=$product.taxed_price plain_text_message=true}</span></font>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}

I am pretty sure that the price is being controlled by code further down in the template if variants exist for that product:

{ include file="modules/Product_Options/customer_options.tpl"} which in turn includes check_options.tpl. I believe that the answer lies in one of these two templates but I can't see where.

Thanks,
Pete


All times are GMT -8. The time now is 10:48 PM.

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