![]() |
Shipping Description in cart and checkout
2 Attachment(s)
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. |
Re: Shipping Description in cart and checkout
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:
<FONT class="FormButton">{$lng.lbl_delivery}: </FONT> and replace with Code:
<script type="text/javascript"> 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 |
Re: Shipping Description in cart and checkout
Cool looking good. Where did you find the value for the shipping?
|
Re: Shipping Description in cart and checkout
Code:
{if document.cartform.shippingid.value==52} 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 |
Re: Shipping Description in cart and checkout
it should be a javascript syntax and not a smarty syntax and it needs to be within the function, should be something like:
Code:
elseif(document.cartform.shippingid.value==50) for finding values...i changed the function to: Code:
function shipdesc() |
Re: Shipping Description in cart and checkout
my fix didnt work, i tried to call the function using onload instead of onchange
|
All times are GMT -8. The time now is 03:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.