You are here:  » Voucher Prices in Search Results

Support Forum



Voucher Prices in Search Results

Submitted by gregor on Sun, 2011-08-07 22:23 in

I would like to display the adjusted price (after voucher) on the search results pages - or maybe at least indicate that a coupon is available for the item. From looking at the code it looks like you apply the vouchers after the initial query, so this might turn into a performance issue. Can you think of a good way to get the adjusted price or a coupon indicator? Maybe to avoid excessive processing it could only apply vouchers if there are less than 20 results (as an example).

I would also like to see the adjusted price on the Related Products list.

What do you think?

Thanks,
Gregor

Submitted by support on Mon, 2011-08-08 09:00

Hello Gregor,

If you edit config.advanced.php and change to voucher code level 2 integration they are applied (and the voucher_code field populated) at import time. To do this, change line 41 as follows:

  $config_useVoucherCodes = 2;

(don't forget to re-import all feeds after making the change)

Presently, $product["voucher_code"] isn't displayed at all by html/searchresults.php or html/related.php but this could easily be incorporated however bear in mind that the results they show are generated from summary queries so the voucher_code field can only be relied upon to apply to the price shown if $product["numMerchants"] is 1. Let me know if you're not sure how to incorporate the voucher code in your search results and related products if required...

Cheers,
David.
--
PriceTapestry.com