Home Forums WoodMart support forum Product Navigation Issue

Product Navigation Issue

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #80851

    Biotula
    Participant

    Hi,

    The product navigation is a great feature but is there a way to prevent it from displaying hidden products from the catalogue (i.e. gifts)?

    Thanks.

    #80863

    Artem Temos
    Keymaster

    Hi,

    Our product navigation is based on standard WordPress functions and unfortunately, it is not possible to prevent it from showing any kind of products.

    Regards

    #80914

    Biotula
    Participant

    get_next_post() and get_previous_post() functions can easily exclude categories for example… I’ve managed to change it in the woodmart_products_nav() function.
    Maybe there’s room for improvment here.

    Regards.

    #80928

    Artem Temos
    Keymaster

    How exactly did you change them?

    #80946

    Biotula
    Participant

    if 15 is the tag_ID of the gift category for example, I can replace :

    $next = get_next_post();
    $prev = get_previous_post();

    by

    $next = get_next_post(false, "15");
    $prev = get_previous_post(false, "15");

    It’s also possible to pass an array of tag_ID.

    #80950

    Artem Temos
    Keymaster

    OK, we are glad that you sorted it out.

    #239596

    mfj1
    Participant

    Hi,

    Just noticed this problem myself. Is there still no official solution?

    I spent a few hours last night misunderstanding how a solution may work (won’t bore you with them but they were all promising, and all failed!) but eventually worked out how the exclusion field works.

    My hidden products use the taxonomy ID 86. So overriding the pluggable function woodmart_products_nav in the mu-plugins folder and adding 86 to that field (ie, get_next_post(false,86); ) works great and now my hidden items don’t show in the product next/prev.

    This is important because I am using product bundles and composite products, and without it shows items that should not be shown to customers but are needed to be part of bundles.

    Can you please add a field for exclusions in the back end page (Product Page > Show/Hide Elements, under Products navigation) so we can enter the excluded terms ourselves here without having to override the woodmart_products_nav function. It will be very useful for people and save having to override a function which always runs the risk of problems with updates etc

    Thanks

    #239652

    Artem Temos
    Keymaster

    Hello,

    Sorry, but there is no such custom field in our theme at the moment, unfortunately.

    Regards

    #239844

    mfj1
    Participant

    Thanks for the reply but I know there isn’t a custom field for this at the moment, I am asking you if you will add one. It would not be hard for you to do this and it would make life easier for a lot of your paying customers.

    #239908

    Artem Temos
    Keymaster

    We will consider this as a feature request for our future updates.

    Kind Regards

    #240259

    mfj1
    Participant

    Thank you

Viewing 11 posts - 1 through 11 (of 11 total)