Page 1 of 2
Required filed missing Select
Posted: 28 Aug 2020, 11:05
by mjmartino
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.
Re: Required filed missing Select
Posted: 28 Aug 2020, 15:42
by Jan
Ahoj,
co máš přesně na mysli s chybějícím "vybrat"?
Re: Required filed missing Select
Posted: 28 Aug 2020, 17:26
by mjmartino
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
Re: Required filed missing Select
Posted: 31 Aug 2020, 18:22
by mjmartino
.up
Any idea?
Re: Required filed missing Select
Posted: 02 Sep 2020, 14:09
by Jan
Hi, not sure if I correctly understand, but maybe this is related to this change in version 3.5.1:
Code: Select all
Added option to hide default product variant when attributes are required (Advanced stock management)
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
Re: Required filed missing Select
Posted: 08 Sep 2020, 16:05
by mjmartino
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
Re: Required filed missing Select
Posted: 09 Sep 2020, 17:55
by Jan
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
Re: Required filed missing Select
Posted: 14 Sep 2020, 13:12
by mjmartino
override
Code: Select all
/html/com_phocacart/layouts/attribute_options_select.php
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.
Re: Required filed missing Select
Posted: 14 Sep 2020, 20:05
by Jan
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
Re: Required filed missing Select
Posted: 15 Sep 2020, 12:54
by mjmartino
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)