I was wondering if it is possible to disable a shipping method for a product with Vendr? E.g. the "e-mail" shipping method can be used for tickets but not for clothing. Or one product can be shipped but the other can only be collected.
The showing / hiding of payment / shipping methods is generally left to the implementer to handle, so when you render your list, you could check what is in the order and decide whether to show or hide an option.
One option could be that on a product you state whether it is physical or digital, then copy that value to the order line using properties https://vendr.net/docs/core/1-3-0/key-concepts/properties/ then when you render your list of providers, you can check all the orderlines to see if they are physical or digital and then show the relevant options.
Hey Matt, thanks for the answer. There are indeed several options.
In the meantime I have created my own editor, which I use on the "product" doctype. It is a "Shipping Method Picker" where you can choose from a list of all shipping methods and disable a method for a specific product.
When generating the list of shipping providers, filtering is done on the basis of that property.
Vendr select/disable shipment for product
Hi, I have a question about Vendr.
I was wondering if it is possible to disable a shipping method for a product with Vendr? E.g. the "e-mail" shipping method can be used for tickets but not for clothing. Or one product can be shipped but the other can only be collected.
Thank you
Hey,
The showing / hiding of payment / shipping methods is generally left to the implementer to handle, so when you render your list, you could check what is in the order and decide whether to show or hide an option.
One option could be that on a product you state whether it is physical or digital, then copy that value to the order line using properties https://vendr.net/docs/core/1-3-0/key-concepts/properties/ then when you render your list of providers, you can check all the orderlines to see if they are physical or digital and then show the relevant options.
Hope this helps
Matt
Hey Matt, thanks for the answer. There are indeed several options.
In the meantime I have created my own editor, which I use on the "product" doctype. It is a "Shipping Method Picker" where you can choose from a list of all shipping methods and disable a method for a specific product.
When generating the list of shipping providers, filtering is done on the basis of that property.
Hi Maarten,
Ahh, that's great. Sounds like a good solution.
Glad you were able to implement something that works for you. 👍
Matt
is working on a reply...