Zasilkovna Shipment Method in Emails

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Zasilkovna Shipment Method in Emails

Postby admin » Sun Jan 05, 2014 2:59 pm

Dear Czech friends, if you'd like to see the street of zasilkovna shipment method within emails, we recommend to update the shipping plugins' code this way:

locate this file:
\plugins\vmshipment\zasilkovna\zasilkovna.php

look for:
Code: Select all
$values['shipment_name']                = $method->shipment_name;


and update it to:
Code: Select all
$values['shipment_name']                = $method->shipment_name.' ('.$_SESSION['branch_name_street'].') ';             


This way the street will be saved everywhere, where the shipping name is used (order details, print view, emails, etc..)

The code is located within function plgVmConfirmedOrder and is stored with:
$this->storePSPluginInternalData($values);

this shipping name modification could be used also by other plugins as well when properly modified.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2