1.0.6 • Published 5 years ago

adwise-m2storefront v1.0.6

Weekly downloads
21
License
-
Repository
-
Last release
5 years ago

adwise-m2storefront

Implementation in existing storefront

npm install adwise-m2storefront

Configure the implementation. Place the configuration as low in the body as possible.

<script type="text/javascript">
      var APP_SETTINGS = {
        checkout_url: 'https://checkout.test/checkout/onestepcheckout/', // URL to the checkout
        cart_url: 'https://checkout.test/cart/', // URL to the cart (used in minicart)
        locale: 'nl', // locale used for formatting prices
        language: 'nl', // default language the app is loaded in
        vat_rate: 0.21, // float value of tax
        api: {
          base_url: 'https://checkout.test/rest/V1/', // Magento API entry
          bearer_token: 'qvn8jsd1qf4qkpwfi9hsefnupwhaa14r' // Magento API authorization token
        },
        messages: [] // Array of predefined messages to show format: { text: 'Your message', type: 'error' }
      }
    </script>

Include source files in template. Should be inserted after defining APP_SETTINGS.

node_modules/adwise-m2storefront/dist/js/vendors.js
node_modules/adwise-m2storefront/dist/js/apps.js

#####Minicart

<div id="vue-minicart"></div>

#####Cart

<div id="vue-cart"></div>

#####Notifications (multiple instances on page allowed)

<div class="vue-notifications"></div>

#####Add to cart (multiple instances on page allowed)

<div class="vue-add-to-cart" data-sku="[[PRODUCT SKU]]"></div>

Project development setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago