Post by MajorPain » Fri Aug 02, 2024 12:05 am

Using 3.0.3.8

Item prices (per group):
Retail (default group)(1-2): $15.00
Retail (3+): $13.33
Wholesale: $12.00

Customer assigned Wholesale group.

If I have 2 groups, "Retail" (with discounted bulk pricing, and "Wholesale", and I place an order in the frontend on a wholesale account it does the order with wholesale price of $12.00. But if I go in the admin area and edit that same order, when I see the products page, I see 3 x $13.33 which is incorrect, and if I edit the quantity to 2, the pricing changes to $15.00 which is the retail price. It seems when editing in the admin area, it ignores the Wholesale group which the customer is assigned to and reverts to the Retail pricing group.

So my question is this reverting to the retail group because it's using the "admin" as the user instead of the customer on the order?
Is this just me or can anyone else reproduce this issue?
Is it meant to be this way?

I'd think we should be able to edit orders in the backend and retain the Wholesale group pricing.

Thanks

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by ADD Creative » Fri Aug 02, 2024 2:34 am

If not all your customer groups are not visible then it could be this issue.
https://github.com/opencart/opencart/is ... -834179790

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by MajorPain » Fri Aug 02, 2024 3:40 am

Not sure what you are referring to as visable.
Sort of the same issue.
Read through all of that link and doesn't sound like a solution was found unless I misread it.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by ADD Creative » Fri Aug 02, 2024 4:54 am

By visible I mean the the Customer Groups are ticked in the settings under Account on the Option tab.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by MajorPain » Fri Aug 02, 2024 5:27 am

ADD Creative wrote:
Fri Aug 02, 2024 4:54 am
By visible I mean the the Customer Groups are ticked in the settings under Account on the Option tab.
Thanks. That won't work.
I prefer everyone signup on the default group and I adjust the group in the admin area.
I usually create the wholesale business accounts in the admin area and get the customer to just do a Forgot Password to login themselves.
I guess I'll just have to live with the wrong prices appearing and manually work around it.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by ADD Creative » Fri Aug 02, 2024 3:57 pm

Look at that issue, the problem could be the following.
https://github.com/opencart/opencart/bl ... hp#L57-L62

You could try replacing with the following, to see it it helps.

Code: Select all

$customer_group_id = (int)$this->request->post['customer_group_id'];
Other than that there is a workaround in the first post of the issue.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 18 guests