• Resolved johncpescod

    (@johncpescod)


    This could be a great plugin! However I don’t see how the plugin makes its selection to show the previous / next product. To be really useful for me, I need a way so that the arrows only show the paintings in one particular gallery (www.koningenart.com). Also it would be good if when a viewer chooses to view paintings using filters (tags) then the previous/next arrows should limit the selection to only those products with that tag.
    Do this and you’ll get a great review from me, 5 stars and a donation ??

    https://www.ads-software.com/plugins/brozzme-product-navigation/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Benoti

    (@benoti)

    I will make these modfications in the next version.
    However, if you don’t want to wait, you can hook through get_adjacent_post (https://codex.www.ads-software.com/Function_Reference/get_adjacent_post). You will find the function used in brozzme_navigation_class.php line 40. Every arguments are empty or set to false. You will be able to choose the taxanomy you want to retrieve products (or posts).
    get_adjacent_post( true, ”, true, ‘taxonomy_slug’ );

    Hope it helps you while you wait for an update !
    Benoti

    Thread Starter johncpescod

    (@johncpescod)

    Thanks for your answer Benoti, however you are getting me lost… I can access the brozzme_navigation_class.php file and looked at line 40. Is it just a case of substituting in my line 40 “get_permalink(get_adjacent_post(false,”,false)” with get_adjacent_post( true, ”, true, ‘taxonomy_slug’ );?
    As you may realise I’m new to this coding business….
    Using our website: koningenart.com, Could you give me an example for our website if the “previous” and “next” buttons should only show paintings in the same gallery or show paintings with the same “tags”. (At the moment we have deactived your plugin because users were being confused because your buttons were taking them to paintings in other galleries.)
    Thanks for your help and we are looking forward to your update soon!

    Plugin Author Benoti

    (@benoti)

    Ok, sorry, I gave you the generic code, you must modify it like this :
    $adjacent_tax = ‘product_tag’; // or product_cat or any new register tax slug
    $previous_adjacent_post = get_adjacent_post(true,”,true, $adjacent_tax);
    $next_adjacent_post = get_adjacent_post(true,”,false, $adjacent_tax);

    $previous_link = get_permalink($previous_adjacent_post->ID);
    $next_link = get_permalink($next_adjacent_post->ID);

    A new release of the plugin with these changes (and new options) comes tomorrow (I hope).

    Thx

    Plugin Author Benoti

    (@benoti)

    The release version 1.2.0 is available. Hope everything will works fine for you.

    Thx

    Hi Benoti

    First congrats for your great plugin !

    We test it on our shop, and we have the same problem as John :

    We want to stay in the same category when clicking on “previous” “next” we dont want to go another category, how to retrict only to the current category ?

    Tx a lot ??

    Plugin Author Benoti

    (@benoti)

    Hi deepblue5,

    As I told John, I’ve add some options to manage this in the last version. Make sure that you correctly choose the right options. You need to choose in same category and set the right taxonomy to follow.

    Maybe there’s a problem with this, but I can’t reproduce this behaviour with my test. I only use WordPress functions to grab the next and previous items and really want to solve the issue if you can not solve it with this little advice.
    Don’t hesitate to contact me via email for more details.

    Hi Benoti,

    Tx for your quick answer

    yes we chose the right options :

    same category : yes

    taxonomy to follow : category

    the behaviour is : we can navigate from product to product within the same category but when we are on the last product of the category then the “next” button would send us to another category, instead of coming back to the first product of the same category

    Plugin Author Benoti

    (@benoti)

    Ok, I will have a look to this behaviour as soon as possible and will publish an update to solve this. As I told you, I use a WordPress function to find the adjacents product and I have to dive in it to find the best solution.
    I keep you in touch about this !

    Thx a lot for using my plugin ??

    Tx a lot for your kind help

    we have tested 3 equivalent plugins and yours is the best, nice admin, nice features and nice output ??

    Plugin Author Benoti

    (@benoti)

    I found the trick to make it work as you want, just need only a little bit of time to set it, test it and the new release will be available ??

    Thx for waiting ??

    tx a lot ??

    Plugin Author Benoti

    (@benoti)

    The version 1.4.0 is now available, I hope everything is fine now (for me it’s ok) !

    Thank you for using Brozzme Product Navigation, don’t forget to rate the plugin if you like it and share it as much as possible ??

    Hi Benoti

    Tx a lot, i added a nice review ??

    i just tested the new version, good job, now it stays in the same category

    i tested but there is something strange :

    the previous button gives all products in the same category

    but the next button gives only some of them, not all of them ! i tried on different categories and noticed the same behavior

    Plugin Author Benoti

    (@benoti)

    Ok, I know why, I will patch this in few minutes.
    Sorry, and thanks for the review !

    Ok tx ??

    Oh my friend just told me there is something to do too :

    people usually have many subcategories on their shops, with 2-3 products per subcategory, which makes 25 products for the whole parent category for instance

    It’s weird to see only the same 3 products when clicking “next”

    I think many people will tell you the same

    Could you set the parent category instead of the subcategory ?

    tx a lot ??

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Limiting next/previous products shown to specific group’ is closed to new replies.