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

Removing Market price

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-12-2010, 01:08 PM
  capuccino1976's Avatar 
capuccino1976 capuccino1976 is offline
 

Member
  
Join Date: Jun 2010
Posts: 14
 

Default Removing Market price

Hi,

I've been searching the forum all over to find an answer

I don't have any use for the "Market price" and even if I put a 0 value its still showing below the price : "Market price... with nothing beside".

How can I just remove this? Please be explicit, i'm such a newbie at x-cart.

Thanks a lot!
Melanie
__________________
X-Cart Gold 4.2.3
http://www.laccessoiriste.com
Reply With Quote
  #2  
Old 11-12-2010, 01:11 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Removing Market price

It doesn't in stock xcart. Have you modified product.tpl or products_list.tpl or products_t.tpl templates? It is in one of them depending on which page you are seeing this and the code to comment out is a little bit different.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-12-2010, 01:16 PM
  capuccino1976's Avatar 
capuccino1976 capuccino1976 is offline
 

Member
  
Join Date: Jun 2010
Posts: 14
 

Default Re: Removing Market price

I found this in product.tpl, could it be it?

PHP Code:
<tr>
<
td class="property-name product-price" colspan="2">
<
div class="prices-block">{$lng.lbl_our_price}:
{if 
$product.taxed_price ne 0 || $variant_price_no_empty}
<
span class="product-price-value">{include file="currency.tpl" value=$product.taxed_price tag_id="product_price"}</span>
<
span class="product-market-price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price tag_id="product_alt_price"}</span>
{ if 
$product.appearance.has_market_price && $product.appearance.market_price_discount gt 0
<
span class="product-taxed-price">{$lng.lbl_market_price}: {include file="currency.tpl" value=$product.list_price}</span>
{/if}
{if 
$product.taxes}
<
span class="product-taxed-price">{$lng.lbl_market_price}: {include file="customer/main/taxed_price.tpl" taxes=$product.taxes}</span>
{/if}
{else}
<
input type="text" size="7" name="price" />
{/if}
</
div>
{if 
$product.taxed_price gt 0 && $product.list_price gt 0}
<
div class="save" id="save_percent_box"{if $product.appearance.market_price_discount eq ""style="display: none;"{/if}>
<
span id="save_percent">{$product.appearance.market_price_discount}</span>%
</
div>
{/if}
</
td>
</
tr
__________________
X-Cart Gold 4.2.3
http://www.laccessoiriste.com
Reply With Quote
  #4  
Old 11-12-2010, 01:20 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Removing Market price

Code:
{ if $product.appearance.has_market_price && $product.appearance.market_price_discount gt 0} <span class="product-taxed-price">{$lng.lbl_market_price}: {include file="currency.tpl" value=$product.list_price}</span> {/if}

this is the code that shows it but it's conditional and will not show it if you put 0 as market price on product modify page in admin. Try clearing the cart cache
www.yourdomain.com/cleanup.php - see if it works
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-13-2010, 05:31 AM
  capuccino1976's Avatar 
capuccino1976 capuccino1976 is offline
 

Member
  
Join Date: Jun 2010
Posts: 14
 

Default Re: Removing Market price

Nope... it's still showing after clearing the cache.

I've put 0 to all the market price, and it still showing it on the detailed product page, but leaves the price part empty.

Well, if you have any idea of something I could try.
Thanks with all the help.

Melanie
__________________
X-Cart Gold 4.2.3
http://www.laccessoiriste.com
Reply With Quote
  #6  
Old 11-13-2010, 05:42 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Removing Market price

you don't want to put 0 as the market price, you will need to leave that blank, there is a difference between the two, try removing the market price from your product, just delete the zero in the field and try that
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #7  
Old 11-13-2010, 05:45 AM
  capuccino1976's Avatar 
capuccino1976 capuccino1976 is offline
 

Member
  
Join Date: Jun 2010
Posts: 14
 

Default Re: Removing Market price

Quote:
Originally Posted by amy2203
you don't want to put 0 as the market price, you will need to leave that blank, there is a difference between the two, try removing the market price from your product, just delete the zero in the field and try that

I've try it too, but when I save, it's resetting to 0.00 automatically.
__________________
X-Cart Gold 4.2.3
http://www.laccessoiriste.com
Reply With Quote
  #8  
Old 11-13-2010, 05:53 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Removing Market price

ah, just looked at your site, I don't think it's actually the market price, it's the space for the Taxed Price, but in your template it has the same label;
Code:
{ if $product.appearance.has_market_price && $product.appearance.market_price_discount gt 0} <span class="product-taxed-price">{$lng.lbl_market_price}: {include file="currency.tpl" value=$product.list_price}</span> {/if} {if $product.taxes} <span class="product-taxed-price">{$lng.lbl_market_price}: {include file="customer/main/taxed_price.tpl" taxes=$product.taxes}</span> {/if}

have you got taxes set up? it looks like it thinks there should be a taxed price, but it's not finding something to display, perhaps an issue with the customer/main/taxed_price.tpl template
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #9  
Old 11-13-2010, 06:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Removing Market price

I think amy is right. Just looked at the site. Do you have by any chance checked to show taxes or rates? These are settings on taxes in admin
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 11-13-2010, 06:11 AM
  capuccino1976's Avatar 
capuccino1976 capuccino1976 is offline
 

Member
  
Join Date: Jun 2010
Posts: 14
 

Default Re: Removing Market price

Quote:
Originally Posted by amy2203
ah, just looked at your site, I don't think it's actually the market price, it's the space for the Taxed Price, but in your template it has the same label;
Code:
{ if $product.appearance.has_market_price && $product.appearance.market_price_discount gt 0} <span class="product-taxed-price">{$lng.lbl_market_price}: {include file="currency.tpl" value=$product.list_price}</span> {/if} {if $product.taxes} <span class="product-taxed-price">{$lng.lbl_market_price}: {include file="customer/main/taxed_price.tpl" taxes=$product.taxes}</span> {/if}

have you got taxes set up? it looks like it thinks there should be a taxed price, but it's not finding something to display, perhaps an issue with the customer/main/taxed_price.tpl template

Hmm, I think you might have something there. Yes I have taxes set up. I don't have any taxed_price.tpl template in customer/main, only found taxe_formula.tpl and taxe_rate_edit.tpl.
__________________
X-Cart Gold 4.2.3
http://www.laccessoiriste.com
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 03:12 AM.

   

 
X-Cart forums © 2001-2020