VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vijayk@splendornet.com on March 17, 2022, 14:07:37 PM

Title: Get two shipping cost for product based on two different address from Admin side
Post by: vijayk@splendornet.com on March 17, 2022, 14:07:37 PM
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.