VirtueMart Forum

VirtueMart 2 + 3 => Administration & Configuration => Topic started by: sandomatyas on December 28, 2021, 14:21:36 pm

Title: Change shipment method and shipment method's data for an order from admin?
Post by: sandomatyas on December 28, 2021, 14:21:36 pm
Is there a way to change a shipment method for an existing order from admin area?
Like the customer placed an order and selected 'pickup from store' method but changed his mind and wanted to receive the order via courier company which is an other shipment method. As far as I can see I can edit the shipment fee but not the shipment method itself.

Also looking for a solution to change the data stored in the corresponding data table like #__virtuemart_shipment_plg_myplugin
Like if the customer from the example above doesn't want to change the 'pickup from store' method but wants to change which store does he choosed. This is a custom data stored from the cart in #__virtuemart_shipment_plg_myplugin
Any option to change that?
Title: Re: Change shipment method and shipment method's data for an order from admin?
Post by: GJC Web Design on December 28, 2021, 14:42:57 pm
Quote
Like if the customer from the example above doesn't want to change the 'pickup from store' method but wants to change which store does he choosed. This is a custom data stored from the cart in #__virtuemart_shipment_plg_myplugin

the api for an extended VM plugin allows just about any possibility...
Title: Re: Change shipment method and shipment method's data for an order from admin?
Post by: sandomatyas on December 29, 2021, 07:15:37 am
Yep :) Is there any existing plugin for that or should I write a new one?
Title: Re: Change shipment method and shipment method's data for an order from admin?
Post by: GJC Web Design on December 29, 2021, 10:43:16 am
none that I know of....
Title: Re: Change shipment method and shipment method's data for an order from admin?
Post by: Studio 42 on December 30, 2021, 14:55:06 pm
Yep :) Is there any existing plugin for that or should I write a new one?
I wrote something near for a customer because he use own multiple stores pickup
I use for this a new table with the list of pickups, added the pickup ID in the table #__virtuemart_shipment_plg_myplugin
i wrote a new module so each pickup can see own orders and change the statut in the front end. I use user group to restrict access to this module
I think it's what you need ?
Title: Re: Change shipment method and shipment method's data for an order from admin?
Post by: Studio 42 on December 31, 2021, 11:08:31 am
You can use directly the batch tool if you have no SKu
In the Product Pricing TAB, input the price "x0.8333" to remove 20%
To calculate your value; use this formular :
price with vat / (1 + Vax Tax) = price  no vat
VM Be pro can process 1000 products per batch(you can set this in the component options)