WooCommerce Pricing!
- created: 05/02/2016
- latest update: 05/02/2016
- by: Lagudi Domenico
First download the plugin file zip file, then there are two ways for installing:
1) The best way to install is via the Plugins > Add New Plugins section in the Wordpress Backend.
2) You can also manually bu unzipping plugin file in /wp-content/plugins directory
Once the plugin is installed please activate.
After activating, the plugin adds new "WooCommerce Pricing!" menu voice.
First approach: Price rules and time periods configuration
Once activated, will be created a "WooCommerce Pricing!" menu voice that will open the pricing rules configurator. By this tool, the shop admin can configure a "Pricing rule" by clicking on the "Add new rule" button.
Once created, the shop have to set some options like:
- Rule name (this is used to identify the rule on Products List page)
- Select Product(s) to which the rule will be applied
- Category(ies) to which the rule will be applied
- Assignemnt strategy
- Children categories strategy
- Time periods in which the pricing strategy will be active and to which roles applies
In this way is possible to select a set of products and/or categories to which apply the scheduling rule. For categories is also possible to assing the rule to all children categories.
Furthermore is possible to apply the rule to al "non-selected" productss and categories, this can be done just selecting the "Except the selected item(s)/category(ies)" option under the "Assignment strategy" section.
It also possible one or more days of the month:
Frontend price display
For each price rule it is possible to set multiple time periods, for each the shop admin can assign different prices based on product quantity on cart. Priority goes bottom to top.
When a rule is applied, the displayed price for a product is dynamically changed in the fronted (product page, shop page, cart page). If the quanty is left empty or is equal to 0,
the displayed price is changed even if the cart is empty:
Scheduling dates examples
Example 1
The shop admin would like to make a special discount of the 20% for all "Category 1" products between 09:00 to 18:00 in evey day and for the whole 25th December day.
To configure this he only has to:
- Create a new rule and assign a name/id
- Select "Category 1" under categories
- Create a new time rule where:
- User roles: leave unselected all
- Day date type: Day of the week
- Days of the week: Select all
- Months: Select all
- Hour: 9
- Minute: 0
- End hour: 17
- End minute: 59
- Create a new date price rule where
- Price strategy: percentage
- Price value: 80% (in this case the final price will be 20% less than the original)
- Min and Max quantity can be left empty (but if the offer has to depend on the purchased quantity, this value can be filled as desidered)
- Create a time rule where:
- Day date type: Day of the month
- Days of the month: Select 25
- Months: Select "December"
- Hour: 0
- Minute: 0
- End hour: 23
- End minute: 59
- User roles: leave unselected all
- Create a new date price rule where
- Price strategy: percentage
- Price value: 80% (in this case the final price will be 20% less than the original)
- Min and Max quantity can be left empty (but if the offer has to depend on the purchased quantity, this value can be filled as desidered)
Example 2
Special price for all the "Category 1" products based on quantity. From 2 to 5 purchases, 20% discount and for more than 6 items 30% discount. This offer has to be active only during December.
- Create a new rule and assign a name/id
- Select "Category 1" under categories
- Create a new time period rule where:
- User roles: leave unselected all
- Day date type: Day of the week
- Days of the week: Select all
- Months: Select December
- Hour: 9
- Minute: 0
- End hour: 23
- End minute: 59
- Create a new pricing rule where
- Price strategy: percentage
- Price value: 80% (in this case the final price will be 20% less than the original)
- Min quantity: 2
- Max quantity: 5
- Create a new pricing rule where
- Price strategy: percentage
- Price value: 70% (in this case the final price will be 30% less than the original)
- Min quantity: 3
- Max quantity: can be left empty
Products list page
WCTBP plugins adds a new column on the Products list page called Pricing rules(s). In this way the Site admin can always know which scheduling rule has be assigned to posts/products.
First approach
Pricing rules are executed using the server time and date. It is possible that the server uses a different time zone from the one of the Shop admin.
To help the shop admin if it is so, WCTBP plugin add a widget in the WordPress Dashoboard called "WordPress Scheduler - Server Time". This widget displays current server time + an "offset value" that by default is 0.
Offset configuration
The offset value is configurable in the "Time, Roles & Quantity rules configurator" configurator. Increasing or decreasing this value is possible to synchronaze server time with the desidered time zone time.