Post by agpsuser » Thu Apr 04, 2024 9:26 pm

Hi,

I have added a radio button on checkout page but does not displayed correctly. It showing a many radio buttons without labels.

I think in the past I had faced the same problem in other installation and I modified an opencart file. Unfortunately, I searched the forum but I didnt find the solution I had used in the past.

Opencart 3.0.3.2

Thanks in advance

Attachments

Screenshot 2024-04-04 162023.png

Screenshot 2024-04-04 162023.png (1.4 KiB) Viewed 1620 times

Last edited by agpsuser on Fri Apr 05, 2024 5:21 pm, edited 2 times in total.

Newbie

Posts

Joined
Sun Apr 26, 2015 3:08 am

Post by Cue4cheap » Thu Apr 04, 2024 9:36 pm

agpsuser wrote:
Thu Apr 04, 2024 9:26 pm
Hi,

I have added a radio button on checkout page but does not displayed correctly. It showing a many radio buttons without labels.

I think in the past I had faced the same problem in other installation and I modified an opencart file. Unfortunately, I searched the forum but I didnt find the solution I had used in the past.

Opencart 3.0.3.2

Thanks in advance
Not enough information.
You wrote "I have added a radio button" ... what is the code you are using?
Is it inside a for loop?

More info needed.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by agpsuser » Thu Apr 04, 2024 9:58 pm

Cue4cheap wrote:
Thu Apr 04, 2024 9:36 pm
agpsuser wrote:
Thu Apr 04, 2024 9:26 pm
Hi,

I have added a radio button on checkout page but does not displayed correctly. It showing a many radio buttons without labels.

I think in the past I had faced the same problem in other installation and I modified an opencart file. Unfortunately, I searched the forum but I didnt find the solution I had used in the past.

Opencart 3.0.3.2

Thanks in advance
Not enough information.
You wrote "I have added a radio button" ... what is the code you are using?
Is it inside a for loop?

More info needed.
Mike
I used the functionality on Admin, Customers > Custom Fields. Type: Radio.

It is the standard and easy way to add custom fields on checkout page.

Newbie

Posts

Joined
Sun Apr 26, 2015 3:08 am

Post by agpsuser » Fri Apr 05, 2024 5:20 pm

On file catalog\view\theme\default\template\extension\quickcheckout\guest.twig

you have to change the line
{% for custom_field_value in custom_field %}

to
{% for custom_field_value in custom_field.custom_field_value %}

Newbie

Posts

Joined
Sun Apr 26, 2015 3:08 am
Who is online

Users browsing this forum: No registered users and 5 guests