| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Displaying product savings in $ amount instead of % percent | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Displaying product savings in $ amount instead of % percent
Is there a way that I can show my customers how much they are saving in dollar amount rather that the standard way xcart displays it in percentage.
I found this code that generates the percentage amount in customer/main/products_tpl Code:
How can I change this to display in dollar amount? |
|||||||||
#2
|
|||||||
|
|||||||
change:
Code:
to: Code:
__________________
ex x-cart guru |
|||||||
#3
|
|||||||||
|
|||||||||
Thanks Funkydunk.....Works like a charm!
|
|||||||||
#4
|
|||||||
|
|||||||
Nice one!
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#5
|
|||||||||
|
|||||||||
Here's my code in customer/products.tpl
Code:
Code:
Code:
Same effect, slightly different code. |
|||||||||
#6
|
|||||||
|
|||||||
almost
yours will do the math equation even if there is no difference in price. Effectively that could slow the site down by, oooh probably in the order of .1 microsecond :LOL
__________________
ex x-cart guru |
|||||||
#7
|
|||||||||
|
|||||||||
I wasnt able to get either one of these fixes working for 3.4.10
Any update here? the code Im currently using is below. Naturally I would like it to show $ instead of % as the topic of this forum indicates. Code:
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#8
|
|||||||||
|
|||||||||
oh my. that was far too easy.
Quote:
that's all i need
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#9
|
|||||||
|
|||||||
Is it possible to have this post moved to "Custom Mods & Templates"? This is one I had definitely forgot about and if looking for it I would have started in the "Custom Mods & Templates" area of the forum.
Thanks, Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
#10
|
|||||||
|
|||||||
Error in Code?
Quote:
I couldn't get FunkyDunk's mod to work until I changed the line above to this: Quote:
I kept getting $0.00 because it was subtracting lprice from itself. Please note I know nothing about coding so I may be wrong here, but it seems to work with the change I made. Randy X-Cart 3.5.3[/quote] |
|||||||
|
|||
X-Cart forums © 2001-2020
|