Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,

Is it possible to define an item on the fly and add it to the cart, without creating a specific product page?

Like: item name, item picture, item prices depending on size then customer select a size and click "Add to cart"

My website contains thousands of web pages that are created automatically from galleries.

Basically, which variable should I use in <cms:pp_product_form>...</cms:pp_product_form>

I tried and follow the tuts, but I really don't get it...

Thanks for any help.
Paolo
Hi Paolo,

I don't think it'd be possible (not without much arm twisting at least) to make the cart work without 'pages' (which the cart represents as 'items').

In any case, you already have those pages ("..thousands of web pages that are created automatically from galleries").
So they are ready to be added to the cart with only some minimal changes.

As the docs (https://docs.couchcms.com/concepts/shopping-cart-1.html) state -
One editable region is mandatory, though. It is the one that is used to input the product's price and has to be named 'pp_price'.

There are two other editable regions that, while not being mandatory (i.e. you can skip defining them if not required), carry special significance for CouchCart. The first amongst them is 'pp_options'. A region by this name is used with products that support 'variants' or 'options' e.g. colors, sizes etc.

The other is 'pp_requires_shipping'. This is used for physical products that need to be taken into account while calculating the shipping charges.

So you'll need to add a field named 'pp_price' to the template of your products.
If the products will present options to the buyer (e.g. sizes), then 'pp_options' would also be needed.
If shipping calculations are to be done for the products, then also add the 'pp_requires_shipping'.

The example site that comes with the doc shows all the mentioned fields.

If this is the first time you are trying to use CouchCart, I'd suggest you please first try implementing the sample site first.
That will give you a good hang of the entire process.

Of course, feel free to let us know if you get stuck somewhere.
Ok, I did implement the couch cart.

And it works well.

I just don't know how to "push" the values in the cart...

I tried to define <cms:set pp_price='234' /> for example. It appears on the page, but is not pushed in the cart (your cart is empty).

I am opening a ticket.
3 posts Page 1 of 1