News:

Looking for documentation? Take a look on our wiki

Main Menu

Automatically add new ShipTo Address when saving Billing Address

Started by Kamen Rider, October 03, 2014, 09:55:16 AM

Previous topic - Next topic

Kamen Rider

Hi,

Is there anyway that I can manually add a new ShipTo Address when saving from Billing Address? I understand that it automatically read from billing address is there is no shipment address but I have a plugin for DHL that will return error unless shipping address is filled.

I am currently running this code to insert a new ship to address manually when saving from a billing address. However, the new ship to address is not added to the shipment section on the cart page.
INSERT into #__virtuemart_userinfos (virtuemart_user_id, address_type, address_type_name, title, first_name, last_name, address_1, zip, city, virtuemart_country_id, virtuemart_state_id, created_on, created_by, modified_on, modified_by) values ('696', 'ST', 'Shipment', 'Mr', 'Demo', 'Demo', 'Singapore', '123456', 'Singapore', '188', '', '2014-10-03 15:53:08', '696', '2014-10-03 15:53:08', '696')

I am thinking that it might be a cookie issue but then when I clear cache and re-login there is still no ship to address.

Anyone have experience in these can help me out?

Thanks!

GJC Web Design

surely it would be easier to adapt the ship plugin to read the BT if present?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

Kamen Rider

The code is being compressed and encoded so I have no access to to the source code. If there anyway to do it from Virtuemart?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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

Kamen Rider

I understand that you meant the plugin. What I was saying earlier is that the source code for the DHL plugin is encrypted and cannot be decode so I have no access to humanly readable file for the plugin.

Anyway, I found out that when ship to address is added Virtuemart add them to the session. Anyone know the correct method to duplicate this function?

Milbo

Interesting that they finally have such a plugin. Can you give me the page? I was anyway negotiating with them. The fix is actually easy, the problem is how to implement it and not disturbing the shops already there.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/