VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: vmfyelloq19 on July 25, 2024, 17:10:51 PM

Title: shopper field required based on shipping method (no address on pickup required)
Post by: vmfyelloq19 on July 25, 2024, 17:10:51 PM
Friends,

I have two shipping methods, standard shipping and pick up.
For shipping, the shopper fields street, zip and city are set to required.

If pickup is selected, I'd like to make them not-required (or hide them completely).

Any hints?
Title: Re: shopper field required based on shipping method (no address on pickup required)
Post by: Jumbo! on July 25, 2024, 21:22:01 PM
You need a custom plugin to accomplish this.
Title: Re: shopper field required based on shipping method (no address on pickup required)
Post by: vmfyelloq19 on July 29, 2024, 17:00:33 PM
Hi Jumbo,

could you hint me some further what type of plugin that would be?
A shipping plugin I assume? Or are there any API calls I could use to on-the-fly modify shopper field details?

Cheers, vmf