As above I have someone who has set up customer groups for trade and distributors as well as the default group.
Everything seems OK however the default group can see trade and distributor options on GUEST CHEKOUT BILLING DETAILS.
They are then able to select one of these and get the pricing of those two trade groups.
Did I miss something obvious.
The default group should NOT be able to see or select these options here.
OC 3.0.3.6 - Default theme, hardly any extensions, certainly none that would affect this.
Paypal standard and bank transfer are the ONLY payment options.
Any pointers before I trawl through would be appreciated.
Everything seems OK however the default group can see trade and distributor options on GUEST CHEKOUT BILLING DETAILS.
They are then able to select one of these and get the pricing of those two trade groups.
Did I miss something obvious.
The default group should NOT be able to see or select these options here.
OC 3.0.3.6 - Default theme, hardly any extensions, certainly none that would affect this.
Paypal standard and bank transfer are the ONLY payment options.
Any pointers before I trawl through would be appreciated.
Last edited by mikeinterserv on Wed Jan 25, 2023 11:34 pm, edited 1 time in total.
Are the trade groups unticked in the Customer Groups section of the setting under the Option tab?
You'd probably have to modify the catalog/view/theme/<your-theme>/checkout/guest.twig file, e.g. to have amongst others this in there:
And in the corresponding controller at catalog/controller/checkout/guest.php add this:
I'd do these modifications via event handlers, though you could also use OCmod for this.
Code: Select all
<div class="form-group" style="display:none;">
<input type="hidden" name="customer_group_id" value="{{ config_customer_group_id }}" />
</div>
Code: Select all
$data['config_customer_group_id'] = $this->config->get('config_customer_group_id');
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus
Well if they are unchecked then the option is no longer available in REGISTRATION for those groups. Which it obviously needs to be.ADD Creative wrote: ↑Tue Jan 24, 2023 12:07 amAre the trade groups unticked in the Customer Groups section of the setting under the Option tab?
Like I say I get the feeling I am missing something stupidly obvious here.
The groups DO NOT show up when LOGGED IN as a user. They only appear in guest checkout.
I can't believe this didn't come up before but I had no luck searching.
Thanks for that
As I have said I was hoping it was something obvious I had missed, I can't believe it works this way as is.
Yes, the option does affect both guest checkout and registration. So you would either manually set the customer group for a trade customer after they have registered or modify the guest checkout form to remove the customer group option.mikeinterserv wrote: ↑Tue Jan 24, 2023 4:16 amWell if they are unchecked then the option is no longer available in REGISTRATION for those groups. Which it obviously needs to be.
Like I say I get the feeling I am missing something stupidly obvious here.
The groups DO NOT show up when LOGGED IN as a user. They only appear in guest checkout.
I can't believe this didn't come up before but I had no luck searching.
So is the issue fixed?mikeinterserv wrote: ↑Tue Jan 24, 2023 4:19 amAs I have said I was hoping it was something obvious I had missed, I can't believe it works this way as is.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Yes - just used the code provided by J Neuhoff as is.
Cut the customer group code that was there in each file and pasted the new.
I still can't believe it would work this way though.
Thanks for the input from everybody.
It's needed it some situations for tax calculations, such as a VAT registered customer group being needed at the guest checkout. What is probably needed is the option to select which groups appear at which checkout.mikeinterserv wrote: ↑Wed Jan 25, 2023 11:28 pmI still can't believe it would work this way though.
Who is online
Users browsing this forum: No registered users and 22 guests