using pretty urls not on pages

Permalink
I want to build a c5 ecommerce plugin that the products are not based on pages (because frankly c5 is not good for ecommerce as of now)
I would like to render a product on a theme page but use a different url for each product.
(Instead of having lets say mysite.com/product?id=123 i would like to have mysite.com/myproductname)
But i do not want to make a page for each product

I hope i was clear. Does anyone have some kind of idea how to do this?

Thanks in advance.

 
JohntheFish replied on at Permalink Reply
JohntheFish
If you put a single page at the top, all descendant URL fragments get passed as parameters to the single page controller view() method.
aryeh replied on at Permalink Reply
Your saing if i have mysite.com/product?id=1 so id will be passed to the view.
But if i have mysite/product/product-1 product-1 will not be passed to the view. I will just get page not found.
I think you didnt. Understand what i was asking. I need it to look like its a page but really i show a whole bunch of product on a single page.
mhawke replied on at Permalink Reply
mhawke
So you want a URL that indicates a single product but on that very page you are displaying multiple products. This does not make sense to me.

Either the page is showing a single product like 'Claw Hammer CH510" with a URL that ends with something like '/claw-hammer-ch510' or the page is displaying a bunch of hammers with a URL that says '/hammers'.

What am I missing here?

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.