WordPress – Woocommerce Better Price Match
A simple but powerful WordPress – Woocommerce plugin to allow your customers to suggest a lower price for your products and point to the website that they found the lower price, via email.
Please read the installation guide.
Features
- User friendly and self-explanatory administration panel.
- Customizable form where you can decide what fields to display and what fields to hide on the product page
- Frontend form is protected from bots so you will not get spammed
- Nice form slide toggle with jQuery
- Includes css to make it look good with most themes
- Translation friendly via po/mo files
- Developer friendly. Including filters and action.
Usage
In order to setup the Woocommerce Better Price Match plugin, please navigate from your WordPress administration panel to “Woocommerce ? Better Price Match“
Options
Customer Name: Lets you choose whether to display or not the customer name field on the product page
Customer Email: Lets you choose whether to display or not the customer email field on the product page
Customer Telephone: Lets you choose whether to display or not the customer telephone field on the product page
Url of better price: Lets you choose whether to display or not the URL of the website that has a lower price than yours on the product page
Better price: Lets you choose whether to display or not the desired price field that the customer has found in another site on the product page
Comments: Lets you choose whether to display or not the comments text area on the product page
Customer Name Label: Specify the label of the related field
Customer Email Label: Specify the label of the related field specified above
Customer Telephone Label: Specify the label of the related field specified above
Url of better price Label: Specify the label of the related field specified above
Better price Label: Specify the label of the related field specified above
Comments Label: Specify the label of the related field specified above
Better Price Match Button Text: Specify the text on the button/link that will toggle the whole form
Email recipient: Specify the recipient of the email that will get the submitted form. If it is not filled, then the administrator of the the WordPress installation will get the email. You may specify more than one emails by seperating them with a comma, eg:me@here.com,me@there.com
- You are ready to go! * Save Changes *
Developer Friendly
Many hooks are in place. Please look in the code for a full list. Below are some of them with examples.
Filters
You can alter the subject of the email that is sent to you
add_filter( "wbpm_email_subject", "my_wbpm_email_subject");
function my_wbpm_email_subject($subject)
$subject = $subject." some more subject";
return ($subject);
Actions
You may add your own css class for each field of the form, eg.
add_action( "wbpm_row_class", "my_wbpm_row_class");
function my_wbpm_row_class($class)
$class = " form_row ";
return ($class);
Requirements
- WordPress 4.0+
- Woocommerce 2.2, Woocommerce 2.3
- PHP 5.2+
Frequently Asked Questions
Can I add some more fields
Yes, you can via the filters.
Can I send the email to multiple emails?
Yes, just seperate the emails with a comma on the settings page.
When the form is submitted nothing happens
The customer will have to fill in all fields but the text area. Also, please make sure that your site does not have any javascripts errors.
Installation
This wordpress plugin can be installed as any other wordpress plugin. Installation is simple.
- Extract the zip file you have downloaded.
- Login to your administration panel (ex. http://www.yourdomain.com/wp-admin).
- Go to Plugins ? Add New.
- At the top of the page click the “Upload Plugin” link
- Click choose file (or what your browser uses to navigate to your files)
- From the extracted files of step one (1) navigate to and select woo-better-price-match.zip and click “Install Now“
- You may be asked to confirm your wish to install the Plugin.
- If this is the first time you’ve installed a WordPress Plugin, you may need to enter the FTP login credential information. If you’ve installed a Plugin before, it will still have the login information. This information is available through your web server host.
- Click Proceed to continue with the installation. The resulting installation screen will list the installation as successful or note any problems during the install.
- If successful, please click Activate Plugin to activate it.
Changelog
1.0 07/17/2015
- Initial release
Sources and Credits
This plugin uses the following libraries
- None
No comments:
Post a Comment