Page 1 of 1

Resolved - Inline Style Being Added To Postal Code in Cart

Posted: Fri Aug 09, 2024 5:05 am
by nootkan
Been at this for quite some time now and just cannot seem to figure it out.

Using opencart 1.5.6.5 with the oc_bootstrap_pro theme.
Apache Version 2.4.62
Database Version 8.0.39
Php 7.4
Architecture x86_64

For some reason the style display:none is being added inline to the html on the cart form for estimating shipping and taxes.

If I uncheck the box next to the inspector element css the issue disappears.

At first I tried going over all my css modifications but cannot see any issues (that I am aware of).

Next I thought maybe a mod or vqmod was adding the code via javascript but when disabling all mods/vqmods I still see the same issue.

Tried contacting the developer for the theme but haven't had an answer back yet.

Then I switched to the default theme and the words postal code exist but not the required "*".

Once again if I uncheck the inspector element css the issue is somewhat resolved but without the required asterisk.

I've attached a couple of screenshots to help see what I mean.

Any help much appreciated.

Image

------------------------------------------------------------------------------------------------------------------------

Image

---------------------------------------------------------------------------------------------------------------------

Image

-----------------------------------------------------------------------------------------------------------------------

Image

----------------------------------------------------------------------------------------------------------------------

Image

----------------------------------------------------------------------------------------------------------------------

Image

Re: Inline Style Being Added To Postal Code in Cart

Posted: Sat Aug 10, 2024 1:52 am
by nootkan
I decided to see if I could rewrite the label id and give it a different styling to see if that would work.

So I changed the form label code (id=postcode-required to id=postalcode-required) inside theme>>templates>>checkout>>cart.tpl and decided to check it before changing the css for the new id just in case and voila it now works fine.

Makes me wonder if it was just a typeO all along and how it got there as it is the same in the default theme.

Don't know why I didn't think of this earlier but in any case it seems to be working fine now.

Hopefully someone will benefit from this if it is indeed a typeO in the original files.