{"id":60864,"date":"2025-04-26T09:00:16","date_gmt":"2025-04-26T01:00:16","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60864\/"},"modified":"2025-04-26T09:00:16","modified_gmt":"2025-04-26T01:00:16","slug":"%e8%8e%b7%e5%8f%96zencart%e4%ba%a7%e5%93%81%e6%9c%80%e5%b0%8f%e8%ae%a2%e5%8d%95%e6%95%b0%e5%92%8c%e6%9c%80%e5%a4%a7%e8%ae%a2%e5%8d%95%e6%95%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60864\/","title":{"rendered":"\u83b7\u53d6ZenCart\u4ea7\u54c1\u6700\u5c0f\u8ba2\u5355\u6570\u548c\u6700\u5927\u8ba2\u5355\u6570"},"content":{"rendered":"<p> ZenCart\u7684zen_get_products_quantity_order_min \u51fd\u6570\u662f\u83b7\u53d6\u4ea7\u54c1\u7684\u6700\u5c0f\u8ba2\u5355\u6570\uff0c\u8be5\u51fd\u6570\u83b7\u53d6\u7684\u662f\u4ea7\u54c1\u8868products \u7684products_quantity_order_min\u5b57\u6bb5\u7684\u503c\uff0c\u800c\u8be5\u5b57\u6bb5\u662f\u5728\u6dfb\u52a0\u4ea7\u54c1\u7684\u65f6\u5019\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u662f1<br \/> function zen_get_products_quantity_order_min($product_id) {<br \/> global $db;<br \/> $the_products_quantity_order_min = $db-&gt;Execute(\u201cselect products_id, products_quantity_order_min from \u201d . TABLE_PRODUCTS . \u201d where products_id = \u2018\u201d . (int)$product_id . \u201c\u2018\u201d);<br \/> return $the_products_quantity_order_min-&gt;fields[&#8216;products_quantity_order_min&#8217;];<br \/> }<\/p>\n<p> \u4e0e\u8be5\u51fd\u6570\u7c7b\u4f3c\u529f\u80fd\u7684\u662f\u83b7\u53d6\u4ea7\u54c1\u6700\u5927\u8ba2\u5355\u6570\u51fd\u6570zen_get_products_quantity_order_max\uff0c\u5176\u4e3b\u8981\u662f\u83b7\u53d6products\u8868\u7684products_quantity_order_max\u5b57\u6bb5\uff0c\u8be5\u5b57\u6bb5\u662f\u5728\u6dfb\u52a0\u4ea7\u54c1\u7684\u65f6\u5019\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u662f0\uff0c\u8868\u793a\u65e0\u9650\u5236\u8ba2\u5355\u6570<\/p>\n<p> function zen_get_products_quantity_order_max($product_id) {<br \/> global $db;<\/p>\n<p> $the_products_quantity_order_max = $db-&gt;Execute(\u201cselect products_id, products_quantity_order_max from \u201d . TABLE_PRODUCTS . \u201d where products_id = \u2018\u201d . (int)$product_id . \u201c\u2018\u201d);<br \/> return $the_products_quantity_order_max-&gt;fields[&#8216;products_quantity_order_max&#8217;];<br \/> }<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ZenCart\u7684zen_get_products_quantity_order_min \u51fd\u6570\u662f\u83b7\u53d6\u4ea7\u54c1\u7684\u6700\u5c0f\u8ba2\u5355\u6570\uff0c\u8be5\u51fd\u6570\u83b7\u53d6\u7684\u662f\u4ea7\u54c1\u8868products \u7684products_quantity_order_min\u5b57\u6bb5\u7684\u503c\uff0c\u800c\u8be5\u5b57\u6bb5\u662f\u5728\u6dfb\u52a0\u4ea7\u54c1\u7684\u65f6\u5019\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u662f1 function zen_get_products_quantity_order_min($product_id) { global $db; $the_products_quantity_order_min = $db-&gt;Execute(\u201cselect products_id, products_quantity_order_min from \u201d . TABLE_PRODUCTS . \u201d where products_id = \u2018\u201d . (int)$product_id . \u201c\u2018\u201d); return $the_products_quantity_order_min-&gt;fields[&#8216;products_quantity_order_min&#8217;]; } \u4e0e\u8be5\u51fd\u6570\u7c7b\u4f3c\u529f\u80fd\u7684\u662f\u83b7\u53d6\u4ea7\u54c1\u6700\u5927\u8ba2\u5355\u6570\u51fd\u6570zen_get_products_quantity_order_max\uff0c\u5176\u4e3b\u8981\u662f\u83b7\u53d6products\u8868\u7684products_quantity_order_max\u5b57\u6bb5\uff0c\u8be5\u5b57\u6bb5\u662f\u5728\u6dfb\u52a0\u4ea7\u54c1\u7684\u65f6\u5019\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u662f0\uff0c\u8868\u793a\u65e0\u9650\u5236\u8ba2\u5355\u6570 function zen_get_products_quantity_order_max($product_id) { global $db; $the_products_quantity_order_max = $db-&gt;Execute(\u201cselect products_id, products_quantity_order_max from \u201d . TABLE_PRODUCTS . \u201d where products_id = \u2018\u201d . (int)$product_id . \u201c\u2018\u201d); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60864","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60864"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60864\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}