{"id":61012,"date":"2025-04-26T12:02:08","date_gmt":"2025-04-26T04:02:08","guid":{"rendered":"https:\/\/fwq.ai\/blog\/61012\/"},"modified":"2025-04-26T12:02:08","modified_gmt":"2025-04-26T04:02:08","slug":"%e8%a7%a3%e5%86%b3zencart%e5%90%8e%e5%8f%b0%e6%89%8b%e5%b7%a5%e8%be%93%e5%85%a5%e4%ba%a7%e5%93%81id%e6%b7%bb%e5%8a%a0%e7%89%b9%e4%bb%b7%e5%95%86%e5%93%81%e7%9a%84%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/61012\/","title":{"rendered":"\u89e3\u51b3zencart\u540e\u53f0\u624b\u5de5\u8f93\u5165\u4ea7\u54c1ID\u6dfb\u52a0\u7279\u4ef7\u5546\u54c1\u7684\u9519\u8bef"},"content":{"rendered":"<p> \u5728zencart\u4e2d\uff0c\u6dfb\u52a0\u7279\u4ef7\u4ea7\u54c1\u7684\u65f6\u5019\uff0c\u5982\u679c\u6570\u636e\u5e93\u6bd4\u8f83\u5927\uff0c\u53ef\u4ee5\u6839\u636e\u5546\u54c1\u7f16\u53f7\u624b\u5de5\u6dfb\u52a0\u7279\u4ef7\u5546\u54c1\u5f53\u5546\u54c1\u5f88\u591a\uff0c\u4ece\u9875\u9762\u7684\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u5546\u54c1\u4e0d\u65b9\u4fbf\u65f6\uff0c\u91c7\u7528\u8f93\u5165\u9884\u6dfb\u52a0\u7684\u5546\u54c1\u7f16\u53f7\u6765\u5feb\u901f\u7684\u6dfb\u52a0\u7279\u4ef7\u4ea7\u54c1\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6bd4\u8f83\u597d\u3002&nbsp;<\/p>\n<p> \u6b63\u5e38\u7684\u6d41\u7a0b\u662f\u6dfb\u52a0\u8fd9\u4e2a\u4ea7\u54c1ID\u540e\uff0c\u5c31\u8fdb\u5165\u7f16\u8f91\u7279\u4ef7\u548c\u65f6\u95f4\uff0c\u7136\u540e\u5c31\u6dfb\u52a0\u5230\u7279\u4ef7\u8868\u91cc\u9762\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5e94\u4ea7\u54c1\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u9009\u62e9\u4ea7\u54c1\u6bd4\u8f83\u9ebb\u70e6\u7684\u65f6\u5019\u624d\u7528\u7684\uff0c\u5b83\u80fd\u51cf\u5c11\u6311\u9009\u5546\u54c1\u7684\u65f6\u95f4\u3002\u4f46\u662f\u9ed8\u8ba4\u7684\u540e\u53f0\uff0c\u6dfb\u52a0\u7684\u65f6\u5019\u662f\u4f1a\u51fa\u9519\u7684.\u4e0b\u9762\u5c31\u662f\u9519\u8bef\u63d0\u793a\uff1a&nbsp;<\/p>\n<p> 1366 Incorrect decimal value: &#8221; for column &#8216;specials_new_products_price&#8217; at row 1&nbsp;<br \/> in:&nbsp;<br \/> [insert into specials (products_id, specials_new_products_price, specials_date_added, expires_date, status, specials_date_available) values (&#8217;23&#8217;, &#8221;, now(), &#8216;0001-01-01&#8217;, &#8216;1&#8217;, &#8216;0001-01-01&#8217;)]&nbsp;<br \/> If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.&nbsp;<\/p>\n<p> \u8fd9\u4e2a\u9519\u8bef\u662f\u56e0\u4e3aspecials_new_products_price\u8fd9\u4e2a\u5b57\u6bb5\u6ca1\u6709\u8d4b\u503c\u3002&nbsp;<\/p>\n<p> \u6240\u4ee5\u8981\u4fee\u6539admin\\specials.php\u8fd9\u4e2a\u6587\u4ef6\u91cc\u9762\u7684\u4ee3\u7801\uff0c\u627e\u5230\/\/ add empty special\u8fd9\u4e2a\u5730\u65b9\uff0c\u5728\u4e0b\u9762\u6dfb\u52a0&nbsp;<\/p>\n<p> $specials_price=((zen_db_prepare_input($_POST[&#8216;specials_price&#8217;]) == &#8221;) ? &#8216;0.0&#8217; : zen_date_raw($_POST[&#8216;specials_price&#8217;]));&nbsp;<\/p>\n<p> \u56e0\u4e3a\u7528\u8fd9\u79cd\u65b9\u5f0f\u8fd9\u4e2a\u6ca1\u6709\u8d4b\u503c\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u5224\u65ad\uff0c\u5982\u679c\u662f\u7a7a\u7684\u5c31\u8bbe\u7f6e\u4e3a0.0.&nbsp;<br \/> \u4fee\u6539\u540e\u5c31\u53ef\u4ee5\u6b63\u5e38\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728zencart\u4e2d\uff0c\u6dfb\u52a0\u7279\u4ef7\u4ea7\u54c1\u7684\u65f6\u5019\uff0c\u5982\u679c\u6570\u636e\u5e93\u6bd4\u8f83\u5927\uff0c\u53ef\u4ee5\u6839\u636e\u5546\u54c1\u7f16\u53f7\u624b\u5de5\u6dfb\u52a0\u7279\u4ef7\u5546\u54c1\u5f53\u5546\u54c1\u5f88\u591a\uff0c\u4ece\u9875\u9762\u7684\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u5546\u54c1\u4e0d\u65b9\u4fbf\u65f6\uff0c\u91c7\u7528\u8f93\u5165\u9884\u6dfb\u52a0\u7684\u5546\u54c1\u7f16\u53f7\u6765\u5feb\u901f\u7684\u6dfb\u52a0\u7279\u4ef7\u4ea7\u54c1\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6bd4\u8f83\u597d\u3002&nbsp; \u6b63\u5e38\u7684\u6d41\u7a0b\u662f\u6dfb\u52a0\u8fd9\u4e2a\u4ea7\u54c1ID\u540e\uff0c\u5c31\u8fdb\u5165\u7f16\u8f91\u7279\u4ef7\u548c\u65f6\u95f4\uff0c\u7136\u540e\u5c31\u6dfb\u52a0\u5230\u7279\u4ef7\u8868\u91cc\u9762\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5e94\u4ea7\u54c1\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u9009\u62e9\u4ea7\u54c1\u6bd4\u8f83\u9ebb\u70e6\u7684\u65f6\u5019\u624d\u7528\u7684\uff0c\u5b83\u80fd\u51cf\u5c11\u6311\u9009\u5546\u54c1\u7684\u65f6\u95f4\u3002\u4f46\u662f\u9ed8\u8ba4\u7684\u540e\u53f0\uff0c\u6dfb\u52a0\u7684\u65f6\u5019\u662f\u4f1a\u51fa\u9519\u7684.\u4e0b\u9762\u5c31\u662f\u9519\u8bef\u63d0\u793a\uff1a&nbsp; 1366 Incorrect decimal value: &#8221; for column &#8216;specials_new_products_price&#8217; at row 1&nbsp; in:&nbsp; [insert into specials (products_id, specials_new_products_price, specials_date_added, expires_date, status, specials_date_available) values (&#8217;23&#8217;, &#8221;, now(), &#8216;0001-01-01&#8217;, &#8216;1&#8217;, &#8216;0001-01-01&#8217;)]&nbsp; If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no [&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-61012","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61012","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=61012"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61012\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=61012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=61012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=61012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}