{"id":60657,"date":"2025-04-26T09:03:33","date_gmt":"2025-04-26T01:03:33","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60657\/"},"modified":"2025-04-26T09:03:33","modified_gmt":"2025-04-26T01:03:33","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9zen-cart%e5%88%86%e7%b1%bb%e4%ba%a7%e5%93%81%e6%8e%92%e5%ba%8f%e6%98%be%e7%a4%ba%e6%9c%80%e6%96%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60657\/","title":{"rendered":"\u5982\u4f55\u8ba9Zen Cart\u5206\u7c7b\u4ea7\u54c1\u6392\u5e8f\u663e\u793a\u6700\u65b0"},"content":{"rendered":"<p>\u8fd9\u4e2a\u95ee\u9898\u8c03\u8bd5\u4e86\u597d\u4e45\u4e86\uff0c\u5386\u65f6\u4e5f\u5feb\u534a\u5e74\u4e86\uff0c\u4e4b\u524d\u7f51\u4e0a\u8d44\u6599\u4e00\u76f4\u6709\u9650\uff0c\u4eca\u5929\u7ec8\u4e8e\u627e\u5230\u4e86\u89e3\u6790\u529e\u6cd5\u4e86\u3002<\/p>\n<p>\u9996\u9875\u8981\u8c22\u8c22zen-cart.cn\u793e\u533a\uff0c\u8fd9\u4e2a\u793e\u533a\u7684\u7248\u4e3b\u90fd\u975e\u5e38\u70ed\u5fc3\uff0c\u5982\u679c\u4f60\u4e5f\u6b63\u5728\u7528zen cart\u90a3\u4e48\uff0c\u4e0d\u4eff\u5230\u8fd9\u91cc\u5b66\u4e60\u5b66\u4e60\u3002<\/p>\n<p>\u8fdb\u5165\u6b63\u9898\uff0cZencart \u4e4blightinthebox\u6a21\u677f\uff0c\u4ea7\u54c1\u6392\u5e8f\u4fee\u6539 \u8fd9\u7bc7\u6587\u7ae0\u4e5f\u4ecb\u7ecd\u4e86\u5982\u4f55\u8ba9\u5206\u7c7b\u4ea7\u54c1\u6392\u540d\u663e\u793a\u6700\u65b0\uff0c\u6839\u636e\u4ed6\u7684\u6b65\u9aa4\u641e\u4e86\uff0c\u4f46\u4e0d\u6210\u529f\uff0c\u540e\u6765\u5728zen cart\u793e\u533a\u770b\u5230\u4e86\u8fd9\u6587\u7ae0\uff1awww.zen-cart.cn\/forum\/topic16254.html \u7efc\u5408\u4e24\u5e16\u5b50\uff0c\u95ee\u9898\u89e3\u51b3\uff1a<\/p>\n<p>1\uff1a \\includes\\index_filters\\default_filter.php<\/p>\n<p>\u5c06case 5\u7684\uff1aorder by p.products_date_added DESC\u6539\u6210\uff1aorder by p.products_ordered DESC<\/p>\n<p>\u5c06default\u7684\uff1aorder by p.products_ordered DESC\u6539\u6210\uff1aorder by p.products_date_added DESC<\/p>\n<p>2\uff1a\\includes\\modules\\product_listing.php<\/p>\n<p>Bestselling \u8ddfNew Arrival \u4e92\u6362\u4f4d\u7f6e<\/p>\n<p>3\uff1a\\includes\\index_filters\\default_filter.php<\/p>\n<p>\u8fd9\u91cc\u6bd4\u8f83\u91cd\u8981\u4e86\uff0c\u51b3\u5b9a\u4e86\u662f\u5426\u6210\u529f\uff1a<\/p>\n<p>\/\/ We show them all<br \/> $listing_sql = \u201cselect \u201d . $select_column_list . \u201d p.products_id, p.products_type,p.products_status,p.products_price,p.products_price_retail,p.products_price_sample,p.product_is_wholesale,p.product_wholesale_min,p.products_quantity, p.products_quantity_order_min, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status<br \/> from \u201d . TABLE_PRODUCTS_DESCRIPTION . \u201d pd, \u201d .<br \/> TABLE_PRODUCTS . \u201d p left join \u201d . TABLE_MANUFACTURERS . \u201d m on p.manufacturers_id = m.manufacturers_id, \u201d .<br \/> TABLE_PRODUCTS_TO_CATEGORIES . \u201d p2c left join \u201d . TABLE_SPECIALS . \u201d s on p2c.products_id = s.products_id<br \/> where p.products_status = 1<br \/> and p.products_id = p2c.products_id<br \/> and pd.products_id = p2c.products_id<br \/> and pd.language_id = \u2018\u201d . (int)$_SESSION[&#8216;languages_id&#8217;].\u201d\u2018\u201d. $displayOrder. $priceOrder.\u201d<br \/> and \u201d . $product_in_categories_sql;<\/p>\n<p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u7684\u6700\u540e\u4e00\u53e5\u7684\uff1b\u524d\u52a0\u5165\uff1a. \u201d order by p.products_date_added DESC\u201d \u4e5f\u5c31\u662f\u6700\u540e\u4e00\u53e5\u6539\u6210\uff1a<\/p>\n<p>and \u201d . $product_in_categories_sql. \u201d order by p.products_date_added DESC\u201d;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u95ee\u9898\u8c03\u8bd5\u4e86\u597d\u4e45\u4e86\uff0c\u5386\u65f6\u4e5f\u5feb\u534a\u5e74\u4e86\uff0c\u4e4b\u524d\u7f51\u4e0a\u8d44\u6599\u4e00\u76f4\u6709\u9650\uff0c\u4eca\u5929\u7ec8\u4e8e\u627e\u5230\u4e86\u89e3\u6790\u529e\u6cd5\u4e86\u3002 \u9996\u9875\u8981\u8c22\u8c22zen-cart.cn\u793e\u533a\uff0c\u8fd9\u4e2a\u793e\u533a\u7684\u7248\u4e3b\u90fd\u975e\u5e38\u70ed\u5fc3\uff0c\u5982\u679c\u4f60\u4e5f\u6b63\u5728\u7528zen cart\u90a3\u4e48\uff0c\u4e0d\u4eff\u5230\u8fd9\u91cc\u5b66\u4e60\u5b66\u4e60\u3002 \u8fdb\u5165\u6b63\u9898\uff0cZencart \u4e4blightinthebox\u6a21\u677f\uff0c\u4ea7\u54c1\u6392\u5e8f\u4fee\u6539 \u8fd9\u7bc7\u6587\u7ae0\u4e5f\u4ecb\u7ecd\u4e86\u5982\u4f55\u8ba9\u5206\u7c7b\u4ea7\u54c1\u6392\u540d\u663e\u793a\u6700\u65b0\uff0c\u6839\u636e\u4ed6\u7684\u6b65\u9aa4\u641e\u4e86\uff0c\u4f46\u4e0d\u6210\u529f\uff0c\u540e\u6765\u5728zen cart\u793e\u533a\u770b\u5230\u4e86\u8fd9\u6587\u7ae0\uff1awww.zen-cart.cn\/forum\/topic16254.html \u7efc\u5408\u4e24\u5e16\u5b50\uff0c\u95ee\u9898\u89e3\u51b3\uff1a 1\uff1a \\includes\\index_filters\\default_filter.php \u5c06case 5\u7684\uff1aorder by p.products_date_added DESC\u6539\u6210\uff1aorder by p.products_ordered DESC \u5c06default\u7684\uff1aorder by p.products_ordered DESC\u6539\u6210\uff1aorder by p.products_date_added DESC 2\uff1a\\includes\\modules\\product_listing.php Bestselling \u8ddfNew Arrival \u4e92\u6362\u4f4d\u7f6e 3\uff1a\\includes\\index_filters\\default_filter.php \u8fd9\u91cc\u6bd4\u8f83\u91cd\u8981\u4e86\uff0c\u51b3\u5b9a\u4e86\u662f\u5426\u6210\u529f\uff1a \/\/ We show them all $listing_sql = \u201cselect \u201d . $select_column_list . \u201d p.products_id, p.products_type,p.products_status,p.products_price,p.products_price_retail,p.products_price_sample,p.product_is_wholesale,p.product_wholesale_min,p.products_quantity, p.products_quantity_order_min, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = [&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-60657","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60657","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=60657"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60657\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}