Zone based shipping name

Developer
Van Netherlands
Lid sinds mei 2016

Hi,
Running into something that I would think is a problem. When using the Zone Based Shipping module that comes with Litecart 2.3.3, it won't display the shipping option correctly.

On the Shipping Information section in the order, the name displayed is the country of the customer instead of the shipping option name (i.e. Zone Based Shipping).

[img]https://i.postimg.cc/RVG1P0v7/Capture123213132.png[/img]

Therefore the packslip displays the country instead of the shipping method etc etc. I tested this in the online demo store as well and it gives the same behaviour, so I guess there's some incompatibility with the latest versions (2.3.2 and 2.3.3 and the Zone Based Shipping module).

tim
Founder
Van Sweden
Lid sinds mei 2013
tim

Maybe you need to tweak it the way you like it best.

This where you set the option name:
https://github.com/litecart/litecart/blob/277249442ca3304ebcb5fccd335ea9f2c7ecb98b/public_html/includes/modules/shipping/sm_zone_weight.inc.php#L39

This is where it is added to the order:
https://github.com/litecart/litecart/blob/277249442ca3304ebcb5fccd335ea9f2c7ecb98b/public_html/includes/modules/order_total/ot_shipping_fee.inc.php#L25

The part where you don't have the parathesis makes me think your ot_shipping_fee module is different.

Developer
Van Netherlands
Lid sinds mei 2016

Well, this is a store that was upgraded from 2.1.9 to 2.3.3
Turns out that I had to put in a couple of names in the translations ( title_option_namezone### ). I guess that in 2.1.9 it used to get the shipping name from line 12:
$this->name = language::translate(__CLASS__.':title', 'Zone Based Shipping');

Or well, it looks like that in my backup of the 2.1.9 environment :) Anyway, I found a solution to my problem now, so thank you once more :-)

Dit topic is gesloten wegens langdurige inactiviteit. Erop posten is niet mogelijk.
Deze website maakt geen gebruik van cookies en geen trackingtechnologie van derden . Wij denken dat we het beter kunnen dan anderen en hechten veel waarde aan uw privacy.