跳至內容
選單
此問題已被標幟
問題已關閉 原因: Question / Code not indented
ANRD2024年05月03日 12時31分40秒
439 瀏覽次數

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.


```javascript

       

       


   

       

       

       

       


       

           

           

document_sudo.id)" t-att-target="target">

                                           

                                           

                                       

                                   

                               

                           

                           

                           

                       

                   

               

               

               

           

       

   

   

```

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 24
752
0
5月 24
973
0
5月 24
1265
0
5月 24
622
0
5月 24
1040