VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: GuidoS on July 24, 2014, 17:20:24 PM

Title: Show shipment option based on SKU or shopper group
Post by: GuidoS on July 24, 2014, 17:20:24 PM
I could not really get an anwer on my question after searching the internet and this forum. But I want to show a specific shipment option based on the selected product or the shopper group in which the product is in. The thing I want to accomplish is that the customer can choose to pickup the article at the shop when we have it in store. We cannot do that bases on stock level because we have everything in stock but not always at the location of the store. So before I am going to develop it myself I wanted to ask if some one knew a plugin that could do this allready.
Title: Re: Show shipment option based on SKU or shopper group
Post by: GJC Web Design on July 24, 2014, 19:27:15 PM
It is relatively easy to filter by a product parameter but the problem is always mixed carts-- what happens when 1 prop is in stock and the other not?
Title: Re: Show shipment option based on SKU or shopper group
Post by: GuidoS on July 29, 2014, 10:17:17 AM
That's one thing that came on my mind too. But most of the time my customers only purchase one product, in case of two or more I could show a message and only show the normal shipping methode.
Title: Re: Show shipment option based on SKU or shopper group
Post by: GJC Web Design on July 29, 2014, 13:00:14 PM
then just write a function that runs during the checkConditions() in the ship plugin that filters by a product parameter

you could fail it if it also incl. a non specified parameter .. and add a message
Title: Re: Show shipment option based on SKU or shopper group
Post by: GuidoS on July 29, 2014, 13:50:15 PM
Thanks! Going to look in to this:)