› Extension page
The Hide Product Price extension allows you to hide prices on your magento store front based on different conditions to be configured from the admin. It allows you to hide product prices per customer, customer group and category. Hiding price also hides the add to cart button and as a result not allowing the customer to add product to cart. It allows you to set a custom message to be shown when the product is hidden. The message can be a plain text message or can be converted to a link by specifying a external link URL or internal magento URL path. This way, the extension provides you with complete control over who can view price of certain products in their store, encourage customers to register, organize private sales etc.
Features Included
- Hide prices when user is not logged in.
- Hide prices when customer does not belong to allowed customer groups.
- Hide prices on certain specified categories.
- Enable / Disable the extension per store view.
- Hide prices only on certain products by disabling the hide feature on those products. This can also be done in a batch.
- Configure to hide Wishlist button when price is hidden.
- Configure to hide Compare button when price is hidden.
- Choose whether to display message as plain text or button link or text link.
Compatibility
Compatible with Magento 2.0.0 - 2.2.0 CE and EE.
Installation
Web Setup Wizard
| |
| |
| |
NOTE: You can also disable the modules using this wizard.
| |
| |
| |
| |
| |
|
Configuration
Go to Stores > Settings > Configuration > Hungersoft Extensions > Hide Product Price.
General
|
Additional
|
Redirect customers to previous page on logging in
To Redirect to previous page after login:
|
Optional Modifications
If you have third party themes or extensions that display prices in their templates, you can do the following changes to them to hide product prices and add to cart buttons:
- To Hide Price:
Wrap your price block code in between the below 2 lines of code.
<!--hs_hpp-blank-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isDisableHidePricePerProduct($_product) ?>-->
## PRICE BLOCK HERE ##
<!--/hs_hpp-->
- To Hide Add to Cart Button:
Wrap your add to cart block code in between the below 2 lines of code.
<!--hs_hpp-blank-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isDisableHidePricePerProduct($_product) ?>-->
## ADD TO CART BLOCK HERE ##
<!--/hs_hpp-->
- To Hide Wishlist Button:
Wrap your add to wishlist block code in between the below 2 lines of code.
<!--hs_hpp-blank-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isDisableHidePricePerProduct($_product) ?>-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isHideWishlist() ?>-->
## ADD TO WISHLIST BLOCK HERE ##
<!--/hs_hpp-->
- To Hide Compare Button:
Wrap your add to compare block code in between the below 2 lines of code.
<!--hs_hpp-blank-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isDisableHidePricePerProduct($_product) ?>-<?php echo (int) $this->helper('HS\HideProductPrice\Helper\Data')->isHideCompare() ?>-->
## ADD TO COMPARE BLOCK HERE ##
<!--/hs_hpp-->
If this extension overrides any third party themes or extension templates, you can follow the steps below to add your theme or extension changes to this extension's templates:
- Go to Stores > Configuration > Advanced > Developer, under the section Debug, select Yes against .
- Enable the extension.
- Go to the frontend page whose template file is being overriden by this extension. Check which template of the following extension is being used: Overriding Template.
- Disable the extension
- Check on the same frontend page which template of the following extension is being used when the extension is disabled: Source Template.
- Copy Overriding Template file to app/design/frontend/{Theme Vendor}/{Theme Name}/HS_HideProductPrice/templates/{path to the destination template file relative to templates directory} - Destination Template.
- Now copy contents of the Source Template to the Destination Template.
- Follow the steps mentioned under Optional Modifications to Hide Price, Add to cart button, Wishlist and Compare button.
Read More
Benefits
- Free updates for 1 year.
- Free support for 1 year. If you have any issues with the extension purchased please contact us using the contact form or by using the live chat.
- Meets magento standard development practices. No core files will be over written.
- 100% open source.