Commerce
Overview
The Commerce group connects forms to your catalog and cart. A form can collect what a customer picks for a product, send a quote request from the cart, or let customers ask about a product. Each sub-group belongs to an add-on and appears only when that add-on is installed: Product Options, Cart Quote Requests and Product Requests. If none of them is installed, the group isn't on the page.
Go to Stores → Configuration → MageMe Extensions → WebForms and expand Commerce. It comes after Storefront Forms. All settings here are Store View scope: each store view can have its own value.
Settings
Product Options
| Setting | Scope | Default | Description |
|---|---|---|---|
| Enable Product Options | Store View | No | Lets a form act as the option set of a product. |
| Option Price Base | Store View | Product Minimal Price | The price that percentage-priced options are calculated from. Options: Product Minimal Price, Product Regular Price. Shown when Enable Product Options is Yes. |
| Default Form | Store View | Options: your forms. Shown when Enable Product Options is Yes. | |
| Default Form Template | Store View | Inline | Options: Inline, Popup. Shown when Enable Product Options is Yes. |
| Button Click Required | Store View | Yes | Blocks "Add to Cart" until the customer configures the product in the popup. Shown when Enable Product Options is Yes. |
| Button Text | Store View | Configure | Shown when Enable Product Options is Yes. |
| Popup Title | Store View | {{var product.name}} | Shown when Enable Product Options is Yes. |
Product Options → Developer
Selectors and CSS classes for custom themes. Leave the defaults unless your theme needs them. Shown when Enable Product Options is Yes.
| Setting | Scope | Default | Description |
|---|---|---|---|
| Button Selector | Store View | ||
| Button CSS Classes | Store View | ||
| Popup CSS Classes | Store View |
Cart Quote Requests
| Setting | Scope | Default | Description |
|---|---|---|---|
| Enable Cart Quote Requests | Store View | No | Shows a quote request button in the cart. If EasyQuote is also enabled, both buttons show in the cart; give them different button texts. |
| Quote Request Form | Store View | Options: your forms. Shown when Enable Cart Quote Requests is Yes. | |
| Show Quote Button for | Store View | Which customers see the quote request button. Options: All, All Logged In Users, Customer Groups. Shown when Enable Cart Quote Requests is Yes. | |
| Customer Groups | Store View | Options: your customer groups. Shown when Enable Cart Quote Requests is Yes and Show Quote Button for is Customer Groups. | |
| Minimum Item Quantity | Store View | The button appears once any single cart item reaches this quantity. Shown when Enable Cart Quote Requests is Yes. | |
| Button Text | Store View | Send Cart Enquiry | Shown when Enable Cart Quote Requests is Yes. |
| Popup Title | Store View | Cart Enquiry | Shown when the form has no heading of its own; a form with a heading uses that instead. Shown when Enable Cart Quote Requests is Yes. |
| Attach Cart to Submissions | Store View | Attaches the current cart contents to submissions of the selected forms, even when the quote button is off. Options: your forms. |
Cart Quote Requests → Developer
Selectors and CSS classes for custom themes. Leave the defaults unless your theme needs them. Shown when Enable Cart Quote Requests is Yes.
| Setting | Scope | Default | Description |
|---|---|---|---|
| Button Selector | Store View | .cart-summary | |
| Button CSS Classes | Store View | get-quote-button | |
| Popup CSS Classes | Store View |
Product Requests
| Setting | Scope | Default | Description |
|---|---|---|---|
| Enable Product Requests | Store View | No | Shows a request button on product pages and listings that opens a form about that product. |
| Default Form | Store View | Options: your forms. Shown when Enable Product Requests is Yes. | |
| Applicable Products | Store View | Options: All Products, Selected Categories and Products. Shown when Enable Product Requests is Yes. | |
| Categories | Store View | Use the "Product Request Scope" product attribute to show the button for individual products. Shown when Enable Product Requests is Yes and Applicable Products is Selected Categories and Products. | |
| Show Button For | Store View | Options: All, All Logged In Users, Customer Groups. Shown when Enable Product Requests is Yes. | |
| Customer Groups | Store View | Options: your customer groups. Shown when Enable Product Requests is Yes and Show Button For is Customer Groups. | |
| Display Locations | Store View | Product View | The button appears only in the places selected here. Options: Product View, Product Listing. Shown when Enable Product Requests is Yes. |
| Button Text | Store View | Ask About This Product | Shown when Enable Product Requests is Yes. |
| Popup Title | Store View | Ask about {{var product.name}} | Shown only when the form does not display its own title. Shown when Enable Product Requests is Yes. |
Product Requests → Developer
Selectors and CSS classes for custom themes. Leave the defaults unless your theme needs them. Shown when Enable Product Requests is Yes.
| Setting | Scope | Default | Description |
|---|---|---|---|
| Button Selector on Product Page | Store View | #product_addtocart_form > div.product-options-bottom > div > div > div.actions | |
| Button Selector in Listings | Store View | div.price-box | |
| Button CSS Classes | Store View | product-request-button | |
| Popup CSS Classes | Store View |
Notes
Product Options. With Enable Product Options set to Yes, a product shows a form only if you choose one for it. On the product's edit page, set Product Options Form to a form, or to Default to use the Default Form chosen here. A product left at -- None -- has no options form. With No, no product shows its options form.
- Default Form Template: Inline shows the form on the product page. Popup shows a button labelled with Button Text that opens the form in a popup titled with Popup Title. A product can pick its own template in Product Options Form Template.
- Button Click Required matters only for the Popup template. With Yes, the product can't be added to the cart until the customer has filled in and sent the form in the popup.
- In Button Text and Popup Title,
{{var product.name}}is replaced with the name of the product.
See Product Options.
Cart Quote Requests. The button appears in the cart only when Enable Cart Quote Requests is Yes and Quote Request Form names a form. When a customer sends that form, the products in their cart are saved with the submission. Attach Cart to Submissions saves the cart with the submissions of the forms you select there, even while the quote button is off.
- Show Quote Button for: with nothing saved, the button shows for everyone. With Customer Groups, only signed-in customers in the selected groups see it; guests never do.
- Minimum Item Quantity: leave it empty for no minimum. Otherwise the button appears once any one item in the cart reaches this quantity.
See Cart Quote Request.
Product Requests. The button needs a form: the Default Form chosen here, or the product's own form in its Product Request Form setting. It also needs at least one entry in Display Locations: Product View for the product page, Product Listing for category and search results. On a new installation Display Locations is Product View. The hint under Default Form links to the Product Inquiry template, a ready form for the popup. See Product question on a product page.
- Applicable Products: with nothing saved, it works as All Products. With Selected Categories and Products, the button shows for products in the categories chosen in Categories, and for products whose Product Request Scope is Add To Scope.
- A product whose Product Request Scope is Exclude From Scope never shows the button, whatever you choose here.
- Show Button For: with nothing saved, the button shows for everyone. The Customer Groups list includes Not Logged In, so you can include guests.
- In Popup Title,
{{var product.name}}is replaced with the name of the product.
See Product Request.
Developer sub-groups. Each of the three sub-groups has its own Developer block. Don't confuse it with the Developer group at the end of the configuration page. A selector names the part of your theme's page where WebForms puts the button. The CSS classes add your theme's styles to the button and the popup. Leave them as they are unless the button shows in the wrong place or looks wrong; the person who maintains your theme can fill them in. On Hyvä, the button selectors of Product Options and Product Requests aren't used.