{"id":5072,"date":"2016-12-08T11:07:23","date_gmt":"2016-12-08T02:07:23","guid":{"rendered":"https:\/\/www.live-commerce.com\/support\/?page_id=5072"},"modified":"2016-12-08T11:11:45","modified_gmt":"2016-12-08T02:11:45","slug":"ogetrecommendproducts","status":"publish","type":"page","link":"https:\/\/www.live-commerce.com\/support\/functions\/ogetrecommendproducts","title":{"rendered":"o::getRecommendProducts"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<p>\u30aa\u30b9\u30b9\u30e1\u5546\u54c1\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n&nbsp;<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<pre class=\"lang:default decode:true \" >&lt;?php \r\n$getRecommendProducts  = o::getRecommendProducts($catId = '');\r\nprint_r($getRecommendProducts);\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u5f15\u6570\u306e\u5185\u5bb9<\/h3>\n<ul style=\"list-style-type: square\">\n<li>catId : \u30ab\u30c6\u30b4\u30eaID\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u5185\u306e\u30aa\u30b9\u30b9\u30e1\u5546\u54c1\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>\u8fd4\u308a\u5024<\/h3>\n<p>array<\/p>\n<ul style=\"list-style-type: square\">\n<li>product_name : \u5546\u54c1\u540d<\/li>\n<li>id : \u5546\u54c1ID<\/li>\n<li>product_image : \u5546\u54c1\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d<\/li>\n<li>name : \u8a00\u8a9e\u533a\u5206<\/li>\n<li>position : \u8868\u793a\u9806<\/li>\n<li>product_href : \u5546\u54c1URL<\/li>\n<\/ul>\n<pre class=\"lang:default highlight:0 decode:true \" >\/\/ \u51fa\u529b\u7d50\u679c\r\nArray\r\n(\r\n    [0] =&gt; Array\r\n        (\r\n            [product_name] =&gt; \u86c7\u62f3 [AAAB]\r\n            [id] =&gt; 1\r\n            [product_image] =&gt; 51dFrvJcLTL._SS400_.jpg\r\n            [name] =&gt; \u65e5\u672c\u8a9e\r\n            [position] =&gt; 1\r\n            [product_href] =&gt; http:\/\/www.sample.com\/category\/select\/pid\/1\r\n        )\r\n\r\n    [1] =&gt; Array\r\n        (\r\n            [product_name] =&gt; \u30d1\u30ef\u30fc\u30b5\u30dd\u30fc\u30c8 \u30a8\u30a2\u30fc\u30d1\u30c3\u30c9\u30bd\u30fc\u30eb for MX \u30ec\u30dc\u30ea\u30e5\u30fc...\r\n            [id] =&gt; 3\r\n            [product_image] =&gt; 41R9O9pbTfL__SL500_AA280_.jpg\r\n            [name] =&gt; \u65e5\u672c\u8a9e\r\n            [position] =&gt; 2\r\n            [product_href] =&gt; http:\/\/www.sample.com\/category\/select\/pid\/3\r\n        )\r\n\r\n    [2] =&gt; Array\r\n        (\r\n            [product_name] =&gt; \u30ed\u30b8\u30af\u30fc\u30eb \u30a4\u30eb\u30df\u30cd\u30fc\u30c8 \u30ad\u30fc\u30dc\u30fc\u30c9 CZ-900  [AA...\r\n            [id] =&gt; 4\r\n            [product_image] =&gt; 41W0lJovzCL._SL500_AA280_.jpg\r\n            [name] =&gt; \u65e5\u672c\u8a9e\r\n            [position] =&gt; 3\r\n            [product_href] =&gt; http:\/\/www.sample.com\/category\/select\/pid\/4\r\n        )\r\n\r\n)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30aa\u30b9\u30b9\u30e1\u5546\u54c1\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 &nbsp; \u4f7f\u3044\u65b9 &lt;?php $getRecommendProducts = o::getRecommendProducts($catId = &#8221;); print_r($ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":154,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5072","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/comments?post=5072"}],"version-history":[{"count":3,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5072\/revisions"}],"predecessor-version":[{"id":5076,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5072\/revisions\/5076"}],"up":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/154"}],"wp:attachment":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/media?parent=5072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}