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

Show Market price (list price) on product detail page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-26-2012, 05:22 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Show Market price (list price) on product detail page

Hello,

I've been trying to find a solution to this for years now, and have searched all over for it without much luck.

In the category list, when an item is discounted, it shows the list price with a strikethrough above the actual price and then there is a percent off shown (save x%) next to the actual price.

But in the product detail page it just shows the price. Yes, there is a % off label showing, but I want it to display exactly like it does on the category listing with the regular price just above the actual price with the percent off showing there.

I've tried to move around some of the same code from products.tpl to product.tpl and it just won't show the actual price so I'm missing some kind of variable and am not sure what changes to make at this point.

So does anyone have a mod to show the market price on the product detail page, or direct me to a solution?

Thank you!

Chris
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote
  #2  
Old 11-27-2012, 11:36 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Show Market price (list price) on product detail page

More recent versions show this by default. I don't have access to your version at the moment. Can you use webmaster mode to check if the market price is include in the $product array? Or you could temporarily add this to the template of your dev site {$product|@print_r} to print the entire contents of the array. http://www.smarty.net/forums/viewtopic.php?t=11435

If the value is included, just access it with {$product.NameofValue}. If it is not then you are likely to have to edit some php.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 11-27-2012, 11:47 AM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Re: Show Market price (list price) on product detail page

Thank you for the reply. I'll look into it more to see if it is included in the product array.

If this is in 4.2, can anyone share their product.tpl file with me, so I can see how it is included?

Thanks.

Chris
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote
  #4  
Old 11-27-2012, 11:55 AM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Re: Show Market price (list price) on product detail page

I checked and yes, it pulls the[list_price] into the product array. Now I just need to figure out how to add it to the template
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote
  #5  
Old 11-27-2012, 01:18 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Show Market price (list price) on product detail page

Great! Try simply {$product.list_price} #guessing.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Hallsons (11-27-2012)
  #6  
Old 11-27-2012, 04:19 PM
 
Hallsons Hallsons is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 84
 

Default Re: Show Market price (list price) on product detail page

Okay, this is what I did and it works just fine, so that when an item is on sale the list price will show up. I won't worry about the %off since that does already display on the page.

In skin1/customer/main/product.tpl

Find:

Code:
<tr><td class="ProductPriceConverting" valign="top">{$lng.lbl_price}:</td>

and BEFORE this I put:

Code:
{if $product.list_price gt 0} <tr> <td><font class="MarketPrice">{$lng.lbl_market_price}: </font></td> <td><font class="MarketPrice">{include file="currency.tpl" value=$product.list_price}</font></td> </tr> {/if}

I don't use the strikethrough because it makes it hard to read the price.

Hopefully this works okay, and I hope this is helpful for anyone else still searching for this.
__________________
Chris Wilson
4.7.10 (after 9 years with 4.1.12)
CDSEO Pro
Reply With Quote

The following user thanks Hallsons for this useful post:
totaltec (11-27-2012)
  #7  
Old 11-27-2012, 04:25 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Show Market price (list price) on product detail page

Thanks Chris, it always helps when you share your final solution.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #8  
Old 02-24-2014, 04:13 AM
 
gozindagi gozindagi is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 61
 

Default Re: Show Market price (list price) on product detail page

Hi,

Please tell me how can I update list price field(MRP field)?My X-CART version is x-cart 4.6.2
Attached Thumbnails
Click image for larger version

Name:	A Premium Online Store on Health and Beauty Products - Healthiza.com 2014-02-24 17-39-29.png
Views:	126
Size:	2.3 KB
ID:	3691  
__________________
X-cart Platinum 4.6.0
Reply With Quote
  #9  
Old 02-24-2014, 05:37 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Show Market price (list price) on product detail page

That field should be located on the product page. Directly under the price field.

If the product has variants, then you may need to update prices on the variants page.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #10  
Old 02-24-2014, 09:21 PM
 
gozindagi gozindagi is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 61
 

Default Re: Show Market price (list price) on product detail page

Quote:
Originally Posted by totaltec
That field should be located on the product page. Directly under the price field.

If the product has variants, then you may need to update prices on the variants page.
Thanks for reply but if the product has no variants then how can i modify above mention field(MRP field)?
__________________
X-cart Platinum 4.6.0
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 PM.

   

 
X-Cart forums © 2001-2020