{"id":60845,"date":"2025-04-26T10:08:37","date_gmt":"2025-04-26T02:08:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60845\/"},"modified":"2025-04-26T10:08:37","modified_gmt":"2025-04-26T02:08:37","slug":"%e6%89%b9%e9%87%8f%e4%bf%ae%e6%94%b9zencart%e5%95%86%e5%93%81%e4%bb%b7%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60845\/","title":{"rendered":"\u6279\u91cf\u4fee\u6539zencart\u5546\u54c1\u4ef7\u683c"},"content":{"rendered":"<p> 1)\u5728zencart\u539f\u6765\u57fa\u7840\u4e0a\u6279\u91cf\u8c03\u9ad8\u4e00\u5b9a\u6bd4\u4f8b<\/p>\n<p> 2) \u5c06\u539f\u6765\u7684\u4ef7\u683c\u6279\u91cf\u6362\u6210\u4e00\u4e2a\u65b0\u7684\u4ef7\u683c<\/p>\n<p> \u9488\u5bf9\u7b2c\u4e00\u79cd\u60c5\u51b5\u7684\u8bdd\uff0c\u7f51\u4e0a\u5f88\u591a\u4eba\u5df2\u7ecf\u7ed9\u51fa\u4e86\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p> \u5229\u7528SQL\u8bed\u53e5\u6279\u91cf\u4fee\u6539\uff1a<\/p>\n<p> \u767b\u9646Mysql\u540e\u53f0\uff0c\u627e\u5230\u627e\u5230products \u8fd9\u4e2a\u8868\uff0c\u70b9\u51fb\u9876\u90e8\u7684SQL\uff0c\u5199\u5165\u8bed\u53e5\u8fdb\u884c\u6267\u884c\uff0c<\/p>\n<p> \u5982\u628a\u7f51\u7ad9\u4e0a\u9762\u7684\u6240\u6709\u4ea7\u54c1\u7684\u4ef7\u683c\u63d0\u534710\u5143\uff0c\u90a3\u4e48\u53ef\u4ee5\u8f93\u5165\u5982\u4e0b\u8bed\u53e5\uff1a<\/p>\n<p> update products set products_price=products_price+10<\/p>\n<p> \u628a\u6240\u6709\u4ea7\u54c1\u4ef7\u683c\u63d0\u534710%\uff0c\u5219\u8f93\u5165\uff1a<\/p>\n<p> update products set products_price=products_price*1.1<\/p>\n<p> \u6700\u540e \u522b\u5fd8\u4e86\u70b9\u201dGO\u201d\u6267\u884c\u4e00\u4e0b!<\/p>\n<p> \u4e0b\u9762\u662f\u9488\u5bf9\u7b2c\u4e8c\u79cd\u60c5\u51b5\u7684\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p> update products set products_price=replace(products_price ,&#8217;20.8800&#8242;,&#8217;16.8800&#8242;)<\/p>\n<p> \u8fd9\u4e2a\u8bed\u53e5\u7684\u610f\u601d\u5c31\u662f\u628a20.88\u6362\u621016.88<br \/> &nbsp;<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c160110\/14523AZ4524P-155449.jpg\" class=\"aligncenter\" title=\"\u6279\u91cf\u4fee\u6539zencart\u5546\u54c1\u4ef7\u683c\u63d2\u56fe\" alt=\"\u6279\u91cf\u4fee\u6539zencart\u5546\u54c1\u4ef7\u683c\u63d2\u56fe\" \/><\/p>\n<p> \u6279\u91cf\u4ef7\u683c\u66f4\u65b0<\/p>\n<p> \u53ef\u4ee5\u6279\u91cf\u66f4\u65b0\u5206\u7c7b\u4e0b\u7684\u4ef7\u683c\u3001\u578b\u53f7\u3001\u540d\u79f0\u3001\u91cd\u91cf\u7b49\uff1b\u4e5f\u53ef\u4ee5\u5c06\u4ea7\u54c1\u590d\u5236\u5230\u5176\u5b83\u7684\u5206\u7c7b\u3002<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/c160110\/14523AZ454c0-1AA4.jpg\" class=\"aligncenter\" title=\"\u6279\u91cf\u4fee\u6539zencart\u5546\u54c1\u4ef7\u683c\u63d2\u56fe1\" alt=\"\u6279\u91cf\u4fee\u6539zencart\u5546\u54c1\u4ef7\u683c\u63d2\u56fe1\" \/><\/p>\n<p> \u6709\u7ea2\u8272\u7684\u4ef7\u683c\u6846\u6846\u8bf4\u660e\u8be5\u4ea7\u54c1\u505a\u4e86\u7279\u4ef7\u4fe1\u606f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1)\u5728zencart\u539f\u6765\u57fa\u7840\u4e0a\u6279\u91cf\u8c03\u9ad8\u4e00\u5b9a\u6bd4\u4f8b 2) \u5c06\u539f\u6765\u7684\u4ef7\u683c\u6279\u91cf\u6362\u6210\u4e00\u4e2a\u65b0\u7684\u4ef7\u683c \u9488\u5bf9\u7b2c\u4e00\u79cd\u60c5\u51b5\u7684\u8bdd\uff0c\u7f51\u4e0a\u5f88\u591a\u4eba\u5df2\u7ecf\u7ed9\u51fa\u4e86\u89e3\u51b3\u529e\u6cd5\uff1a \u5229\u7528SQL\u8bed\u53e5\u6279\u91cf\u4fee\u6539\uff1a \u767b\u9646Mysql\u540e\u53f0\uff0c\u627e\u5230\u627e\u5230products \u8fd9\u4e2a\u8868\uff0c\u70b9\u51fb\u9876\u90e8\u7684SQL\uff0c\u5199\u5165\u8bed\u53e5\u8fdb\u884c\u6267\u884c\uff0c \u5982\u628a\u7f51\u7ad9\u4e0a\u9762\u7684\u6240\u6709\u4ea7\u54c1\u7684\u4ef7\u683c\u63d0\u534710\u5143\uff0c\u90a3\u4e48\u53ef\u4ee5\u8f93\u5165\u5982\u4e0b\u8bed\u53e5\uff1a update products set products_price=products_price+10 \u628a\u6240\u6709\u4ea7\u54c1\u4ef7\u683c\u63d0\u534710%\uff0c\u5219\u8f93\u5165\uff1a update products set products_price=products_price*1.1 \u6700\u540e \u522b\u5fd8\u4e86\u70b9\u201dGO\u201d\u6267\u884c\u4e00\u4e0b! \u4e0b\u9762\u662f\u9488\u5bf9\u7b2c\u4e8c\u79cd\u60c5\u51b5\u7684\u89e3\u51b3\u529e\u6cd5\uff1a update products set products_price=replace(products_price ,&#8217;20.8800&#8242;,&#8217;16.8800&#8242;) \u8fd9\u4e2a\u8bed\u53e5\u7684\u610f\u601d\u5c31\u662f\u628a20.88\u6362\u621016.88 &nbsp; \u6279\u91cf\u4ef7\u683c\u66f4\u65b0 \u53ef\u4ee5\u6279\u91cf\u66f4\u65b0\u5206\u7c7b\u4e0b\u7684\u4ef7\u683c\u3001\u578b\u53f7\u3001\u540d\u79f0\u3001\u91cd\u91cf\u7b49\uff1b\u4e5f\u53ef\u4ee5\u5c06\u4ea7\u54c1\u590d\u5236\u5230\u5176\u5b83\u7684\u5206\u7c7b\u3002 \u6709\u7ea2\u8272\u7684\u4ef7\u683c\u6846\u6846\u8bf4\u660e\u8be5\u4ea7\u54c1\u505a\u4e86\u7279\u4ef7\u4fe1\u606f<\/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-60845","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60845","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=60845"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60845\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}