• Resolved jimmytaylor1

    (@jimmytaylor1)


    Hi – I’m working on a big e-commerce website and have around 300 products that need to show the age verification.

    Is there a way to set a rule based on a tag? Or to import somehow into the CSV? Or do I need to go through each product individually in the back-end?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @jimmytaylor1,

    You can set by tag, you need to enable it in the “Restriction” settings, then you select the taxonomies in advanced. However, it is getting a pretty big overhaul in v3 as the current version of it isn’t the most reliable to be honest.

    The plugin just uses meta data to restrict or bypass the age check.
    Assuming you’re using “Selected content” mode, you could import a csv (loads of csv importers out there) in the following structure, or add it as part or a woocommerce import if you can:

    
    ----------------------------------------------
    | post_id | meta_key           | meta_value  |
    ----------------------------------------------
    | 1       | _age_gate-restrict | 1           |
    ----------------------------------------------
    | 2       | _age_gate-restrict | 1           |
    ----------------------------------------------
    | 3       | _age_gate-restrict | 1           |
    ----------------------------------------------
    

    Another option is to give the v3 dev build a go as the tag/category stuff is better. Might build in a “restrict by post type” though, that’d be quite a nice option!

    Let me know if that makes sense or not

    Thanks
    Phil

    Thread Starter jimmytaylor1

    (@jimmytaylor1)

    Thanks Phil! That all sounds great for v3 🙂

    I’ve managed to import as meta data for these products through the CSV importer which is a great solution.

    Thanks for coming back so quickly to me!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Importing from a CSV or tag-based rules’ is closed to new replies.