When I try to hide the 'Add to cart' button, the variations disappear.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
I did this, since I have variable products on separate RETAIL pages that I want to keep the 'Add to cart' button
Here is the way to remove add to cart button and quantities in Single product pages for variable products only, keeping the attributes select fields:
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Tested and works.