Evaluation issue

Phoca Cart - complex e-commerce extension
opk
Phoca Member
Phoca Member
Posts: 18
Joined: 23 May 2020, 22:56

Evaluation issue

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Evaluation issue

Post 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
If you find Phoca extensions useful, please support the project
opk
Phoca Member
Phoca Member
Posts: 18
Joined: 23 May 2020, 22:56

Re: Evaluation issue

Post by opk »

From my understanding only the 'ADD TO CART' label is missing. Maybe should read 'quantity'?
Image

Thank you.
opk
Phoca Member
Phoca Member
Posts: 18
Joined: 23 May 2020, 22:56

Re: Evaluation issue

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Evaluation issue

Post by Jan »

Hi, the code for add to cart can be found here:
components/com_phocacart/layouts/button_add_to_cart_item.php

Jan
If you find Phoca extensions useful, please support the project
opk
Phoca Member
Phoca Member
Posts: 18
Joined: 23 May 2020, 22:56

Re: Evaluation issue

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Evaluation issue

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply