Hi Jan
Product / Attributes / Setup Required filed => YES (any attribute is select deflaut)
In the site fronted not show "Vybrat"
Something is change in some update?
https://prnt.sc/u7damj
Regards.
Required filed missing Select
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Required filed missing Select
Ahoj,
co máš přesně na mysli s chybějícím "vybrat"?
co máš přesně na mysli s chybějícím "vybrat"?
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Required filed missing Select
Look a screen
If Attributes setup Required filed on NO when on site show "Vybrat"
If Attributes setup Required filed on YES when on site does show "Vybrat" only the first item / attribute
If someone places an order, they have a suggested one by default, and they should decide what to choose.,
LINK
Im not from Czech Im only support Czech ecommerce
If Attributes setup Required filed on NO when on site show "Vybrat"
If Attributes setup Required filed on YES when on site does show "Vybrat" only the first item / attribute
If someone places an order, they have a suggested one by default, and they should decide what to choose.,
LINK
Im not from Czech Im only support Czech ecommerce
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Required filed missing Select
.up
Any idea?
Any idea?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Required filed missing Select
Hi, not sure if I correctly understand, but maybe this is related to this change in version 3.5.1:
https://www.phoca.cz/news/1079-phoca-ca ... 1-released
Not sure if do you use Advanced stock management but if so, the "select" (vybrat) was removed because it is wrong logically, example:
T-Shirt (sold in variants)
T-Shirt A has options Color and Size
So there can be:
- T-Shirt A, Color Red, Size XXL
- T-Shirt A, Color Blue, Size XL
but there cannot be T-Shirt as default (without color and without any size). So it is assumed when there are required options, it is not possible to select "default" as such option does not exist. So the "default" was removed based on user's feedback.
The "default" value itself is not a problem, the problem are AJAX functions which change price, stock or EAN/SKU. With default selected they display wrong value for stock, price or EAN/SKU, so this is why this option was removed. (In fact they display values for not existing products or product variations)
It can be enabled if needed per Joomla! template override feature of this layout file:
components\com_phocacart\layouts\attribute_options_select.php
line cca 33
Jan
Code: Select all
Added option to hide default product variant when attributes are required (Advanced stock management)
Not sure if do you use Advanced stock management but if so, the "select" (vybrat) was removed because it is wrong logically, example:
T-Shirt (sold in variants)
T-Shirt A has options Color and Size
So there can be:
- T-Shirt A, Color Red, Size XXL
- T-Shirt A, Color Blue, Size XL
but there cannot be T-Shirt as default (without color and without any size). So it is assumed when there are required options, it is not possible to select "default" as such option does not exist. So the "default" was removed based on user's feedback.
The "default" value itself is not a problem, the problem are AJAX functions which change price, stock or EAN/SKU. With default selected they display wrong value for stock, price or EAN/SKU, so this is why this option was removed. (In fact they display values for not existing products or product variations)
It can be enabled if needed per Joomla! template override feature of this layout file:
components\com_phocacart\layouts\attribute_options_select.php
line cca 33
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Required filed missing Select
hmm
I don't want "default" value. I want the user to select the required variant. Now in front end not show "SELECT" but first attribute. This is a problem.
Example:
product T-Shirt : attibute color: white, black (required) in frontend item show T-Shrit: attribute color:white. and should show select (white,black)
https://prntscr.com/udpbmh
I don't want "default" value. I want the user to select the required variant. Now in front end not show "SELECT" but first attribute. This is a problem.
Example:
product T-Shirt : attibute color: white, black (required) in frontend item show T-Shrit: attribute color:white. and should show select (white,black)
https://prntscr.com/udpbmh
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Required filed missing Select
Hi, as written above, when there is value "select" which has null value, the ajax then displays wrong information for stock or price, this is why it was removed. To add it back, the override needs to be done. But if done, the ajax can then display wrong information - information for product which in fact does not exist.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Required filed missing Select
override
I change != 0
Noting happened.
In original path file if I change the change is taking place.
But that's still not what it was.Now is opposite.
https://prntscr.com/ugzkff
How in new version configure product with attribute, and req attribute* which will always have the "select" field? I looked through the documentation again but found nothing helpful.
It turns out that since version 3.5.1 it is not possible or I am missing something.
Code: Select all
/html/com_phocacart/layouts/attribute_options_select.php
Noting happened.
In original path file if I change the change is taking place.
But that's still not what it was.Now is opposite.
https://prntscr.com/ugzkff
How in new version configure product with attribute, and req attribute* which will always have the "select" field? I looked through the documentation again but found nothing helpful.
It turns out that since version 3.5.1 it is not possible or I am missing something.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Required filed missing Select
Hi,
did you test if your override is active, e.g. with some debug information?
Did you see this guide:
https://www.phoca.cz/documents/116-phoc ... -overrides
The path should be:
templates/your_default_template/html/layouts/com_phocacart/
Jan
did you test if your override is active, e.g. with some debug information?
Did you see this guide:
https://www.phoca.cz/documents/116-phoc ... -overrides
The path should be:
templates/your_default_template/html/layouts/com_phocacart/
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Required filed missing Select
Sorry my mistake now override work.
But still this is now solution for me.
https://prntscr.com/ugzkff
You ask me earlyer if I use Advanced stock management - answer is NO. (main product)
But still this is now solution for me.
https://prntscr.com/ugzkff
You ask me earlyer if I use Advanced stock management - answer is NO. (main product)