Post by Pionell » Tue Feb 19, 2019 4:05 pm

Hello ladies ant gentlemen. I have a weird bug/problem, and I've been banging my head into this problem for 4-5 hours if not more now.
I modified the flat shipping method to have a different name and have a hidden select in the shipping method list div. If the flat shipping method is chosen - it should trigger the hidden select to appear. However - even with radio buttons or the select dropdown if the correct option is selected - it flashes the hidden div and the div is only visible on the second press, meaning the customer would need to double tap the option.

I've tried stopPropagation and preventDefault jquery methods for preventing this from happening - preventDefault does work, but has a few bugs, one of them is that the radio button is not selected on the press, and does not get selected. Is there maybe a easier/better way to achieve what I'm looking for?

Also I'm trying to get the new selected value in the controller, for example the quickcheckout module - it's not appearing in the $data (obviously), nt in the session->data, and not in the request->post (unless I'm doing something wrong), where is the best place to find the value of the newly added select? I'm trying to concactinate the order comment with this select value.

TDLR; The basic idea is that theres a flat shipping method that is used to ship to stationary post boxes and there's a select with the list of those stationary boxes. If the person chooses this shipping option - the hidden select appears, letting the person choose the shipping destination. Then in the controller it should add the shipping method to the end of the order comment - but I can't seem to fetch the value of the select in the shipping/quickchekout controllers.

current code (for select):

Code: Select all

		if (   $( "#flat\\.flat" ).is(':selected') ) {
			$(".hidden-select").css("display", "block");
			$(".hidden-select").css("display", "none");
older variation for radio:

Code: Select all

	$('#shipping_method_list').live('click', function (event) {
		clicked_id =;
		if(clicked_id == 'flat.flat' && == 'INPUT'){
			$(".hidden-select").css("display", "block");
			// if below are on - the radio button won't be changed, and there was another bug if I remember correctly.
			// event.preventDefault();
			// event.stopPropagation();
		}else if( != 'SPAN') {
Thanks for any help!



Sat Mar 11, 2017 3:23 am

Post by straightlight » Wed Feb 20, 2019 3:35 am

Contact the extension developer of QuickCheckout to resolved this issue.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 12 guests