Noptin_Abstract_Ecommerce_Integration::get_product_details( int $product_id )
Returns an array of product details.
Parameters Parameters
- $product_id
(int) (Required) The product id.
Return Return
(array)
Source Source
File: includes/integrations/class-noptin-abstract-ecommerce-integration.php
public function get_product_details( $product_id ) { return array( 'id' => '', 'name' => '', 'description' => '', 'url' => '', 'price' => '', 'type' => '', 'sku' => '', 'inventory_quantity' => '', 'images' => array(), // array of urls. 'variations' => array(), // array of variations, should look similar to the parent array minus the variations key. ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.6 | Introduced. |