fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Hide certain variations per user role

Neil Jarman

Hello,

I would like to be able to hide certain weights from regular users and only make them available to users with (for example) trade accounts.

EG – https://colourcraft.uk/product/fabric-transfer-dye/ – I want to disable or hide entirely the 500g and 1kg sizes for guests and retail customers, but let them show for trade customers.

Can you advise me how to code this please?

Many thanks, NEIL

Golam Kibria

Hi Neil,

Unfortunately, this feature is not currently available.

Please add a feature request here: https://storepress.fider.io/

Thank You

Neil Jarman

Hello Golam, that’s a shame. Are you saying there’s no hook or other coding route available? Thanks, NEIL

Golam Kibria

Hi Neil,

WooCommerce controls this.

If you can apply the rule (condition) to default WooCommerce drop-downs, it should work with the swatches too.

If you have more questions or confusion, please let us know.

Thank you

Neil Jarman

Hello Golam, this may be what I need. I will investigate. Thank you for your guidance. NEIL

Golam Kibria

Hi Neil,

Apologies for the delayed response (it was our weekend).

Hopefully, you will find a solution to the issue.

Thanks a lot & have a great day