Hello,
i have a product with multi attributes.
stock control based on variants.
button add to cart is not shown because stock control is based on variant and first attribute option has 0 stock.
as soon as i make a choice on one of them i can order it. it does not force the customer to first select both options.
So stock control schould be based on all attributes not only the first selection.
i tried to change the second attribute as a checkbox, and required. this option force the customer to make a selection.
But with checkbox you can select both options. it should be only one.
main product stock = 1 (>0 is needed otherwise it does not show the product at all)
product price defined on variant
- attributes 1
Required, select
-- first option : Make your Choice
Set do default, no stock, no price
-- second option: 10 days
with stock, and price
-- third option: 30 days
with stock, and price
- attributes 2
-- first option : Make your Choice
Set do default, no stock, no price
-- second option: Male
with stock, and price
-- third option: female
Multi attributes
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Multi attributes
Hi, see this parameter: Remove Select Option
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 225
- Joined: 31 Dec 2020, 09:46
Re: Multi attributes
Helli Jan,
What issue i described would solve this setting .
It was set to Yes..
Set it to no, but i dont see something changed or fixed about the issues..
Perhaps because of sunday.. but i can not follow this..
Please explain. Thnx
What issue i described would solve this setting .
It was set to Yes..
Set it to no, but i dont see something changed or fixed about the issues..
Perhaps because of sunday.. but i can not follow this..
Please explain. Thnx
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Multi attributes
Hi, try to see:
https://www.phoca.cz/documents/116-phoc ... and-tricks - "Setting the Required Attributes and Default Options"
if you set default value and required value for the attribute and you will set "remove select option" to on, then the default option will be displayed in select box and there will be no option to order main product with stock 0.
See the difference: parameter not enabled, no default value, no required value set:
vs:
So:
- default value should be set, this will be the selected value when user visits this site
- required value needs to be set (if not set than it will be possible to order main product) - if you have e.g. T-Shirt, then color and size must be required, because there is no T-Shirt without color and size
- the parameter "remove ..." needs to be set to on
Then only items which are on stock can be ordered (you can see on first screenshot that even "add to cart" button is automatically hidden)
Jan
https://www.phoca.cz/documents/116-phoc ... and-tricks - "Setting the Required Attributes and Default Options"
if you set default value and required value for the attribute and you will set "remove select option" to on, then the default option will be displayed in select box and there will be no option to order main product with stock 0.
See the difference: parameter not enabled, no default value, no required value set:
vs:
So:
- default value should be set, this will be the selected value when user visits this site
- required value needs to be set (if not set than it will be possible to order main product) - if you have e.g. T-Shirt, then color and size must be required, because there is no T-Shirt without color and size
- the parameter "remove ..." needs to be set to on
Then only items which are on stock can be ordered (you can see on first screenshot that even "add to cart" button is automatically hidden)
Jan
If you find Phoca extensions useful, please support the project