How to Add “Contact for Pricing” Products in Magento
If you’re running an e-commerce site on Magento and need to add products with prices listed as “Contact for Pricing” or “Call for Pricing,” you may face validation errors due to the built-in price requirements. Don’t worryâthere are a couple of methods to achieve this without resorting to extensions.
Understanding the Core Issue
Magento’s core product creation process enforces strict rules around the pricing field. It requires a numerical value, which makes it challenging to work with products that have prices like “Contact for Pricing.” The system will throw validation errors if you try to save such products.
Method 1: Manually Setting Price as “0.00”
The most straightforward approach is to manually set the price of these special products to “0.00” while creating them in the Magento admin panel.
Steps:
- Log into your Magento admin dashboard.
- Navigate to
Catalog -> Products. - Click on
Add New Product. - Choose the product type and fill out the necessary details like name, description, etc.
- Under the
Pricingtab, set bothPriceandSpecial Priceto0.00. - Save the product.
Pros:
- Simple to implement.
- No need for extensions or additional configuration.
- Works with Magento’s core functionality.
Cons:
- You have to manually set prices to “0.00” for each product.
- Not ideal if you have hundreds of products to manage.
Method 2: Using a Custom Module
If you need a more automated solution, consider creating a custom Magento module that overrides the price validation rules. This approach requires PHP development skills and familiarity with Magento’s coding conventions.
Steps:
- Create a new module folder under
app/code/. - Implement the necessary PHP files like
registration.php,etc/config.xml, andModel/Product.php. - Override the price validation logic in the product model.
- Update your database to store “Contact for Pricing” as a specific value.
Pros:
- Provides a more automated solution.
- Can be customized to fit your exact needs.
- Offers better control over pricing rules.
Cons:
- Requires programming knowledge.
- Complex to set up and maintain.
- Not suitable for non-technical users.
Recommended Extension: “Call for Price” by Amasty
If you prefer a turnkey solution, consider the Call for Price extension developed by Amasty. This extension allows you to add products with no price listed while still providing a way for customers to contact your store regarding pricing information.
Key Features:
- Enables adding products without prices.
- Provides a customizable “Contact Us” button on product pages.
- Allows setting up different call-to-action messages for each product.
- Supports multiple currencies and store views.
You can find more details about this extension on the Amasty website: https://amasty.com/magento-call-for-price.html
Conclusion
Adding “Contact for Pricing” or “Call for Pricing” products in Magento requires a bit of creativity and workaround, as the core system doesn’t natively support this feature. The manual method is simple but time-consuming, while creating a custom module offers better automation.
For a more user-friendly solution without coding requirements, consider using an extension like Amasty’s Call for Price. It provides a well-integrated option to handle these special pricing scenarios in Magento.
Remember that every business has unique needs, so choose the approach that best fits your specific requirements and technical capabilities.