Attributes problem

Phoca Cart - complex e-commerce extension
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Attributes problem

Post by ScaleBXL »

Hello,

I can't seem to make size selection required in the attributes.

My selection box is set to required, my options (sizes) to required, I have a selection option not required by default.

I can order the product without selecting the size, I should not be able to do it without selecting the size.

Image
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Attributes problem

Post by ScaleBXL »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Attributes problem

Post by Jan »

Hi, which version of Phoca Cart you are running? Can I see the site where this occurs? Testing now, see no problem there :idea:

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Attributes problem

Post by ScaleBXL »

Hello Jan

Thank you for you reply, here's the link https://www.madeinasturies.eu/kiki/fr/c ... /chemises/

Phaca Cart Version 4.0.10
Joomla 4.4.5
PHP Version 8.1.29
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Attributes problem

Post by Jan »

Hi, set required to all options.

Usually, when the attribute is required, then no "select option" is displayed.

So if it is displayed:
- the attribute is not required
- or the "select option" is set as another value for select box.

Testing now version 4.0.10, setting the attribute to requried, no "select option" is displayed, it cannot be ordered.

Image

:idea:

Jan
If you find Phoca extensions useful, please support the project
ScaleBXL
Phoca Member
Phoca Member
Posts: 38
Joined: 14 Feb 2024, 14:20

Re: Attributes problem

Post by ScaleBXL »

Ok thank you Jan, I did it !

So if I understand correctly I cannot have an option of type "Select" by default?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Attributes problem

Post by Jan »

If you have an option "select" and such is selected, the system takes it as selected option, so this is why it is possible to order.

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