Skip to content

claradaia/shipping-extras

Repository files navigation

Shipping Extras

A WooCommerce extension that adds custom discount rates for shipping according to the purchase subtotal, as well as free shipping for users with a "VIP Customer" role.

Inspired by Create Woo Extension.

Getting Started

Requirements

Installation and Build

$ npm install
$ npm run build

Testing

Requirements

Loading sample data

Create sample users, products and shipping methods by running

$ wp-env start
$ wp-env run cli bash ./wp-content/plugins/shipping-extras/load_sample.sh

Shipping discounts

  • Log in to the pre populated store as John Doe (username jdoe, password jdoe)
  • Add items to your cart
  • Go to checkout and check the shipping costs. Increase and decrease quantities to check discounts for each subtotal tier.

VIP Customer shipping

  • Log in to the pre populated store as Victor Irving Parker (username viparker, password viparker)
  • Add items to your cart
  • Go to checkout and check the shipping costs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published