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.


Top ↑

Return Return

(array)


Top ↑

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.
		);
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.6Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation