How to create conditional attribute for product?
-
I am using Bagisto Version: v1.4.5
We are working on a requirement where customers can select the cloth material and then can select the size (S, M, L, XL, Custom).
Let's imagine that we have 3 additional attributes with dropdown predefined values
BUST(1-10)
WAIST(1-10)
HIP(1-10)For the "S" size, I want to set sizes to
BUST-2
WAIST-2
HIP-2For the "M" size, I want to set sizes to
BUST-4
WAIST-4
HIP-4For the "L" size, I want to set sizes to
BUST-6
WAIST-6
HIP-6For the "XL" size, I want to set sizes to
BUST-8
WAIST-8
HIP-8For the "Custom" size, the customer should be able to select any values from 3 dropdowns and should reflect in order details as well. Before that, the admin should be able to set these attributes with respect to sizes.
We understand that this will need some custom code however we are looking for a correct approach.
Thank you in advance.
-
@kunalkurhader said in How to create conditional attribute for product?:
HIP-6
Hi there,
For this no need to change any you can handle it from back end.please take a reference from the below screenshot
-
@sanjay-webkul , thank you for the reply.
The given approach will definitely work where we need to mention BUST, WAIST, and HIP with respect to the size. However, for the "Custom" size, the customer should be able to select any values from 3 dropdowns on the product detail page and should reflect in order details as well.