The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-01-2013, 05:53 PM
smoothsailingco.com's Avatar
smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Default

Product API categories returns []


http://app.ecwid.com/api/v1/873091/categories

returns []

The store doesn't have any categories but category 0 exists.

http://app.ecwid.com/api/v1/[STORE-ID]/products?category=0[etc] Works and returns items.

I was expecting /categories to return category 0 as a value. Is this intended?
  #2  
Old 08-01-2013, 08:07 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by smoothsailingclothing View Post
http://app.ecwid.com/api/v1/873091/categories

returns []

The store doesn't have any categories but category 0 exists.

http://app.ecwid.com/api/v1/[STORE-ID]/products?category=0[etc] Works and returns items.

I was expecting /categories to return category 0 as a value. Is this intended?
Hi,

The Product API : categories method returns all user-defined categories if the parent is not set and the list of child categories if the parent category is set. As to the root 'Store' category, it is not returned by design.

Can you please specify why you need that? Maybe we will suggest a solution.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #3  
Old 08-01-2013, 08:17 PM
smoothsailingco.com's Avatar
smoothsailingco.com smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Default

Was just gonna have it go from category to products automatically put things in a database but I can just hard code the 0 category in there.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:44 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.