skip to content
KAD::Wiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Log In
>
You are here:
Приветствие
»
public
»
Apps instructions
»
KAD Pre-order
»
Manual installation
public:apps:preorder:manual_installation
====== Manual installation ====== 1. Add a snippet "simple-preorder-bootstrap.liquid" with code: <code> <script> // Bootstrap for Simple Preorder app var SimplePreorderBootstrap = { "page": {{ template | json }}, "product": { "id": {{ product.id | json }}, "title": {{ product.title | json }}, "variants": [ {% for variant in product.variants %} { "id": {{variant.id}}, "inventory_quantity": '{{variant.inventory_quantity}}', "inventory_management": '{{variant.inventory_management}}', "inventory_policy": '{{variant.inventory_policy}}' }, {% endfor %} ] }, "cart": { "items": [ {% for item in cart.items %} { "variant_id": {{item.variant.id}}, "product_id": {{item.product.id}}, "quantity": {{item.quantity}}, "inventory_quantity": '{{item.variant.inventory_quantity}}', "inventory_management": '{{item.variant.inventory_management}}', "inventory_policy": '{{item.variant.inventory_policy}}' }, {% endfor %} ] }, "debug": true, }; </script> </code> 2. In the product template add the code to connect the snippet: <code> <!-- Snippet for Simple Preorder app --> {% include 'simple-preorder-bootstrap' %} </code> 3. In the cart template add the code to connect the snippet: <code> <!-- Snippet for Simple Preorder app --> {% include 'simple-preorder-bootstrap' %} </code> 4. In the snippet adjust the selectors for following buttons: * productSelector — add to cart button * checkoutSelector — checkout button in cart * updateSelector — update cart button If this does not work, please write to support@kad.systems
public/apps/preorder/manual_installation.1528377372.txt.gz
· Last modified: 07.06.18 в 16:16 by
maximzasorin_gmail.com
Page Tools
Show page
Old revisions
Export to PDF
Rename Page
Back to top