Modify virtuemart shipping plugin -- 2
Project details
I need a new option in the VM Shipping Plugin.
In the backend, in the plugin configuration, I need a checkbox (labeled, i.e. “Stock check”).
When unchecked (default), the plugin works as usual.
When checked:
If the customer, in the cart frontend, selects this shipping method, and click “next”, the plugin has to:
– for every product in the cart, it has to check if there is enough stock number (the stock must be equal or superior than the units asked by the customer) .
– If so, continue as usual to payment.
– If no, it has to show a pop up (in the middle of the screen, size as need for the next content): pre-text (fixed), a list of the products of the cart without enough stock, a post-text (fixed, too) and a “close button).
When customer close the popup (the only thing he can do), he remains in the shipping selection page.
Awarded to:

Bikram T.
(4.7)
Awarded to:

Bikram T.
(4.7)
Project details
In the backend, in the plugin configuration, I need a checkbox (labeled, i.e. “Stock check”).
When unchecked (default), the plugin works as usual.
When checked:
If the customer, in the cart frontend, selects this shipping method, and click “next”, the plugin has to:
– for every product in the cart, it has to check if there is enough stock number (the stock must be equal or superior than the units asked by the customer) .
– If so, continue as usual to payment.
– If no, it has to show a pop up (in the middle of the screen, size as need for the next content): pre-text (fixed), a list of the products of the cart without enough stock, a post-text (fixed, too) and a “close button).
When customer close the popup (the only thing he can do), he remains in the shipping selection page.