This is a community support forum where you can ask questions and interact with other PremiumPress Customers.
I want the expired coupons to be available after expiry. Therefore I selected the option to move them to different category on expiry. That works, but then they still show up on the homepage (or the next pages). How can I remove them there, and only let them show in the Expired-tab in stores or search.
its a tricky one since there isnt anyway to know they have expired using basic wordpess queries. You would need to customize the display code to hide or remove the expired coupons from display.
functions file is found: PPT/class/class_design.php
Get your expired cat ID and add something like this to the query:
Where 144 is your expired cat ID.
I found an option to exclude some cats @ General Display Options > Category, but that only works for the Category Block on the homepage. The file class_design.php has a lot of code.
Am I looking for code in */ === VERSION 7 HOME PAGE OBJECTS === ?
What do I need to change?
For anyone else who wants to do this:
Change rule #2295 in class_design.php
where XXXX is the category ID you want to hide.
thanks for sharing
How would I find the expired category ID?
I want to know where to find Expired voucher ID too.
At meanwhile, I am thinking if there is a way to set function such as:
if a voucher expiry time = 00:00:00, then the voucher should not display, I don’t know how to write a code to work for this, may be someone here can do…
Hover over the expired coupon and check left bottom corner of your screen to view listing/coupon id.Its also displayed just below the coupon title.See attached image
Category and Coupon/voucher ID are different.
If you are not going to display the coupon, why not just move it to draft – it’s built into the theme.