| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
product_prices.tpl for wholesale prices - won't edit | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
product_prices.tpl for wholesale prices - won't edit
Hi, I've been trying to change the colors on the wholesale prices on the product pages, but I've come across something very strange - part of the code in customer/main/product_prices.tpl is outputting HTML, but the other part just doesn't seem to do anything.
My product_prices.tpl looks like this: Code:
You can see that I thought I'd do an experiment to make the automatic insertion of 's' for plural items, a little shorter code-wise, but then I decided to add a class to the second table row, and use a descendant selector to modify the table cells. But it doesn't work. The class doesn't show up when I view the site in my browser, and check the source HTML. But the code in the table header DOES work. If I insert the word 'test' as follows: Code:
Code:
Even when I commented out all of that code, it still displays in the browser, but I can't work out how! Does anybody have any ideas? It's hard enough trying to edit things, without them refusing to change after being edited! You can see what it looks like on the product page for 'Test product' here: http://www.mrdtrading.co.uk/store/home.php?shopkey=martin Many thanks.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#2
|
|||||||
|
|||||||
Re: product_prices.tpl for wholesale prices - won't edit
I've also tried the following:
Code:
This makes the browser display two rows of the bottom row, i.e. it now displays: 10+ Items ё49.99 10+ Items ё49.99 So obviously it must be getting the table row (not the table header) from somewhere else. I even tried inserting the following: Code:
But it wouldn't display the 'TEST', it just didn't exist in the HTML source.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#3
|
|||||||
|
|||||||
Re: product_prices.tpl for wholesale prices - won't edit
Try running www.yoursite.com/cleanup.php to clear the cache.
|
|||||||
|
#4
|
|||||||
|
|||||||
Re: product_prices.tpl for wholesale prices - won't edit
I tried that Tal, but no luck. I have just edited customer/main/send_to_friend.tpl and it worked fine, so I can't understand why product_prices.tpl isn't doing what I tell it to!
I have just tried reducing it down to: Code:
and yet it still displays the table row, meaning nothing that I deleted could have been displaying it. I just don't get it. Also, the wholesale prices header has never appeared, I presume it should be at the head of the table, due to: Code:
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#5
|
|||||||
|
|||||||
Re: product_prices.tpl for wholesale prices - won't edit
I also tried deleting the whole table, and that worked - i.e. the wholesale prices table completely vanished:
Code:
So somehow, the following piece of code doesn't actually do anything, even though it must! Code:
I know it must be doing something, because when I remove the following piece of code only, the table head row, I see two versions of the table data cells, one on top of the other: Code:
This is a real head scratcher for me.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: product_prices.tpl for wholesale prices - won't edit
Just in case anyone else gets stuck with this - the table is actually built up in Product_Options/func.js
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
|
#7
|
|||||||
|
|||||||
Re: product_prices.tpl for wholesale prices - won't edit
pauldodman is correct.
The following post might help some understand a little more how Product_Options/func.js and product_prices.tpl work together. http://forum.x-cart.com/showthread.php?p=377050#post377050
__________________
Ben X-Cart 4.6.6 Gold Plus - lots of modules X-Cart 4.7.9 Gold Plus - lots of modules |
|||||||
|
|||
X-Cart forums © 2001-2020
|