View Product Page

Before you start

To work correctly, the plugin requires WooCommerce coupons to be enabled. Please, make sure the option Enable coupons from WooCommerce > Settings > General is enabled.

Enable WooCommerce coupons

The plugin will not work if you don’t enable the coupons.

Now you can continue with the configuration of the plugin settings.

General settings

From YITH > Dynamic Pricing > Settings, you’ll be able to manage the plugin global settings.

This section consists of 4 specific sets of options that you can configure according to your needs. Let’s analyze them in detail.


General settings

Here, you can set the following options:

  • Allow shop manager to manage Dynamic Pricing and Discounts: enable this option to let shop managers manage the plugin settings.
  • Price format: here you can set how the price will show up on the frontend regarding the original price, percentage discount, and discounted price. You can use the following placeholders:
    • %original_price% (use the <del> tag to mark it as strikethrough text)
    • %discounted_price%
    • %percentual_discount%
  • Show price rule details in customer emails: enable this option if you want to include the discount details in the email customers receive.

Product page

In this section, you can manage the plugin custom messages shown on product pages.

  • Show the discount custom messages: enable this option to show all the custom messages on product pages.

You can set these messages when creating the rules (see here how to create rules).

  • Message position: choose where to show the discount messages from:
    • Before “the Add to cart” button
    • After “Add to cart” button
    • Before excerpt
    • After excerpt
    • After product meta
Discount message on product page

Quantity table settings

From the section Settings > Quantity table, you can configure all options related to the quantity discount rules shown in a table on your product pages.

  • Show quantity tables: enable this option to show the quantity table on products with a quantity discount rule.
  • Table layout in desktop: choose how to show the content of the table on the desktop from horizontally or vertically.
Vertical layout
Vertical
Horizontal layout
Horizontal
  • Table layout in mobile: choose how to show the content of the table on the desktop from horizontally or vertically.
table on mobile
  • Table position: choose where to show the table.
  • Table heading: enter a title to identify the table.
Quantity table settings
  • Show a discount column in tables: enable this option to add an extra column to show the % discount (the % discount is calculated automatically according to the configured rule).
  • Table labels: enter the titles of the table columns/rows.
  • In quantity heading show: choose the format to use to show the quantity options from:
    • The quantity ranges used in the discount rules (e.g.: 1-5)
    • Only the minimum quantity within the range (e.g.: 1)
    • Only the maximum quantity within the range (e.g.: 5)
Quantity ranges
Quantity ranges
Only minimum quantity
Only minimum quantity
Only maximum quantity
Only maximum quantity
  • Show the discount end date in quantity table: enable to show when the discount ends in the quantity table. This one only appears if you have set up an automatic end date in the rule settings.
offer ends quantity
  • Show as default:
    • The first discount rule (usually the minimum discount)
    • The last discount rule (usually the maximum discount)
show discounted price
  • Set default quantity in the table: enable to automatically select the first quantity rule in the table.
  • Change product price when user changes quantity: enable to show an updated price when the user changes the quantity.

Also when clicking on a row, the price will dynamically change (loaded via Ajax for better performance).

Cart

In the Cart section of the plugin Settings, you will find the options to manage the global settings related to the cart.

  • In the cart page show: choose how to show the coupon label related to the cart rules from:
    • A single label to identify all of the cart rules applied
      • Coupon label: enter the text that will highlight the discount in the cart and the order details. The default value is DISCOUNT.
Single label
Single label in cart
Single label
Single label in order
  • The list of all of the cart rules applied
Cart rules list
Cart rules list in cart
Cart rules list
Cart rules list in order
  • Calculate cart discount starting from: choose whether to calculate the cart discount including or excluding tax on the subtotal:
    • Subtotal – tax included
    • Subtotal – tax excluded
  • Show special offers in cart by adapting:
    • the unit price: the product price will be adjusted based on the offer applied
Discount per item
  • the subtotal: the product price will not be adapted, but the price rule will be applied and shown to the subtotal only (both in cart and checkout).
Discount on subtotal
  • Show amount discount info on cart: enable this option to show a custom text to show the total discount for the customer on the cart.
    • Add a custom message in the cart totals: field to enter the custom text.
  • Hide shipping methods: enable this option to hide shipping methods when a cart rule including free shipping is applied to the cart.

Exclusion list

From YITH > Dynamic Pricing > Exclusion list, you will be able to select the products, tags and categories that are excluded from the dynamic rules.

Exclusion list

By clicking on Add exclusion, you can add an exclusion for a product, a category or a tag.

Add exclusion to the list

The items you have selected will appear in the Exclusion list table.

Exclusion list table

Any of the rules that you have created will NOT apply to these products, the products in these categories or the products with these tags.

Rule priority

Price rules

For every price rule you set, you can define a priority level. 1 is the highest priority.

Rule priority

As rules are processed one after the other, giving them a priority order will let you choose which one will override the others if they apply to the same product.

Please, consider that priority helps you manage rules that apply to the same product and refers to all rules of the same type.

Note: there are two distinct priority lists for rules Price Rules and Cart Discounts. Even though they are listed in a unique list, they have a separate priority, because one applies to the cart, others at the product level.

First of all, the system processes Price Rules. It starts with Quantity Discount rules: if a quantity rule applies to a product, all other rules (either Quantity discount or Special offer) applying to the same product will be then ignored, even if the option Disable other rules with lower priority is enabled.

If there are, though, more than one quantity discount or special offer rules applying to different products, they will be all applied, as they do not apply to the same product and do not conflict with one another. This applies only if the option Disable other rules with lower priority is enabled.

Cart rules

After that, Cart discounts will be processed and will apply to the cart total. Cart discount rules can be combined and applied one after the other.

Let’s make an example to make things easier.

  1. Quantity discount rule, priority 2: Product A costs $10, but it costs $5 if the quantity is greater or equal to 10.
  2. Special offer on Product A, priority 1: buy one and get one at 50%
  3. Special offer on Product B, priority 1: buy one and get one at 50%
  4. Cart discount rule, priority 1: 20% off everything

Our cart contains

  • Product A ($5 to $10): 12 items
  • Product B ($18): 2 items

Price rules (Quantity discount and Special offer) will be processed first, so, No. 1, 2, 3.
Rule No. 1 and 2 apply to the same product (Product A), so, only rule No. 1 is applied as it is a Quantity discount rule and is processed first, regardless of the priority.
Product A costs $5 each.
Rule No. 2 is so ignored.
Rule No. 3 is applied to Product B. So, one is at full price of $18, and the second one is at half price of $9.
Now the cart subtotal is (12 x $5) + $18 + $9 = $87
Rule No. 4 applies to the cart subtotal, so, the final price is $69.60.

Applied discount admin view

Whenever a discount is applied, a coupon is created, but what does this mean exactly?

Let’s take a look at the behavior on the backend after products have been purchased and discount rules have been applied.

For the admin, it is important to know what will happen exactly with a cart rule and the coupon that is created.

We will explain this step by step, by using an example.

If there are two or more cart rules valid, the plugin always creates a unique coupon, so it merges the discount amount of the rules into a unique value.
For this reason, even if the rules have a percentage discount, the coupon will be created as a fixed price.

Create the cart rules

Now suppose we have created 2 cart rules:

cart rule with 10%
  • Cart rule 1 applies a discount of 10% for cart subtotal greater than 100$.
Cart rule with 5%
  • Cart rule 2 with an extra 5% if the cart has more than four items.

Add products to the cart – customer view

Now we will add some products to the cart, so both rules are valid.

What happens on the cart page, what will the customer see?

The plugin will apply a coupon with the amount of the two rules so 10% + 5% discount.

merged discount in cart

Change rules – exclude product(s)

Now, for rule 1 we want to exclude specific products from the cart.

Exclude products from rule

So we will add the Exclude products condition and select Hiking shoes.

On the frontend, the customer will not see the difference, because the coupon amount is simply calculated without this product.

On the backend, however, the coupon is applied on all items because the coupon is a fixed price.

Backend view of created coupon – 2 valid rules

backend view of applied coupon

As you can see, each item will have the same discount (not in percentage), also the excluded product will be discounted.

Backend view of created coupon – 1 valid rule

If only one rule is valid, the plugin creates the correct coupon (in percentage for example) and if there are products in exclusion, these products will not receive the discount.

frontend view 1 valid rule

So on frontend, the coupon amount will be the 10% without the product “Hiking Shoes”

And in the order, the items will have the right discount amount.

backend view 1 valid rule

As you can see, now the Hiking shoes item does not have the discount applied!

Now, why is this important to know?

Because, for example, when you receive a refund request, it is good to know how the discount rules have been applied, so you can make sure to refund the right amount.

Shortcodes

Show price table

You can use the following shortcode to show the price table on any product page.

[yith_ywdpd_quantity_table]

You can use it as is to dynamically show the price table of the product on which page it is pasted.

You can force showing the price table of a specific product by simply using the attribute product followed by the product ID.

[yith_ywdpd_quantity_table product="123"]

Show price notes

Using the [yith_ywdpd_product_note product=”123″] shortcode, allows you to show the price notes.

Show cart rule (subtotal condition)

Using the [yith_ywdpd_cart_notice] shortcode, you can show the note for the cart rule when the subtotal condition is selected.

Note: this only works when the ‘subtotal’ condition is used.

Blocks

When adding a new page, you can use the plugin block to easily show the discounted products.

Gutenberg block

Through the block, you can select only the following rules: BOGO, Special offer, Global discount, or Category discount.

Products to show

After adding the block to the page, you must select the type of rule from the dropdown. If you want to show products of all the same type of rule, enable the option Show products for all rules. If, on the contrary, you want to show only products from specific rules, just search for the rule name in the related field and select it.

Rule type

Example with the option enabled

Show products for all rules

Please note: It is not possible to show different rule types on the same page. If, for example, you want to show Special offer and BOGO rule products, you will need to create two different pages.

Layout

Layout

Here, you can set the number of columns and rows to show the products.

Content

Content

Choose the content to show. The available options are:

  • Product image
  • Product title
  • Product price
  • Product rating
  • Add to cart button