VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: AhoyIT on October 30, 2013, 16:09:33 PM

Title: Force COUNTRY, on SHIPMENT address, according to CATEGORY
Post by: AhoyIT on October 30, 2013, 16:09:33 PM
Hello all,

I'd like to create a Plugin, that would do the following:

A. Create admin setup page, with a list of COUNTRIES and a selectable COMBOX with ALL existing CATEGORIES. Enable linking a country to a category.
B. When customer, opens SHIPMENT address page, COUNTRY field will by be set to a pre-defined value (As per admin side, above) - According to selected product category.

For exapmle, if on admin side - USA was linked to CATEGORY 4 ... Then, on front-end - After adding an item from category 4, When customer opens Shipment address page, he'll see USA selected by default.

My q's is - What type of PLUGIN do i need to use and where\how to i trigger it?
Title: Re: Force COUNTRY, on SHIPMENT address, according to CATEGORY
Post by: AhoyIT on October 30, 2013, 18:41:18 PM
BTW,

Event trigger seems to be "editaddresscartST" ... Couldn't find a trigger for it - So how do i go about creating a plug that would?