1.1.15 • Published 10 months ago

@printcart/wix-integration v1.1.15

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Add Printcart Designer to your Wix Store.

Usage

Add CSS file to header:

<link
  href="https://unpkg.com/@printcart/wix-integration/dist/style.css"
  rel="stylesheet"
/>

Add JS file before the closing body tag:

<script src="https://unpkg.com/@printcart/wix-integration/dist/main.js"></script>

Options

Add window.PrintcartDesignerShopifyOptions variable before our script tag to customize the default UI or extend default functionality:

window.PrintcartDesignerShopifyOptions = {
  designBtnText: "",
  editBtnText: "",
  onCreateSuccess: (data, context) => {},
  onEditSuccess: (data, context) => {},
};

<script src="https://unpkg.com/@printcart/wix-integration/dist/main.js"></script>;

designBtnText

  • Type: string

Change the Start Design button text

editBtnText

  • Type: string

Change the Edit Design button text

onCreateSuccess

  • Type: (data) => void

A function run when the design file finish uploaded.

onEditSuccess

  • Type: (data) => void

A function run when the design file finish editted.

Example

window.PrintcartDesignerShopifyOptions = {
  designBtnText: "Custom Start Design Text",
  editBtnText: "Custom Edit Design Text",
  onCreateSuccess: (data) => console.log(data),
  onEditSuccess: (data) => console.log(data),
};

<script src="https://unpkg.com/@printcart/wix-integration-sdk/dist/main.js"></script>;
1.1.15

10 months ago

1.1.14

10 months ago

1.1.12

11 months ago

1.1.11

11 months ago

1.1.13

11 months ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago