• Resolved seelenb

    (@seelenb)


    can I exclude a catalog or categories in the dropdownlist/ integrated with product catalogue

    thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hello @seelenb,

    You would be able to do so using a Custom jQuery snippet:

    var categoriesToRemoveFromReviewForm = ["AAC ", "adsv Dynamica"];
    
    for (var i = 0; i < categoriesToRemoveFromReviewForm.length; i++){
    	jQuery("#Product_Name option[value='" + categoriesToRemoveFromReviewForm[i] + "']").remove()
    }

    You need to input the exact value of the option in the categoriesToRemoveFromReviewForm string array, so for example, if I wanted to remove “Argo” from the dropdown, I would right click on the dropdown element, scroll through the code to find Argo’s option value, double click on the value and copy it. After that, I would add the value to the array like so:

    var categoriesToRemoveFromReviewForm = ["AAC ", "adsv Dynamica", "Argo"];

    You can paste the jQuery code in your child theme js file.

    Thread Starter seelenb

    (@seelenb)

    thank you / and completely ignoring a specific catalog?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    My apologies about that.

    What do you mean by completely ignoring a specific catalog?
    Do you not want the submit form to appear in a specific catalog?

    Thread Starter seelenb

    (@seelenb)

    on the page the input drop down menu shows all products in the two catalogs i have set up. I want to show in that dropdown only the products from one catalog and exclude the other one

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    There’s no option to do this, unfortunately. You can’t have two separate review forms with two separate products lists. The only way to maybe do it would be to add Custom CSS to target each option value you want to hide. For example:

    option[value="ATAC"] {
        display: none;
    }
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘exclude prod catalog’ is closed to new replies.