Post by szilard.kun » Tue Nov 08, 2016 5:18 am

Hi,

I have the following problem, is there any extension to resolve this?
So.

I have a product with quantity discount, for example:

Product A
1 piece: 10 USD
2-4 pieces: 8 USD

Product A has product options. For example: red color and blue color.

Customer put 1 piece of Product A with red color to the cart. The store show 10 USD price for it.
Customer put an other piece of Product A with blue color. The store show 10 USD price for it too.
But on checkout page, the store compare 2 x 8 USD price, because there are separately, but same product in the cart.

I want to the following:
If the cart contains: 1 blue Product A and 2 red Product A in the cart, I want to calculate the price:
10 USD for red
and
2 x 8 USD for blue.
(the 3 product is same, but other variants)

How can I do this?

Thanks,
Szilard

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by IP_CAM » Tue Nov 08, 2016 8:19 am

As soon as the OC Extension Section will work again, you will find some answers on such,
be using the individual keywoard Phrases to search for Results:
Options
Itemized Options
Sorted Options
Related Options
Copy Product Options
Dependent Options
Optioncopy

Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by szilard.kun » Tue Nov 08, 2016 3:07 pm

Hi Ernie,

I check this, but I want another things. So. This is what I want:

If the cart has two of the same products, but with different product option, the discount need to calculate like if this two same products are different.
So, 1 red apple + 1 green apple is not 2 apple with discount price, but also this is two separate apple with original price.
But 2 red apple has discount price.

2 red apple + 1 green apple: The two red is discount price, but the green is original price.

In this situation there is only one product, the "apple", with original price and quantity discount price. So, I need to reset the quantity discount on different product options.

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by szilard.kun » Wed Nov 27, 2024 4:14 pm

My problem still persists. Does anyone have any ideas?

I am using an old OpenCart version 1.5.6.4.
I use the default Opencart product discount option, which works well. However, if a product has product options, I run into a problem.

I will explain through a small example:

Product: ball
Product option: color: red or blue
Price: 10 usd
Discount: 3 pcs. - 8 usd, 5 pcs. - 6 usd

If the customer puts 3 red balls in the cart, he gets a price of 3 x 8 usd, which is correct. Then he puts another blue ball in the cart. He also gets the blue one for 8 usd, but I want the store to charge him 10 usd, since he only wants 1 of them.

So it seems that when calculating the discount, OpenCart does not take into account the different product options and treats them as the same product.

What should I change in the code to make my example above work properly?

Thanks,
Szilard

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by by mona » Wed Nov 27, 2024 4:34 pm

WOW you have had this problem since 2016 ?
The only way to do it for free would be to have three separate product - one per colour. That is just the way it is because that is what most people want and for those that don't like yourself you can have three separate products.

In 8 years you have not found an extension,?
Maybe this? https://www.opencart.com/index.php?rout ... on_id=1888

Or maybe contact some developers who work with options - maybe for a fee they will adapt it for OC1 ?
https://www.opencart.com/index.php?rout ... n_id=40391
https://www.opencart.com/index.php?rout ... n_id=33706
https://www.opencart.com/index.php?rout ... n_id=33562
https://www.opencart.com/index.php?rout ... n_id=35897
https://www.opencart.com/index.php?rout ... n_id=33901

Search google for "option based discounts opencart" and go through them.

Other than that there isa commercial section you can post your requirements
viewforum.php?f=88

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Thu Nov 28, 2024 12:32 am

szilard.kun wrote:
Wed Nov 27, 2024 4:14 pm
My problem still persists. Does anyone have any ideas?
After 8 years, it's time for you to stop wasting your time and pay a developer such as ourselves or post a job in the Commercial Support Forum.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by szilard.kun » Thu Nov 28, 2024 1:24 am

paulfeakins wrote:
Thu Nov 28, 2024 12:32 am
szilard.kun wrote:
Wed Nov 27, 2024 4:14 pm
My problem still persists. Does anyone have any ideas?
After 8 years, it's time for you to stop wasting your time and pay a developer such as ourselves or post a job in the Commercial Support Forum.
Thanks. I sent you a quote request via your form.

Newbie

Posts

Joined
Sat Dec 08, 2012 8:12 pm
Who is online

Users browsing this forum: No registered users and 89 guests