Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to create conditional attribute for product?

    General Discussion
    2
    3
    146
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kunalkurhader last edited by

      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-2

      For the "M" size, I want to set sizes to
      BUST-4
      WAIST-4
      HIP-4

      For the "L" size, I want to set sizes to
      BUST-6
      WAIST-6
      HIP-6

      For the "XL" size, I want to set sizes to
      BUST-8
      WAIST-8
      HIP-8

      For 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.

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        @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
        one.png

        two.png

        1 Reply Last reply Reply Quote 0
        • K
          kunalkurhader last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post