Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Dec 2015, 09:07 AM   #1
Senior Warrior Member
War Room Member
 
Join Date: 2010
Posts: 1,024
Thanks: 47
Thanked 187 Times in 143 Posts
Default
WooCommerce REST API
Share on: 
fb share twitter share gplus share more share

Hey Everyone,

Just starting to play around with the woocommerce rest api. I have next to no API experience so it's all learning curve at this point.

Basically I'm hoping to use one website as our main portal to hold all of our products, and then display those products on a few different satellite sites relating to brand.

I found a library to help me hookup to the API and I can successfully pull a product but not sure what to do with the data I'm pulling:

http://104.236.101.10/apitest/example.php

Any help would be appreciated!
pdrs is offline  
Unread 14th Dec 2015, 11:20 AM   #2
Senior Warrior Member
War Room Member
 
Join Date: 2010
Posts: 1,024
Thanks: 47
Thanked 187 Times in 143 Posts
Default
Re: WooCommerce REST API
Share on: 
fb share twitter share gplus share more share

looks like it's returning all of that data as an object, i'm just having hard time breaking it down into separate values $description= $object->description; something like that should work?
pdrs is offline  
Unread 14th Dec 2015, 03:37 PM   #3
www.deeptenger.com
Registered Member
 
Joe Ray's Avatar
 
Join Date: 2013
Posts: 518
Thanks: 211
Thanked 91 Times in 77 Posts
Blog Entries: 1
Default
Re: WooCommerce REST API
Share on: 
fb share twitter share gplus share more share

Your link has a Warning and a Fatal Error.
Joe Ray is offline  
Unread 14th Dec 2015, 04:10 PM   #4
Active Warrior
 
Join Date: 2014
Posts: 84
Thanks: 5
Thanked 11 Times in 10 Posts
Default
Re: WooCommerce REST API
Share on: 
fb share twitter share gplus share more share

Show source (if possible i.e. no security/confidential risk ) not .php file .
i.e. change filename to .txt
robomedia is offline  
Unread 16th Dec 2015, 07:32 AM   #5
Senior Warrior Member
War Room Member
 
Join Date: 2010
Posts: 1,024
Thanks: 47
Thanked 187 Times in 143 Posts
Default
Re: WooCommerce REST API
Share on: 
fb share twitter share gplus share more share

sorry guys, i kept changing it while I was messing around with it.

Basically I have the WooCommerce REST API returning all of the products into what appears to be an Object with other embedded objects? Trying to figure out how I can loop through and sort things out by category.

http://104.236.101.10/mens/
pdrs is offline  
Closed Thread


Bookmarks

Tags
api, rest, woocommerce


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:50 AM.