Skip to content

Latest commit

 

History

724 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.9+
  • 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

Sandbox mode

Sandbox mode displays the post-onboarding settings experience with simulated WordPress.com and Snapchat accounts. Remote requests, storefront tracking, usage tracking, and remote product-feed synchronization are disabled. Changes to the conversion settings are stored separately from live settings.

Enable it with WP-CLI:

wp option update snapchat_sandbox_mode yes

Disable it again with:

wp option update snapchat_sandbox_mode no

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

Reach a highly engaged audience and convert shoppers into customers. Set up in minutes, track real results, and scale your sales with confidence.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages