{"id":5077,"date":"2016-12-08T11:16:50","date_gmt":"2016-12-08T02:16:50","guid":{"rendered":"https:\/\/www.live-commerce.com\/support\/?page_id=5077"},"modified":"2016-12-08T11:17:21","modified_gmt":"2016-12-08T02:17:21","slug":"ogettopproducts","status":"publish","type":"page","link":"https:\/\/www.live-commerce.com\/support\/functions\/ogettopproducts","title":{"rendered":"o::getTopProducts"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<p>\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u65b0\u7740\u5546\u54c1\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u7740\u5546\u54c1\u306e\u8868\u793a\u6570\u306f <b>\u30b5\u30a4\u30c8\u8a2d\u5b9a > \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u57fa\u672c\u8a2d\u5b9a > \u30ab\u30c6\u30b4\u30ea\u8a2d\u5b9a<\/b> \u304b\u3089\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u65b0\u7740\u5546\u54c1\u306e\u4e26\u3073\u9806\u306f <b>\u30b5\u30a4\u30c8\u8a2d\u5b9a > \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u57fa\u672c\u8a2d\u5b9a > \u5546\u54c1\u8a2d\u5b9a > \u30ab\u30c6\u30b4\u30ea\u65b0\u7740\u5546\u54c1\u306e\u4e26\u3073\u9806<\/b> \u304b\u3089\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n&nbsp;<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<pre class=\"lang:default decode:true \" >&lt;?php \r\n$getTopProducts  = o::getTopProducts($catId = '');\r\nprint_r($getTopProducts);\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u5f15\u6570\u306e\u5185\u5bb9<\/h3>\n<p>\u5f15\u6570\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n&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\n Array\r\n(\r\n    [0] =&gt; Array\r\n        (\r\n            [product_name] =&gt; SEX AND THE CITY [THE MOVIE] S...\r\n            [id] =&gt; 5\r\n            [product_image] =&gt; 51Xp95SWbeL.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\/5\r\n        )\r\n\r\n    [1] =&gt; Array\r\n        (\r\n            [product_name] =&gt; \u30d7\u30e9\u30c0\u3092\u7740\u305f\u60aa\u9b54 [hit]\r\n            [id] =&gt; 6\r\n            [product_image] =&gt; B001EI5M28.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\/6\r\n        )\r\n\r\n    [2] =&gt; Array\r\n        (\r\n            [product_name] =&gt; \u30b9\u30af\u30fc\u30eb\u30fb\u30aa\u30d6\u30fb\u30ed\u30c3\u30af \u30b9\u30da\u30b7\u30e3\u30eb\u30fb\u30b3\u30ec\u30af\u30bf\u30fc\u30ba\u30fb\u30a8\u30c7\u30a3\u30b7\u30e7...\r\n            [id] =&gt; 7\r\n            [product_image] =&gt; 51XHDZSH37L.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\/7\r\n        )\r\n\r\n)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u65b0\u7740\u5546\u54c1\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 \u65b0\u7740\u5546\u54c1\u306e\u8868\u793a\u6570\u306f \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u57fa\u672c\u8a2d\u5b9a > \u30ab\u30c6\u30b4\u30ea\u8a2d\u5b9a \u304b\u3089\u6307\u5b9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002 \u65b0\u7740\u5546\u54c1\u306e\u4e26\u3073\u9806\u306f \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u30b5\u30a4\u30c8\u8a2d\u5b9a > \u57fa\u672c\u8a2d\u5b9a > [&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-5077","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5077","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=5077"}],"version-history":[{"count":2,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5077\/revisions"}],"predecessor-version":[{"id":5079,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5077\/revisions\/5079"}],"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=5077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}