We are currently integrating our Shopify instance with our ERP and need to be able to set the active status on a per variant basis, based on a data field in the ERP.
How do we achieve this please?
If it is not natively supported, is it a roadmap item and what are the interim solutions?
Disabling the entire product group is not an option.
Thanks
Hi @artysme12
what are the interim solutions?> > Disabling the entire product group is not an option.
Use a flat product model where every variant is a standalone variant.
Currently that is the only way to get per variant granular control across any and all sales channels.
This would also mean having to customize themes to present standalone variants as a singular cohesive product.
For the online-store sales channel ,
to “Disable” a variant that can be done by giving the variant inventory management and setting it’s inventory in shopify to 0 and inventory-policy not allowing “Continue selling when sold out”. This will make it unpurchaseable but still viewable.
This may still display the variant on the frontend in most themes and require a theme customization to suppress it with javascript or styles or to not render it all. Note: it would still be present on the products ajax api.
There are also apps like locksmith used for frontend access control to products and pages.
be able to set the active status on a per variant basis, based on a data field in the ERP
This could be set to a variant metafield that’s then used as a flag for hiding the variant in tandem with theme customizations.
Thanks for your reply. So the visibility/published setting is only available on a product level and not on a variant level and there is no way (either natively or via an app) to achieve that functionality?