Skip to content

woocommerce/snapchat-for-woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

617 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapchat for WooCommerce

Seamlessly integrates your WooCommerce store with Snapchat's advertising platform, enabling you to reach potential customers through visual ads.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests.

The best place to get support is the WordPress.org Snapchat for WooCommerce forum.

Requirements

  • WordPress 6.7+
  • WooCommerce 10.2+
  • PHP 7.4+

Plugin Setup and Configuration

Install: Install from WordPress.org or via Plugins → Add New and search for "Snapchat for WooCommerce"; then activate.

Configuration: After activation, go to WooCommerce → Marketing and use the Snapchat channel, or open the setup flow at WooCommerce → Marketing → Snapchat.

Development

Prerequisites

Install

nvm use
npm install
composer install

Build

  • npm run build — production build
  • npm run start — development build with watch

Local environment

npm run env:start

With the environment running, open the Snapchat setup page at:

You can also go to WooCommerce → Marketing and open the Snapchat channel from there.

Testing

Linting

  • npm run lint — run PHP, JavaScript, and CSS linting
  • npm run lint:php — PHP only
  • npm run lint:js — JavaScript only
  • npm run lint:css — CSS only

E2E tests

E2E tests use Playwright and require Docker. After starting the environment:

npm run env:start
npm run test:e2e

The env:start script runs tests/e2e/bin/initialize.sh after the environment is up.

Helper Scripts

From package.json:

  • npm run build — production build
  • npm run start — development build with watch
  • npm run lint — full lint (PHP + JS + CSS)
  • npm run lint:php — PHP code standards
  • npm run lint:js — ESLint
  • npm run lint:css — stylelint
  • npm run format — format code
  • npm run env:start — start wp-env
  • npm run env:stop — stop wp-env
  • npm run env:clean — clean wp-env
  • npm run env:destroy — destroy wp-env
  • npm run test:e2e — run Playwright E2E tests

Built with Create Woo Extension.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors