Previous/Next Product Buttons on Single Product Page

This topic has 4 replies, 3 voices, and was last updated 8 years, 1 months ago ago by Jack Richardson

  • Avatar: sguilliard
    sguilliard
    Participant
    February 29, 2016 at 21:30

    Hi,

    Can someone please explain how these buttons are supposed to behave (there doesn’t appear to be any documentation on this)? Should they step through the products within the category, or just step through all products (irresepctive of category)?

    If it is the latter, would you be able to direct me to the function/file that manages this so I can change it?

    Many thanks…

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 1, 2016 at 15:55

    Hello,

    This option works for all products.
    The structure of these arrows you can find in \wp-content\themes\woopress\woocommerce\content-single-product.php file on line 106-112
    and the function in \wp-content\themes\woopress\framework\woo.php file on line 151-185.

    Regards,
    Robert Hall

    Avatar: sguilliard
    sguilliard
    Participant
    March 1, 2016 at 16:02

    Hi Robert,

    Thanks for this, I think I’ll create new functions in the functions.php of the child them to replicate and customise the behavious of the functions in woo.php and then reference them from a new copy of content-single-product.php in the child them too.

    It looks as though this can easily be changed to stay with the category.

    Thanks again; I have what I need to get this working… 🙂

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 1, 2016 at 16:05

    Hello,

    You are welcome!

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Previous/Next Product Buttons on Single Product Page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.