Hello!
We are selling rods for fishing. I've added the required dropdown option of yes/no for customization (engraved text on the rod) which is required as with "yes" it adds $20. And I've added input field below for the customer input.
The problem is that sometimes customers print something in the input, whether willingly or unwillingly, and it shows up even if they have chosen option "no", it still gets made with engraving. We have lost a lot of money because people typed in something accidentally and received the rod with some characters that they didn't order/ don't make any sense.
I would like to add condition to the first option yes/no, so the input field stays hidden till the customer chooses "yes", to avoid any accidents. Or to clear all the input if the option is 'no'. Or make input field inactive till customer chooses "yes". Or else...
I would appreciate any input on the matter.
Thank you!
We are selling rods for fishing. I've added the required dropdown option of yes/no for customization (engraved text on the rod) which is required as with "yes" it adds $20. And I've added input field below for the customer input.
The problem is that sometimes customers print something in the input, whether willingly or unwillingly, and it shows up even if they have chosen option "no", it still gets made with engraving. We have lost a lot of money because people typed in something accidentally and received the rod with some characters that they didn't order/ don't make any sense.
I would like to add condition to the first option yes/no, so the input field stays hidden till the customer chooses "yes", to avoid any accidents. Or to clear all the input if the option is 'no'. Or make input field inactive till customer chooses "yes". Or else...
I would appreciate any input on the matter.
Thank you!
Are you sure there isn't a market for rods branded asdfjkl;?Freelancerr wrote: ↑Thu Jul 30, 2020 2:19 pmWe have lost a lot of money because people typed in something accidentally and received the rod with some characters that they didn't order/ don't make any sense.
There are plenty of extensions for "dependent options", just search and ye shall find.Freelancerr wrote: ↑Thu Jul 30, 2020 2:19 pmI would like to add condition to the first option yes/no, so the input field stays hidden till the customer chooses "yes", to avoid any accidents. Or to clear all the input if the option is 'no'. Or make input field inactive till customer chooses "yes". Or else...
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Yeah, plenty of cool new brands
Ok, I will search for it. I am curious how to do it in code, I dabble in some front-end stuff, trying to learn back-end.
Thank you!
Ok, I will search for it. I am curious how to do it in code, I dabble in some front-end stuff, trying to learn back-end.
Thank you!
well here you go ..
https://stackoverflow.com/questions/197 ... p-down-box
https://stackoverflow.com/questions/197 ... p-down-box
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I know how to do it with HTML and JS, but here I am looking for implementation of this in opencart, which is in PHP.by mona wrote: ↑Fri Jul 31, 2020 3:41 amwell here you go ..
https://stackoverflow.com/questions/197 ... p-down-box
Thank you for the link, although they talk about dropdowns conditioned one on another, which I understand should be similar, but not quite....
You wouldn't want to try this as a first back-end task as it would get pretty complicated.Freelancerr wrote: ↑Fri Jul 31, 2020 3:14 amOk, I will search for it. I am curious how to do it in code, I dabble in some front-end stuff, trying to learn back-end.
If you're looking for an extension, read this first: https://www.antropy.co.uk/blog/how-to-f ... xtensions/
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member