Some products are only sold in your physical stores, only on request, or only through a sales partner. This module ties online saleability to a product attribute, for example a “Point of Sale” attribute with the values “Online” and “In store only”. For each attribute value you decide whether products can be bought online, and you can replace the add-to-cart button with a button of your own, for example “Find a store” linking to your store finder.
Features
- Choose any product attribute as point-of-sale attribute; its value is shown on the product page.
- Per attribute value:
- “Not Saleable”: products with this value cannot be added to the cart.
- “Commanding”: if a product has several values, a commanding value decides on its own, even if other values would allow buying online.
- “Show Button”, “Button Text” and “Button Url”: a button with your text and link is shown instead of the add-to-cart button.
- A product with several values stays saleable as long as one of its values is saleable, unless a commanding value forbids it.
- Configurable products: the attribute value, the add-to-cart button and the custom button follow the variant the shopper selects. Variants that are not saleable because of their attribute value stay selectable, so shoppers can still see the information and the button.
- Values of multi-select attributes are joined with a configurable separator.
Configuration
Go to Stores > Configuration > Infrangible Solutions > Product Point of Sale > Attribute, choose the “Product Attribute” and optionally change the “Values Separator” (default ”, ”). After saving, the page shows one group per attribute value with the settings “Not Saleable”, “Commanding”, “Show Button”, “Button Text” and “Button Url”. All settings can be changed per website and store view.
Good to know
The rules apply to simple products and to the variants of configurable products. A companion module, “Catalog Product POS Hyvä Theme”, brings the features to stores using the Hyvä theme. “Catalog Product Swatches” is installed automatically.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-product-posThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.
Using the Hyvä theme? Also install the companion module Catalog Product POS Hyvä Theme:
composer require infrangible/m2-catalog-product-pos-hyva