| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
display the total weight on the view cart page | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Re: display the total weight on the view cart page
Thanks for the advice drheath, however we want a visual display on the cart which tells them they need to have over 12 in weight in order to continue.
Anyone know how to achieve this mod in 4.5.1?
__________________
Darren X-Cart Gold 4.3.1 |
|||||||
#22
|
|||||||
|
|||||||
Re: display the total weight on the view cart page
Well after about an hour of butting my head against my desk, I've realised why it wasn't working: because I wasn't logged in as a customer. The smarty variable gets assigned once the address is known.
Obviously not all customers will be logged in, so you need to select the "Presume that a not logged in customer is from the default country" checkbox in the general settings in order for this to work.
__________________
Darren X-Cart Gold 4.3.1 |
|||||||
#23
|
|||||||||
|
|||||||||
Re: display the total weight on the view cart page
Nice, sometimes the simplest solutions are the best ones. Did you end up having to make any additional changes to the code other than the 2 you mentioned?
__________________
Business Edition 5.2.10 Gold Plus 4.6.1 |
|||||||||
#24
|
|||||||
|
|||||||
Re: display the total weight on the view cart page
Trying to figure out how to do this on 4.6.5 but QT decided to move shipping.php from /shipping... trying to find where they've moved it to.
Found it - include/func/func.shipping.php Interesting, QT have already included this bit for us: Code:
Code:
after Code:
__________________
Lloyd Hosting www.lloydhosting.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|