Post by WKDesigns » Tue Aug 21, 2018 12:53 am

Opencart 3.0.2.0
Journal Theme

I have found the code displaying the Customer Groups selection (radio buttons) during quest checkout.
/catalog/view/theme/journal2/template/checkout/guest.twig

and would like to remove the Customer Group selection from appearing - forcing the selection to be "Customer" (eliminating anyone from selecting another group).

The code is as follows:
<div class="row">
<div class="col-sm-6">
<fieldset id="account">
<legend>{{ text_your_details }}</legend>
<div class="form-group" style="display: {% if customer_groups|length > 1 %} block {% else %} none {% endif %};">
<label class="control-label">{{ entry_customer_group }}</label>
{% for customer_group in customer_groups %}
{% if customer_group.customer_group_id == customer_group_id %}
<div class="radio">
<label>
<input type="radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" checked="checked" />
{{ customer_group.name }}</label>
</div>
{% else %}
<div class="radio">
<label>
<input type="radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" />
{{ customer_group.name }}</label>
</div>
{% endif %}
{% endfor %}</div>

Is it safe to comment out all mention of the Customer Group ID or will this create a problem for Guest Checkout? Any thoughts?

New member

Posts

Joined
Fri Nov 10, 2017 3:09 am

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 74 guests