Hi all,
I’m a noob to the forum, so be gentle.
Okay, so I’ve been playing locally with the brilliant Kirby (v2) for a while, building a small shop for myself on the back of great initial work covered in these previous posts:
- Probably the original Kirby cart plugin
- And a more recent update of it
These are both great pieces of work, but only offer a basic single level of product to cart functionality, without any category:
- All products must live at domain.com/products/product-1
- And the cart must live at domain.com/products/cart
Without wanting to get too in depth in this initial post, I have a feeling (but might be totally wrong) that my problem is to do with the cart.php plugin, and perhaps the routing/config loops of the site.
Here’s the structure I’d like to enable:
- Products to have their own category, e.g. domain.com/products/category-1/product-1
- The cart to live at domain.com/cart
Side note: I have all of the above structure and templates working, it’s just the adding of items to cart from within /category-1/product-1 that does not work. But if I drop a product back one level to /products then it adds to cart… All very puzzling to me!
Is the above structure possible, or am I being too hopeful?! I’m certainly no php expert and only tinker, so I’ve spent many hours trying to get this to work! Forgive me if I’m being dumb.
Any suggestions or advice would be much appreciated.
Many thanks in advance,
Marcus