Author Topic: Change shipment method and shipment method's data for an order from admin?  (Read 1505 times)

sandomatyas

  • Jr. Member
  • **
  • Posts: 384
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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10743
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Change shipment method and shipment method's data for an order from admin?
« Reply #1 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...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sandomatyas

  • Jr. Member
  • **
  • Posts: 384
Re: Change shipment method and shipment method's data for an order from admin?
« Reply #2 on: December 29, 2021, 07:15:37 am »
Yep :) Is there any existing plugin for that or should I write a new one?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10743
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Change shipment method and shipment method's data for an order from admin?
« Reply #3 on: December 29, 2021, 10:43:16 am »
none that I know of....
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4680
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Change shipment method and shipment method's data for an order from admin?
« Reply #4 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 ?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4680
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Change shipment method and shipment method's data for an order from admin?
« Reply #5 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)