Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove brackets on variant price

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2007, 05:38 AM
 
pbrad pbrad is offline
 

Member
  
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 27
 

Default 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
__________________
Pete
xcart Version 4.0.17 [win]
and xcart Version 4.0.18[win]
Reply With Quote
  #2  
Old 10-19-2007, 05:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Remove brackets on variant price

Got an example url? This isn't standard behavior...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-19-2007, 06:06 AM
 
pbrad pbrad is offline
 

Member
  
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 27
 

Default Re: Remove brackets on variant price

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
Attached Thumbnails
Click image for larger version

Name:	VariantProductScreenshot.jpg
Views:	260
Size:	57.3 KB
ID:	589  
__________________
Pete
xcart Version 4.0.17 [win]
and xcart Version 4.0.18[win]
Reply With Quote
  #4  
Old 10-19-2007, 07:16 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 10-19-2007, 07:33 AM
 
pbrad pbrad is offline
 

Member
  
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 27
 

Default 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
__________________
Pete
xcart Version 4.0.17 [win]
and xcart Version 4.0.18[win]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:56 PM.

   

 
X-Cart forums © 2001-2020