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

WP SITES

2899

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout

Fixed Price On 1st Item Adding Discount on 2nd & Subsequent Items – WooCommerce

$75.00

Demo Video
Category: WooCommerce Tags: woocommerce_admin_process_product_object, woocommerce_cart_calculate_fees, woocommerce_product_meta_end, woocommerce_product_options_general_product_data
  • Description
  • Reviews (0)

This custom code enables you to change the price of products for the 2nd and subsequent items leaving the 1st item at a different price. This way you can add a quantity discount when more than 1 item is added to the cart. The discount is shown on the cart page in the cart totals table and also on the checkout page in the Order table as seen in the following screenshots and demo video.

Quantity Discount Added To Cart Page WooCommerce
Quantity Discount Added To Checkout Page WooCommerce

A custom number field is added to the Single Product > Product Data – Single product > General tab enabling the shop owner to add a flat rate discount ( Dollar Amount ) for each product.

Installation

Copy & paste the PHP code to the end of your child themes functions file or custom functionality plugin.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Primary Sidebar

Written by Brad Dalton specialist for WooCommerce. Read More…

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Tags
  • Account
  • Checkout
  • Cart
  • Hire Me
 

Loading Comments...
 

You must be logged in to post a comment.