getNextSibling for next product in product type I’m setting up a Craft Commerce website, and at the end of the product pages, I’d like to add a link to the next product in the same product type as the current product.

For regular entries, I used {{ entry.getNextSibling().url }} to get the next entry in the current section, but I can’t figure out how to get the same result for the products.

Thanks!
getNextSibling works in the context of a Structured Section for Entries and for Categories because both of them have the concept of a hierarchy.  i.e. in a Structured Section and a Category Group, each element can have parents and children.

Commerce Products don't have hierarchy natively.  Could be a bit of a pain to maintain, but you could simulate it by adding an "Order" number field to your product field layout and manually enter the order for each product in a product type, grabbing all of them in Twig and doing the sorting there.