You are here:  » Voucher Code in Category

Support Forum



Voucher Code in Category

Submitted by MarcoCH on Fri, 2021-01-01 18:33 in

hello David

I hope you started 2021 well?
I have another question about the voucher code.

I have a sports shop that has a 10% discount on all fitness equipment. Without a special code.
I have selected the sport shop, also the exact category "fitness equipment" but even after the new import the link in the voucher code is not linked correctly. If I only give 10% without a category then it works. I don't want to display the code for all products.

Variable is "$config_useVoucherCodes = 2;"

What should i control?

Best regards
Marco

Submitted by support on Sat, 2021-01-02 08:59

Hello Marco,

I assume you have created a new code using for example "NONE" as the Voucher Code, and then an Exact Match against Category for "Fitness Equipment", and entered the discount of 10%; so following import what URL does the voucher code link to that is not working?

Cheers,
David.
--
PriceTapestry.com

Submitted by MarcoCH on Sat, 2021-01-02 16:17

hello David

Yes, I should have done everything right. It just doesn't work when I select a category. Could it be because I changed the "Category" to "Kategorie" (German)?

It is the page {link saved}

Best regards
Marco

Submitted by support on Mon, 2021-01-04 08:48

Hello Marco,

The translation shouldn't have any impact on the voucher code functionality. Please could you make the following file as dbtest.php in the top level of the installation and let me know when it is uploaded then I can see the raw voucher code data to see what the problem might be...

<?php
  
require_once("includes/common.php");
  
header("Content-Type: text/plain");
  
$sql "SELECT * FROM `".$config_databaseTablePrefix."vouchers`";
  
database_querySelect($sql,$rows);
  
print_r($rows);
?>

Thanks,
David.
--
PriceTapestry.com

Submitted by MarcoCH on Mon, 2021-01-04 18:56

Hello David

Is online: {link saved}

Greets
Marco

Submitted by support on Tue, 2021-01-05 08:50

Hi Marco,

That all looks fine - the vouchers codes should have been applied at import time so please could you check by going to /admin/ and then Tools > Feed Utilities and then click Imported Analysis alongside the merchant to which this voucher code applies, and then use the Category filter to select the category used in the voucher code.

Then click on a product from the results and have a look at the raw data - do you see the voucher code "NONE" alongside the voucher_code field in the table?

Cheers,
David.
--
PriceTapestry.com

Submitted by MarcoCH on Tue, 2021-01-05 10:52

hello David

The "voucher_code" column is empty.
I imported the feed again, but no success even then.

Best regards
Marco

Submitted by support on Tue, 2021-01-05 12:21

Hi Marco,

Is the clock on your server correct - you can check easily looking at the Imported time of a feed immediately after importing on the /admin/ home page..?

Thanks
David.
--
PriceTapestry.com

Submitted by MarcoCH on Tue, 2021-01-05 13:08

Hello David,

Yes, the server time is 1 hour away, but that shouldn't have any influence.

I did a test with the same shop. 10% on all articles. Then it works, "NONE" is stored in the voucher_code column.

See again: {link saved}

It just doesn't work when I select a category.

regards
Marco

Submitted by support on Tue, 2021-01-05 13:17

Hi Marco,

Be careful when testing not to use same merchant + code combination as that is the key to the search query however it's still strange - would it be possible to let me know the filename of that merchant's feed (I'll remove before publishing your reply) and I'll grab it from your /feeds/ folder to my test server and check it out further...

Cheers,
David.
--
PriceTapestry.com

Submitted by MarcoCH on Tue, 2021-01-05 13:26

hello David

I sent you an email.

greets
Marco