{"id":206,"date":"2011-02-24T23:26:13","date_gmt":"2011-02-24T20:26:13","guid":{"rendered":"http:\/\/itist.ru\/blog\/?p=206"},"modified":"2018-08-01T23:27:47","modified_gmt":"2018-08-01T20:27:47","slug":"kak-v-kratkom-opisanii-tovara-ubrat-pole-s-vyborom-kolichestva","status":"publish","type":"post","link":"http:\/\/itist.ru\/blog\/?p=206","title":{"rendered":"\u041a\u0430\u043a \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u0430 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u043b\u0435 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430."},"content":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u0432\u0430\u0440\u0435 \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b &#8230;\\www\\components\\com_virtuemart\\themes\\\u0432\u0430\u0448_\u0448\u0430\u0431\u043b\u043e\u043d\\templates\\browse\\includes\\<strong>addtocart_form.tpl.php:<\/strong><\/p>\n<p><strong><span id=\"more-373\"><\/span><\/strong>&#8212; \u0438\u0449\u0435\u043c \u0431\u043b\u043e\u043a <span style=\"color: #800000;\">&lt;div&gt;<\/span> \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c (<span style=\"color: #800000;\">home-featured-cartblock<\/span>), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0430 \u0444\u043e\u0440\u043c\u0430;<\/p>\n<p>&#8212; \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0444\u043e\u0440\u043c\u044b \u043d\u0430:<\/p>\n<p><span style=\"color: #800000;\"><\/p>\n<div class=\"wp_syntax\">\n<table>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family:monospace;\">&lt;form action=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span>\u00a0 <span style=\"color: #000088;\">$mm_action_url<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>index.php&quot; method=&quot;post&quot; name=&quot;addtocart&quot;&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_virtuemart&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;page&quot; value=&quot;shop.cart&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;Itemid&quot; value=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> ps_session<span style=\"color: #339933;\">::<\/span><span style=\"color: #004000;\">getShopItemid<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;func&quot; value=&quot;cartAdd&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;prod_id&quot; value=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_id<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;product_id&quot; value=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_id<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;quantity&quot; value=&quot;1&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;set_price[]&quot; value=&quot;&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;adjust_price[]&quot; value=&quot;&quot; \/&gt;\r\n&lt;input type=&quot;hidden&quot; name=&quot;master_product[]&quot; value=&quot;&quot; \/&gt;\r\n&lt;input type=&quot;submit&quot; value=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$VM_LANG<\/span><span style=\"color: #339933;\">-&gt;<\/span>_<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PHPSHOP_CART_ADD_TO'<\/span><span style=\"color: #009900;\">&#41;<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&quot; title=&quot;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$VM_LANG<\/span><span style=\"color: #339933;\">-&gt;<\/span>_<span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PHPSHOP_CART_ADD_TO'<\/span><span style=\"color: #009900;\">&#41;<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&quot; \/&gt;\r\n&lt;\/form&gt;<\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><\/span><\/p>\n<p><span style=\"color: #000000;\">\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0430 &#171;\u0412 \u043a\u043e\u0440\u0437\u0438\u043d\u0443&#187;.<\/span><\/p>\n<p><span style=\"color: #800000;\"><br \/>\n<\/span><\/p>\n<p>\u0410\u0432\u0442\u043e\u0440: Mekilor<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u0432\u0430\u0440\u0435 \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b &#8230;\\www\\components\\com_virtuemart\\themes\\\u0432\u0430\u0448_\u0448\u0430\u0431\u043b\u043e\u043d\\templates\\browse\\includes\\addtocart_form.tpl.php: &#8212; \u0438\u0449\u0435\u043c \u0431\u043b\u043e\u043a &lt;div&gt; \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c (home-featured-cartblock), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0430 \u0444\u043e\u0440\u043c\u0430; &#8212; \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0444\u043e\u0440\u043c\u044b \u043d\u0430: &lt;form action=&quot;&lt;?php echo\u00a0 $mm_action_url ?&gt;index.php&quot; method=&quot;post&quot; name=&quot;addtocart&quot;&gt; &lt;input type=&quot;hidden&quot; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[81,39],"tags":[],"_links":{"self":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/206"}],"collection":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=206"}],"version-history":[{"count":1,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":207,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions\/207"}],"wp:attachment":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}