Woocommerce Better Price Match

Woocommerce Better Price Match

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.

by: Hostivate / Nitroweb

Do not let your customers go away for a couple of bucks.

Woocommerce Better Price Match

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.
  • Can be disabled per product.

Usage

In order to setup the Woocommerce Better Price Match plugin, please navigate from your WordPress administration panel to “Woocommerce -> Better Price Match

Options
  1. Customer Name: Lets you choose whether to display or not the customer name field on the product page
  2. Customer Email: Lets you choose whether to display or not the customer email field on the product page
  3. Customer Telephone: Lets you choose whether to display or not the customer telephone field on the product page
  4. 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
  5. 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
  6. Comments: Lets you choose whether to display or not the comments text area on the product page
  7. Customer Name Label: Specify the label of the related field
  8. Customer Email Label: Specify the label of the related field specified above
  9. Customer Telephone Label: Specify the label of the related field specified above
  10. Url of better price Label: Specify the label of the related field specified above
  11. Better price Label: Specify the label of the related field specified above
  12. Comments Label: Specify the label of the related field specified above
  13. Better Price Match Button Text: Specify the text on the button/link that will toggle the whole form
  14. 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:
    [email protected],[email protected]
  15. You are ready to go! * Save Changes *

Woocommerce Better Price Match

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.3, Woocommerce 2.2, Woocommerce 2.1
  • PHP 5.2+

Frequently Asked Questions

  1. Can I add some more fields

    Yes, you can via the filters.

  2. Can I send the email to multiple emails?

    Yes, just seperate the emails with a comma on the settings page.

  3. 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.

  1. Extract the zip file you have downloaded.
  2. Login to your administration panel (ex. http://www.yourdomain.com/wp-admin).
  3. Go to Plugins -> Add New.
  4. At the top of the page click the “Upload Plugin” link
  5. Click choose file (or what your browser uses to navigate to your files)
  6. From the extracted files of step one (1) navigate to and select woo-better-price-match.zip and click “Install Now
  7. You may be asked to confirm your wish to install the Plugin.
  8. 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.
  9. Click Proceed to continue with the installation. The resulting installation screen will list the installation as successful or note any problems during the install.
  10. If successful, please click Activate Plugin to activate it.

Changelog

1.0.1 07/20/2015
  • Feature: Added the option to disable the plugin per product
  • Bug: Fixed a case that it would reset some of the plugin settings on the disable and re-enable of it
1.0 07/17/2015
  • Initial release

Sources and Credits

This plugin uses the following libraries

  • None