Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 7.4.7 Duplicate and Missing Form Labels
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/13/2022 :  12:46:58  
Vince,

I just updated to ECT PHP 7.4.7 and ran a test with WAVE accessibility evaluation tool and got the following errors on one of my product detail pages.

1 Error: "Empty Link"

7 Errors: "Missing form label"

5 Errors: "Multiple form labels":

Here is the link to the page:

https://www (DOT) slixprings.com/proddetail.php?prod=SliXshot-Black-Powder-Nipples

Patrick


Vince
Administrator

42874 Posts

Posted - 02/13/2022 :  13:30:53  
Hi Patrick
You seem to have a bit of script firing in the page which does this...

<script>
//ADD LABEL TAG for options
if (document.getElementsByClassName("rcoption")) {
var prelabel = document.getElementsByClassName("rcoption")
var i;
for (i = 0; i < prelabel.length; i++) {
var preinput = prelabel[i].innerHTML;
prelabel[i].innerHTML = "<label>"+preinput+"</label>";
}}
</script>

This is adding an extra <label> tag and causes the duplicate problem. That might have been necessary before but shouldn't be now.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/13/2022 :  13:39:12  
Hey Vince,

Ok... I found and corrected the Duplicate Form Labels. Thanks for pointing that out.

But I'm still getting the following errors:

7 Errors: Missing form label

1 Error: Empty Link


midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/13/2022 :  13:45:47  
The duplicate form labels was derived from this thread.

https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=113867&SearchTerms=add label tag

If anybody used this feature in the past they will have to delete it as it 's not needed anymore.

Vince
Administrator

42874 Posts

Posted - 02/13/2022 :  14:49:17  
Hi Patrick
quote:
But I'm still getting the following errors:

7 Errors: Missing form label
I've made some changes to the updater that should sort out a lot of those.

quote:
If anybody used this feature in the past they will have to delete it as it 's not needed anymore.
Thanks for pointing that out and I've added a note to the thread.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/13/2022 :  15:27:31  
That is much better Vince. Thanks

Now I just have the empty Link Error:

<a href="#">
<span class="megamobiletext"></span>
<svg class="megahamburger" width="0" viewBox="0 0 181 135" height="0">
<g>
<path d="M 30,27 H 165" style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:18.465;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"></path>
<path d="M 30,66 H 165" style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:18.465;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"></path>
<path d="M 30,105 H 165" style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:18.465;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"></path>
</g>
</svg>
</a>

Vince
Administrator

42874 Posts

Posted - 02/13/2022 :  15:29:17  
Hi Patrick
I've got that one too now I believe and if you get a new copy of the js/ectcart.js from the updater it should sort that out.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/13/2022 :  16:34:18  
That fixed that error Vince.

Thanks

I noticed on the clientlogin.php page the buttons for Login and Create New Account have no CSS.

It looks like the update deleted the following ectcart css formatting:

div.cartloginlogin{
min-width:20%;
display:inline-block;
padding-right:5px;
box-sizing:border-box;
}

div.cartloginnewacct{
min-width:20%;
display:inline-block;
}


Vince
Administrator

42874 Posts

Posted - 02/14/2022 :  02:01:24  
Thanks for pointing that out Patrick and I've sorted it out now. There is a new ectcart.css and incclientlogin.php in the updater.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/14/2022 :  17:47:00  
Thanks Vince

At this point everything looks good.

Love the new updates

Patrick


Vince
Administrator

42874 Posts

Posted - 02/15/2022 :  02:25:25  
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000