This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:apps:upsell:manual_installation [16.07.20 в 11:11] Максим Дубинин created |
public:apps:upsell:manual_installation [08.07.21 в 17:34] (current) Андрей Скрипников |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Manual installation ====== | ====== Manual installation ====== | ||
- | 1. Add a snippet //"shopify-upsell-config.liquid"// with next code: | + | 1. Add a snippet //"shopify-upsell-api-config.liquid"// with next code: |
<code> | <code> | ||
<script> | <script> | ||
/* Upsell System App Config */ | /* Upsell System App Config */ | ||
- | if (!window.ShopifyUpsellDevConfig) { | + | if (!window.ShopifyUpsellApiConfig) { |
- | window.ShopifyUpsellDevConfig = { | + | window.ShopifyUpsellApiConfig = { |
"template": {{ template | json }}, | "template": {{ template | json }}, | ||
"cart": {{ cart | json }}, | "cart": {{ cart | json }}, | ||
- | "appName": "shopify_upsell_dev", | + | "appName": "shopify_upsell_api", |
"formSelector": 'form[action="/cart"]', | "formSelector": 'form[action="/cart"]', | ||
"checkoutButtonSelector": '[type="submit"][name="checkout"]', | "checkoutButtonSelector": '[type="submit"][name="checkout"]', | ||
Line 22: | Line 22: | ||
"redirectToCheckoutAfterHide": true, | "redirectToCheckoutAfterHide": true, | ||
"forceCheckoutRedirect": false, | "forceCheckoutRedirect": false, | ||
- | "baseUrl": '/a/shopify-upsell-dev-api/v1', | + | "baseUrl": '/a/shopify-upsell-api/v1', |
"debug": false, | "debug": false, | ||
}; | }; | ||
Line 28: | Line 28: | ||
</script> | </script> | ||
- | {% include 'shopify-upsell-dev-data' %} | + | {% include 'shopify-upsell-api-data' %} |
</code> | </code> | ||
- | 2. Add a snippet //"shopify-upsell-data.liquid"// with next code: | + | 2. Add a snippet //"shopify-upsell-api-data.liquid"// with next code: |
<code> | <code> | ||
<script> | <script> | ||
/* Upsell System App Data */ | /* Upsell System App Data */ | ||
- | if (!window.ShopifyUpsellDevData) { | + | if (!window.ShopifyUpsellApiConfig) { |
- | window.ShopifyUpsellDevData = { | + | window.ShopifyUpsellApiConfig = { |
settings: {"enabled":true,"enabled_for_mobile":true,"popup_type":"flash","popup_trigger":"cart_page","popup_products_count":16,"popup_font_family":"Arial","popup_google_font":"","popup_title_color":"#637381","popup_title_size":24,"popup_background":"#ffffff","product_title_color":"#000000","product_title_size":16,"product_text_color":"#777777","product_text_size":16,"product_old_price_color":"#637381","product_old_price_size":16,"product_price_color":"#bf9f66","product_price_size":16,"buy_button_caption":"Add to cart","buy_button_color":"#ffffff","buy_button_background":"#919eab","discard_button_caption":"No, thanks","discard_button_color":"#777777","default_offer_message":"Special offer","default_success_message":"Success Message","offer_free_message":"Free","offer_discount_message":"You got N% off!"} | settings: {"enabled":true,"enabled_for_mobile":true,"popup_type":"flash","popup_trigger":"cart_page","popup_products_count":16,"popup_font_family":"Arial","popup_google_font":"","popup_title_color":"#637381","popup_title_size":24,"popup_background":"#ffffff","product_title_color":"#000000","product_title_size":16,"product_text_color":"#777777","product_text_size":16,"product_old_price_color":"#637381","product_old_price_size":16,"product_price_color":"#bf9f66","product_price_size":16,"buy_button_caption":"Add to cart","buy_button_color":"#ffffff","buy_button_background":"#919eab","discard_button_caption":"No, thanks","discard_button_color":"#777777","default_offer_message":"Special offer","default_success_message":"Success Message","offer_free_message":"Free","offer_discount_message":"You got N% off!"} | ||
}; | }; | ||
Line 47: | Line 47: | ||
<code> | <code> | ||
<!-- Snippet for Upsell System app --> | <!-- Snippet for Upsell System app --> | ||
- | {% include 'shopify-upsell-config' %} | + | {% include 'shopify-upsell-api-config' %} |
</code> | </code> | ||
If this does not work, please write to [[support@kad.systems]] | If this does not work, please write to [[support@kad.systems]] |