Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
The question has been closed iz razloga: Question / Code not indented
by ANRD na 03. 05. 2024 12:37:10

I'm trying to modify the Views > website_sale.product. Currently, when an invalid combination is selected, an error message appears, and the "Add to Cart" button is deactivated. However, we have a specific scenario where we want a combination to register as invalid on the website, triggering the warning message and making the "Add to Cart" button inactive, but still be available as a valid product for our sales team to add to quotations.


I've attempted to modify the code so that any variant value containing the word "custom" will trigger the warning message and make the "Add to Cart" button inactive, while still allowing the product to be available for building quotations. But I have not had any success.


Would anybody be able to assist? Here is the original code.


       

       


   

       

       

       

       


       

           

           

                                           

                                           

                                       

                                   

                               

                           

                           

                           

                       

                   

               

               

               

           

       

   

   

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
maj 24
771
0
maj 24
994
0
maj 24
1344
0
maj 24
1085
1
maj 24
1423