
Originally Posted by
sneakysnier
Hi Philip,
Firstly thanks for ALL your work on modules/addons!
I've installed the New Royal Mail Modules and all seems fine....great work!
I was wondering if there was any way i could change the selected delivery method string that is displayed on the shopping cart page....?
I ask because if a customer selects 'Royal Mail Standard Parcels (to £500 insurance)' as a shipping method this results in a display in the 'totals' box as
Royal Mail Standard Parcels (to £500 insurance) (3 to 5 days. Delivery to United Kingdom : 4.000 kgs):
which is a little too long for the setup of my site...(it doesn't sit on the same line as the actual cost)
(see pic)
Is it possible for me to simply replace the long string with 'Shipping' or a shortened description?
Thank you
(Optionals installed)
I have had a very in depth look at whether it is possible to change the text of the shipping module to truncate it on different pages through the module. I would say "no", the easiest way is to alter the text itself is to edit the define pages under english the second easiest way to change the text is if you edit your zen cart template.
You specifically requested being able to put something like "shipping" on one specific area. The issue arising is that zen cart pulls the text from the module through in multiple places, the 3 checkout pages, the invoices, the packing slip, the order review page, the title of the module in the administration section, that adding a new "define" constant would mean recoding all 30 modules to know where exactly they are (including bits that you don't see like when your payment gateway tells the order is paid and the shipping module is then called to add the text to the final order) and then display one of either two constants is just too much work for very little benefit, when you could just alter the template tpl_checkout_success_default.php for example and just write the word "shipping" wherever you wanted it.
The other change that you could introduce is wrapping in the stylesheet for the pages you want to change so that the text is allowed to break up and not overflow, as well as truncated the text using ISF for international Signed For and using
HTML Code:
<span title="International Signed For" style="color:blue">ISF</span>
in your define file so that if someone puts the mouse over the text it would display the full title.
I've tried to provide you with a variety of options that should make what you want to achieve easier.
Thanks
Philip.
Bookmarks