Post by michaelsen » Tue Dec 10, 2013 11:34 pm

As it is now, if I set the discount qty to 5 and the customer buy 3 large and 2 xxl he will receive the qty discount.

I need the options to be treated individually when qty discount is calculated, so he only will get the discount if he order 5 in one specific size.

Are there any way to accomplish this?

New member

Posts

Joined
Tue May 03, 2011 3:17 am

Post by Qphoria » Wed Dec 11, 2013 12:04 am

What you are describing is actually a feature I added to the core back in 1.4.7
To disable it,try this..

1. EDIT: system/library/cart.php

2. FIND:

Code: Select all

foreach ($this->session->data['cart'] as $key_2 => $quantity_2) {
	$product_2 = explode(':', $key_2);

	if ($product_2[0] == $product_id) {
		$discount_quantity += $quantity_2;
	}
}
3. REPLACE WITH:

Code: Select all

$discount_quantity = $quantity;

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 47 guests