Troubleshooting products module - add to cart form missing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Dramatic

Troubleshooting products module - add to cart form missing

Post by Dramatic »

Since the site I'm working on only has six products, I'm using direct details calls, e.g.:
{Products action="details" productid="3"}

However, even when I am using the default template, the add-to-cart form is not being rendered.

CMS and all modules seem to be up to date, and I'm using promotions (but haven't defined any yet).
The products have options.

Any pointers on how to troubleshoot this?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Troubleshooting products module - add to cart form missi

Post by velden »

Note that in the default detail template the code is commented by asterisks:

Code: Select all

{* display the cart *}
{*Cart2 sku=$entry->sku*}
Change to:

Code: Select all

{* display the cart *}
{Cart2 sku=$entry->sku}
Further, you MUST enter a unique SKU per product/product option. Those are 'hidden' on the 'Advanced' tab of product items.
Locked

Return to “Modules/Add-Ons”