🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@printcart/wix-integration

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@printcart/wix-integration

Printcart Designer SDK for Wix.

1.1.15
latest
Source
npm
Version published
Weekly downloads
24
242.86%
Maintainers
0
Weekly downloads
 
Created
Source

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>;
Printcart

Keywords

sdk

FAQs

Package last updated on 28 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts