Page 1 of 1
Evaluation issue
Posted: 28 Sep 2022, 22:01
by opk
Hello again, I have a problem with evaluation (the site needs to pass an accessibility evaluation to conform with a EU program...) There are some forms that are "missing label" such as the quantity field in ad to cart e.g.
https://wave.webaim.org/report#/https:/ ... n-earrings
and the pagination dropdown here:
https://wave.webaim.org/report#/https:/ ... ollections (which I don't need anyway but I don't know how to hide it)
Can you help me with this?
Thank you!
Re: Evaluation issue
Posted: 29 Sep 2022, 18:12
by Jan
Hi, yes, if you let me know the list of elements which needs to be changed plus the attributes values, I will update it.
Thank you, Jan
Re: Evaluation issue
Posted: 29 Sep 2022, 22:32
by opk
From my understanding only the 'ADD TO CART' label is missing. Maybe should read 'quantity'?
Thank you.
Re: Evaluation issue
Posted: 03 Oct 2022, 13:13
by opk
Can you help me please? At least a clue, where can I find it in the code to add the label? I have an urgent deadline. Thanks.
Re: Evaluation issue
Posted: 03 Oct 2022, 22:49
by Jan
Hi, the code for add to cart can be found here:
components/com_phocacart/layouts/button_add_to_cart_item.php
Jan
Re: Evaluation issue
Posted: 04 Oct 2022, 00:19
by opk
Yes, found it. Added <label> tag here
Code: Select all
<label>
<div class="<?php echo $d['s']['c']['form-group'] ?> ph-form-quantity phProductAddToCart<?php echo $d['typeview']. (int)$d['id'] .' '.$d['class_btn']; ?>"></label>
<label><?php echo JText::_('COM_PHOCACART_QTY'); ?>: </label>
and it is ok now.
Re: Evaluation issue
Posted: 08 Oct 2022, 02:02
by Jan
Ok