To hide the add-to-cart button in PrestaShop, you can follow these 3 simple steps:
Step 1: Install and Activate the Module
Install and activate the Hide Price & Add to Cart Pro module. Once that’s done, click Configure to customize the add-to-cart visibility settings.
Step 2: Hide the Add-to-Cart Button
Go to Addify Hide Price Pro > General Settings. From here, activate the module and go to Rules. Now click Add New using the plus sign in the top right corner. Now, you can create multiple scenarios in which prices will be shown or hidden as you like. To get started, adjust the following settings:
- Enable Hide Add-to-Cart Button: Choose to show or hide the add-to-cart button
- Custom button: Replace add-to-cart with custom button and customize the following:
- Custom Button Title: Add a title for the custom button
- Custom Button Link Field: Add a URL for the custom button for redirection
- Custom Button Text Color: Choose a color for the custom button
- Custom Button Background Color: Choose a background color for the custom button
Step 3: Set Restrictions by Stock
Now enable the option to apply stock-based restrictions and adjust the following:
- Product with zero stock: Enable the option to apply the rule on out-of-stock products
- Custom stock value: Enable option and add custom value for stock value on which rule shall apply
Within the rules, you can further apply restrictions based on customer groups, prices, products, etc. Once you have done so, save your changes, and the rule will automatically apply under the desired conditions.
