Show All Coupons From Specific Category With Custom Template [Not Working...]  

 

solomen
Active Member
Joined: 9 months ago
Posts: 6
07/01/2019 2:51 pm  

Now I'm using a shortcut like below to show a specific category.

[wpcd_coupons_loop temp='two' cat=243]

But it only shows 9 coupons of that category, the others are hiden by navigation. I want to show whole coupon of the category by using that shortcut.

By the way, I also check this option on Extras tab.

"Disable the categories navigation in archive shortcode."

Please help me out...

Thank.


Quote
Imtiaz Rayhan
Member Admin
Joined: 2 years ago
Posts: 46
07/01/2019 11:02 pm  

Hi,

I am really sorry about that.

Can you try adding the 'count' attribute? Like [wpcd_coupons_loop temp='two' cat=243 count=9]

Please check if that changes the anything.

If not, this seems like a bug we have to fix. I will try to replicate the issue on our end and see what happens.

About that option, it has nothing to do with category shortcode. It just removes the category navigation from Archive shortcode.

Regards.


ReplyQuote
solomen
Active Member
Joined: 9 months ago
Posts: 6
08/01/2019 4:41 am  

Thank you, it works with the 'count' attribute. Everything is ok now.


ReplyQuote
solomen
Active Member
Joined: 9 months ago
Posts: 6
08/01/2019 4:47 am  

One more question:

I need to set the Hide Coupon is YES by default, so where is the php file or something like this to change NO into YES.

Thank.


ReplyQuote
Imtiaz Rayhan
Member Admin
Joined: 2 years ago
Posts: 46
08/01/2019 5:21 am  

Glad to know it's working now.

While it's possible to do that, it will need lots of files to edit and you will not be able to update the plugin anymore.

Because if you update, you will lose the customized code. But if you still want to continue, I can tell you which files to edit.

Please let me know.


ReplyQuote
solomen
Active Member
Joined: 9 months ago
Posts: 6
08/01/2019 6:08 am  

Okay, please show me some files and how to get this job done.

I have to add a lot of new coupons to my site daily, so it'll save too much time when the option's set Yes by default.

Thank you.


ReplyQuote
Imtiaz Rayhan
Member Admin
Joined: 2 years ago
Posts: 46
08/01/2019 7:10 pm  

One thing, are you using the importer to add coupons in bulk or are you adding that yourself?


ReplyQuote
solomen
Active Member
Joined: 9 months ago
Posts: 6
09/01/2019 2:46 am  

I'm adding coupons by myself.


ReplyQuote
Imtiaz Rayhan
Member Admin
Joined: 2 years ago
Posts: 46
09/01/2019 9:05 pm  

Then I would suggest you to select 'Yes' for Hide Coupon field when you are adding a coupon.

Because future plugin updates are very important as we add new features and improve the existing ones. So, I am strongly suggesting you that you select it when you are adding a coupon instead of customizing the code.


ReplyQuote
solomen
Active Member
Joined: 9 months ago
Posts: 6
11/01/2019 9:27 am  

Okay, I got it.

Thank for your support.


ReplyQuote

Please Login or Register