Get two shipping cost for product based on two different address from Admin side

Started by vijayk@splendornet.com, March 17, 2022, 14:07:37 PM

Previous topic - Next topic

vijayk@splendornet.com

We are calculating shipping cost from Admin side on after product save i.e using cart object and plugin trigger in our custom plugin
i.e Using Trigger to get shipment - JFactory::getApplication()->triggerEvent('plgVmDisplayListFEShipment', array($cart, $selectedShipment, &$shipments));
i.e as suggested in the https://forum.virtuemart.net/index.php?topic=148031.0

We wanted to get two shipping cost based on two different address. Can we update cart object for address one and address two and call following trigger twice to get different shipments as per different address.

VirtueMart component version : 3.0.12

Any help is appreciated. Thank you in advance.