Jump to content

Recommended Posts

Posted (edited)

Did anyone know how to integrate API in WooCommerce? I am not much aware of PHP. I am doing it myself following the reference article WooCommerce API Integration 
Reference: WooCommerce Rest API

I am getting an unknown error in the index.php file.


$query = ['date_min' => '2018-11-01', 'date_max' => '2018-11-30'];

$sales = $woocommerce->get('reports/sales', $query);

$sale = $sales[0]["total_sales"];

}

Edited by kongondo
potential spam: link removed
Posted

Hi @alexpaul,

Glad tidings or spamming us? I have removed the link in your post. If your question is not related to ProcessWire, please check in the WooCommerce support boards instead.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...