on 2015 Aug 05 1:34 PM
Hi,
Can we define any search restrictions in a cron job which is trying to get products from category and do some manipulation. Tried defining session search restrictions.
Thanks
Request clarification before answering.
Hi, In cronjobs the restrictions are not enabled by default. You need to enable them in the job code using searchRestrictionService.enableSearchRestrictions() before calling your getters or flexible search queries so they could be taken into account. I did a test getting products from a category in a cronjob and it seems it works that way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
16 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.