You are here:  » Match Criteria - Voucher Code


Match Criteria - Voucher Code

Submitted by sirmanu on Wed, 2019-04-03 20:56 in

Hi David. Is it possible to add "original_name" to match criteria when adding a voucher code?

Thank you!

Submitted by support on Thu, 2019-04-04 08:59

Sure - edit admin/voucher_codes_edit.php and look for the following code at line 29:

    $match_fields = array("name","category","brand");

...and REPLACE with:

    $match_fields = array("name","original_name","category","brand");

Cheers,
David.
--
PriceTapestry.com

Submitted by sirmanu on Thu, 2019-04-04 11:48

Thank you!
However, if I do that, the select option still doesn't show up. I think is because below there is a match_fields = array() and line 29 is inside if (isset($_GET["helper"]))

Submitted by support on Thu, 2019-04-04 12:21

Ah yes, that was just for the helper code - so in addition look for the following code at line 383:

      $match_fields = array();

...and REPLACE with;

      $match_fields = array();
      $match_fields["original_name"] = "Original Name";

Cheers,
David.
--
PriceTapestry.com