跳至內容
選單
此問題已被標幟
2 回覆
4384 瀏覽次數

Hello friends, I need my customers to continue seeing my products, but at the moment I can't let them add them to the cart. How do I hide the add to cart button?

頭像
捨棄
最佳答案

Open your product page in your website builder frontend there is a menu called Customize open it and click on HTML/CSS/JS Editor menu it will open a sidebar view and you can update the cart button in line 57 and update the form t-if value from: 

t-if="product._is_add_to_cart_possible()"

and update it to:

t-if="False"



Happy to help :) an upvote will be awesome

頭像
捨棄
最佳答案

You can disable that functionality from your shop webpage (/shop) as well. While on the shop page in the Customize menu you have the option to turn off "Add to Cart"

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 23
1579
3
5月 24
23788
0
9月 18
3655
0
12月 16
3952
0
11月 19
3729