fkie
Forum Replies Created
-
Forum: Plugins
In reply to: [Product Advisor for Ecwid] [Plugin: Ecwid: Random Products] doesn't workForum: Plugins
In reply to: [Product Advisor for Ecwid] [Plugin: Ecwid: Random Products] Php errors showThe problem is caused by the fact that you are using free ecwid account and it does not allow certain Product API calls.
I am working on adding support of free accounts, so stay tuned and upgrade your plugin after its 0.7.2 release.
The problem with these errors is that categoryId was not passed to the Ecwid API call. Have a look at the top of the error message:
How Many: 6, Category Id: , Type: random Array ( ) Initial Products: 1
Warning: array_slice() expects parameter 1 to be array, boolean given in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 21“How Many: 6, Category Id: , Type: random Array ( ) Initial Products: 1” is your debug code that reveals it. That is why plugin cannot pull the products.
dax702 is right, you can use 1003 store ID for development. It allows to pull products by categoryId, e.g.:
https://app.ecwid.com/api/v1/1003/products?category=1002I have a paid account as well. I tested the methods of product API with a free account just because I was curios about it ??
As for the plugin development itself, I stopped working on it for a while since I am pressed for time at the moment. Now just answering questions if people face troubles.
After the 20th of June, I will start working on the plugin again. I feel that display of category via shortcode or widget would be a great feature to add, so I will probably implement it. Anyway, cannot promise to do it in a couple of weeks.
> I don’t know… the method I used was:
>
> https://app.ecwid.com/api/v1/STOREID/products?category=CATEGORYIDJust checked it out and indeed methods “products”, “categories”, “profile” do not work for free accounts. Did not know before.
Hi, moens!
I just had a look at your plugin and found out that I cannot use it for some reason. Perhaps, I’m using it incorrectly, but neither widget nor shortcode works.
It throws error messages like:
****************
How Many: 6, Category Id: , Type: random Array ( ) Initial Products: 1
Warning: array_slice() expects parameter 1 to be array, boolean given in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 21Warning: Invalid argument supplied for foreach() in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 24
Warning: Invalid argument supplied for foreach() in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 91
How Many: 10, Category Id: , Type: random Array ( ) Initial Products: 1
Warning: array_slice() expects parameter 1 to be array, boolean given in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 21Warning: Invalid argument supplied for foreach() in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 24
Warning: Invalid argument supplied for foreach() in /u/feakie/public_html/wordpress/wp-content/plugins/ecwid-useful-tools/classes/EcwidUsefulToolsProduct.php on line 91
******************I defined default category in the Ecwid’s setting, but it did not make any difference. Could you plugin explain a bit, how your version of plugin is supposed to be used?
Thank you!
Hi, guys!
I am really busy at work at the moment, so did not check the thread.@moens Ecwid Product API works for free accounts partly. As I noticed only “profile” method for the list
https://kb.ecwid.com/w/page/25285101/Product%20API
did not work for free accounts.@dax702 I will check the moens’ results with the mod over the weekend and will let you know whether it will be included into the main plugin and whether I will add a support of categories. Sorry, just do not have time right now.
I am using WordPress’ SVN, so the tarball would be very helpful for me.
Honestly, really want to see the results when the module is completed.Hi there!
Could you please let me know if you have finished the mod yet? Really want to look at the results.
If you wish, I would have added these new features to the Random Products plugin in the future, but I need to look at how it works first. If you are interested in some kind of cooperation, pm me on Ecwid forum:
https://www.ecwid.com/forums/member.php?u=1951Thank you.
Forum: Plugins
In reply to: [Plugin: Ecwid: Random products] Conflict with Inline SEOAs far as I see, you have already posted the same question on Ecwid forum. Could you please try to apply this solution
https://www.ecwid.com/forums/showpost.php?p=50825&postcount=93and let me know the results.
jrevillini,
Thanks! That approach makes a lot of sense. I will test it out.
At this point, Ecwid: Random products will not work with WP Super Cache.
Perhaps, there will be a fix for it in a long term, but not quite soon.https://www.ecwid.com/forums/showpost.php?p=45665&postcount=69
Could you please give me a link to your WP, so I could have a look?
Thank you.
Hi!
Ecwid’s API does not allow to fetch random product from particular category by specifying ID of the category
https://kb.ecwid.com/w/page/25285101/Product%20API#RESTAPIMethodrandomproductsThat’s why this sorting should be handled on WP side and it requires some code for that.
However, I will try to add this feature to plugin as soon as possible.
Thanks for letting me know, anyway!