| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Shipping Description in cart and checkout | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to get a description of the shipping next to the totals in the cart and checkout. I have foold around with this for a few days now and cant seem to figure it out. Can someone lend a hand?
See pictures... Thannks.
__________________
Version 4.1.8 |
|||||||
#2
|
|||||||
|
|||||||
![]() You are onto something with the shipping descriptions so I took some time to try and code it up...it works to a point, as soon as the page finishes refreshing (since you need to submit the form to get the updated price) the text goes away.
What I have so far: in customer/main/cart_totals.tpl look for Code:
and replace with Code:
the shippingid.value may be different for you, im not entirely sure, it doesnt seem to correspond to the admin ordering numbers under the shipping methods section...also you can add more descriptions by using the elseif statements...some improvements would be to use the admin ordering as well as the period to be used for the descriptions, but I dont know how to call those values I may have another go at it over the weekend, but for now I need to finish up on other things |
|||||||
#3
|
|||||||
|
|||||||
![]() Cool looking good. Where did you find the value for the shipping?
__________________
Version 4.1.8 |
|||||||
#4
|
|||||||
|
|||||||
![]() Code:
Shouldn't this work? It gives me a error fatal error: Smarty error: [in customer/main/cart_totals.tpl line 71]: syntax error: unidentified token '.cartform.shippingid.value==52
__________________
Version 4.1.8 |
|||||||
#5
|
|||||||
|
|||||||
![]() it should be a javascript syntax and not a smarty syntax and it needs to be within the function, should be something like:
Code:
for finding values...i changed the function to: Code:
|
|||||||
#6
|
|||||||
|
|||||||
![]() my fix didnt work, i tried to call the function using onload instead of onchange
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|