Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3246 มุมมอง


Hello,


We have an out of stock item in our shop.

We have created advertisements for this product. Customers are coming to this product. The error page is "horrible".

https://boutique.amnesty.be/shop/product/6611-masque-amnesty-187 

How to do (and where) to modify it?

Thanks for your help :-)

C.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You could probably modify the "http_routing.http_error" view, but it would impact all errors.
I would rather suggest implementing a custom logic for you out of stock items : leave the product (page) published and active but disable the add to cart button.
Or maybe just set your product to "archived" (and keep it "published") 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If the 500 Internal Server Error is on Your Own Website:
Deactivate a plugin or theme.
Use a plugin like WP Debugging to identify the issue.
Ensure your PHP setup is configured correctly.
Check the code for your site's .htaccess file.
Ensure your new software is installed correctly.

Greetings,
Peter

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 16
5435
2
พ.ค. 25
3650
0
พ.ย. 24
1005
1
ส.ค. 24
1694
1
ส.ค. 24
3123