• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Cart
  • Videos

Fixed Dollar Amount Discount On 2nd Item Only in WooCommerce

$75.00

Demo Video
Category: WooCommerce Tag: woocommerce_cart_calculate_fees
  • Description

This plugin contains 2 PHP code snippets which enable you to set a fixed cart discount when more than 1 item is purchased for :

  • All products
  • Only products in specific categories

The fixed discount is only applied to the 2nd item when the quantity of the same product is greater than 1.

Fixed Quantity Discount On 2nd Item Only in WooCommerce

Installation

Install the .zip folder as a plugin and activate.

Comment out the function you don’t want to use.

The 1st function applies to all products.

The 2nd function only works when the product belongs to a specific category. Example : category slug cat1.

Swap out the value for the discount from 20 to match your fixed discount amount.

Note : You can copy & paste the PHP code to the end of your child themes functions file if you don’t want to install another plugin.

Primary Sidebar

Cart

Code written by Brad Dalton specialist for WooCommerce with more than 10 years of experience.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Account
  • Checkout
  • Cart
 

Loading Comments...
 

You must be logged in to post a comment.