@heseya/store-vue
| Install | |
|---|---|
npm install @heseya/store-vue |
|
| Latest Version: | 3.0.1 |
| Vue: | 2 |
| Last Updated: | Mar 20, 2023 |
| Links: | npm |
@heseya/store-vue
Instalation
$ yarn add @heseya/store-core @heseya/store-vue
// or
$ npm i @heseya/store-core @heseya/store-vue
Usage
TODO
Variables
You need to add following code to your root css stylesheet. There you can set colors to be used by library
:root {
--primary-color: #aaa;
--secondary-color: #aaa;
--gray: #aaa;
--error-color: #aaa;
--header-font-family-family: 'Lato';
--text-font-family: 'Lato';
}
If You'd like to change default colors of texts and buttons/boxes in <hs-checkout> component, please add this variable set to :root selector
:root {
--hs-checkout-price-initial-color: #aaa;
--hs-checkout-price-discount-color: #aaa;
--hs-checkout-price-color: #aaa;
--hs-checkout-label-color: #aaa;
--hs-checkout-value-color: #aaa;
--hs-checkout-submit-background: #aaa;
--hs-checkout-submit-background-hover: #aaa;
--hs-checkout-submit-color: #aaa;
--hs-checkout-submit-color-hover: #aaa;
--hs-checkout-button-link-background: #aaa;
--hs-checkout-button-link-background-hover: #aaa;
--hs-checkout-button-link-color: #aaa;
--hs-checkout-button-link-color-hover: #aaa;
--hs-checkout-sale-background: #aaa;
--hs-checkout-sale-color: #aaa;
--hs-checkout-sale-button-background: #aaa;
--hs-checkout-sale-button-background-hover: #aaa;
--hs-checkout-sale-button-color: #aaa;
--hs-checkout-sale-button-color-hover: #aaa;
}
<hs-checkout> customization
Every section of <hs-checkout> component can be replace with a custom one just by placing it in <template #section-name>.
Here's list of every customizable section and explanation of its props:
-
delivery-country receives:
value- value of currently choosen country e.g. PLcountries- list of all avaiable countries (array)l- translations for noCountrySelected and deliveryCountry (object)change- event for change currently choosen country, takes country code as parameter e.g. PL
-
delivery-methods receives:
value- id of currently choosen delivery method e.g. afc3d72a-68f7-46d9-9c09-2dee35a49816methods- list of available shipping methods (array)l- translations for deliveryMethod, noDeliveryMethods, deliveryIn, days (object)change- event for change currently choosen shipping method, takes id as parameter
-
delivery-address receives:
value- whole form objectallowInvoice- true if invoice is allowed, false otherwayisInvoice- currently state of isInvoice (boolean)l- translations with structure of:address, invoice, form: { name, address: formAddress, postCode, city, email, phone, comment }update- event for update delivery address, takes form objectswitchInvoice- event for switch visibility of invoice form, takes no arguments
-
delivery-address-invoice receives:
formData- whole form.invoiceAddress objectl- translations with structure of:invoiceDetails, form: { companyName, companyAddress, postCode, city, vat }update- event for update invoice address, takes form.invoiceAddress object
-
delivery-state-checkout receives:
isAccepted- value of isStatuteAccepted (boolean)l- translations with structure of:consets, statute: { accept, statute }switch- event for switch statute acceptation, takes no arguments
-
items receives:
items- list of products in the cart (array)lock- true if child component(<cart-item>) is not allowed to be removed or its quantity can't be modified, false otherway
-
coupon-code receives:
coupon-code- coupon code e.g. 301H8WWC (string)cartValue- total value of products in the cart (with sales applied)l- translations with structure of:{ label, applied, codeDoesNotExists, codeUnavaliable}coupon- event for coupon apply, takes coupon object
-
summary-coupons receives:
coupons- list of applied coupons (array of coupon objects)title- translation ofappliedCouponscouponRemove- event for coupon remove, takes id of coupon e.g. 07133fe8-6b42-4527-8edf-66df8c064874 (string)
-
summary-sales receives:
sales- list of sales (array)title- translation ofappliedSales
-
summary-details receives:
cartTotalInitial- total value of products in the cart (without sales applied)cartTotalDiscount- total value of discountshippingPriceInitial- initial value of shippingshippingPriceDiscount- discounted value of shippingtotalOrderAmount- final value of orderl- translation with structure of:{ cart, discount, delivery, total }
-
summary-buttons receives:
isLoading- (boolean)disabled- (boolean)backToShopLink- URL to main pagel- translation with structure of:{ buy, return: returnToShopUrl }
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.1 | ^2.6.12 | ||
| 3.0.0 | ^2.6.12 | ||
| 2.1.1 | ^2.6.12 | ||
| 2.1.0 | ^2.6.12 | ||
| 2.0.1 | ^2.6.12 | ||
| 2.0.0 | ^2.6.12 | ||
| 0.6.1 | ^2.6.12 | ||
| 0.6.0 | ^2.6.12 | ||
| 0.5.15 | ^2.6.12 | ||
| 0.5.14 | ^2.6.12 | ||
| 0.5.12 | ^2.6.12 | ||
| 0.5.11 | ^2.6.12 | ||
| 0.5.10 | ^2.6.12 | ||
| 0.5.9 | ^2.6.12 | ||
| 0.5.8 | ^2.6.12 | ||
| 0.5.7 | ^2.6.12 | ||
| 0.5.6 | ^2.6.12 | ||
| 0.5.5 | ^2.6.12 | ||
| 0.5.4 | ^2.6.12 | ||
| 0.5.3 | ^2.6.12 | ||
| 0.5.2 | ^2.6.12 | ||
| 0.5.1 | ^2.6.12 | ||
| 0.5.0 | ^2.6.12 | ||
| 0.4.0 | ^2.6.11 | ||
| 0.3.9 | ^2.6.11 | ||
| 0.3.8 | ^2.6.11 | ||
| 0.3.7 | ^2.6.11 | ||
| 0.3.6 | ^2.6.11 | ||
| 0.3.5 | ^2.6.11 | ||
| 0.3.4 | ^2.6.11 |
Showing the latest 30 of 60. See every release on npm
Pre-releases (23)
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.0-rc.4 | ^2.6.12 | ||
| 3.0.0-rc.3 | ^2.6.12 | ||
| 3.0.0-rc.2 | ^2.6.12 | ||
| 3.0.0-rc.1 | ^2.6.12 | ||
| 3.0.0-alpha.7 | ^2.6.12 | ||
| 3.0.0-alpha.6 | ^2.6.12 | ||
| 3.0.0-alpha.5 | ^2.6.12 | ||
| 3.0.0-alpha.4 | ^2.6.12 | ||
| 3.0.0-alpha.3 | ^2.6.12 | ||
| 3.0.0-alpha.2 | ^2.6.12 | ||
| 3.0.0-alpha.1 | ^2.6.12 | ||
| 2.1.0-rc.1 | ^2.6.12 | ||
| 2.0.0-rc.11 | ^2.6.12 | ||
| 2.0.0-rc.10 | ^2.6.12 | ||
| 2.0.0-rc.9 | ^2.6.12 | ||
| 2.0.0-rc.8 | ^2.6.12 | ||
| 2.0.0-rc.7 | ^2.6.12 | ||
| 2.0.0-rc.6 | ^2.6.14 | ||
| 2.0.0-rc.5 | ^2.6.14 | ||
| 2.0.0-rc.4 | ^2.6.14 | ||
| 2.0.0-rc.3 | ^2.6.12 | ||
| 2.0.0-rc.2 | ^2.6.12 | ||
| 2.0.0-rc.1 | ^2.6.12 |