{"id":208,"date":"2011-02-23T23:28:44","date_gmt":"2011-02-23T20:28:44","guid":{"rendered":"http:\/\/itist.ru\/blog\/?p=208"},"modified":"2018-08-01T23:30:33","modified_gmt":"2018-08-01T20:30:33","slug":"kak-dobavit-v-kratkoe-opisanie-proizvoditelja-i-tip-tovara","status":"publish","type":"post","link":"http:\/\/itist.ru\/blog\/?p=208","title":{"rendered":"\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u0442\u0438\u043f \u0442\u043e\u0432\u0430\u0440\u0430."},"content":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0435\u0433\u043e \u0442\u0438\u043f\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430:\u00a0 \u00ab\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 Gigabyte ga-ma770-ud3\u00bb.\u00a0 \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0442\u043e\u0432\u0430\u0440\u0430:<\/p>\n<p>1. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u2026\\www\\administrator\\components\\com_virtuemart\\classes\\<strong>ps_product_type.php<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e<strong> get_name_only<\/strong>;<\/p>\n<p style=\"text-align: left;\">\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000000; font-weight: bold;\">function<\/span> get_name_only<span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$product_id<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$db<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000000; font-weight: bold;\">new<\/span> ps_DB<span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$q<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #0000ff;\">\"SELECT product_type_name FROM #__{vm}_product_type,\u00a0 #__{vm}_product_product_type_xref\u00a0 WHERE #__{vm}_product_product_type_xref.product_id ='<span style=\"color: #006699; font-weight: bold;\">$product_id<\/span> ' \"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$q<\/span> <span style=\"color: #339933;\">.=<\/span> <span style=\"color: #0000ff;\">\"AND #__{vm}_product_type.product_type_id=#__{vm}_product_product_type_xref.product_type_id\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">query<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$q<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">next_record<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">f<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"product_type_name\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #009900;\">}<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: left;\">\n<p>2. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u2026\\www\\administrator\\components\\com_virtuemart\\html\\<strong>shop.browse.php <\/strong>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e<strong>:<\/strong><br \/>\n\u2014 \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #b1b100;\">require_once<\/span><span style=\"color: #009900;\">(<\/span>CLASSPATH <span style=\"color: #339933;\">.<\/span> <span style=\"color: #0000ff;\">'ps_product_attribute.php'<\/span> <span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$ps_product_attribute<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000000; font-weight: bold;\">new<\/span> ps_product_attribute<span style=\"color: #339933;\">;&lt;<\/span>strong<span style=\"color: #339933;\">&gt;<\/span>\u00a0<span style=\"color: #339933;\">&lt;\/<\/span>strong<span style=\"color: #339933;\">&gt;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u043f\u043e\u0441\u043b\u0435 \u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #b1b100;\">require_once<\/span><span style=\"color: #009900;\">(<\/span>CLASSPATH <span style=\"color: #339933;\">.<\/span> <span style=\"color: #0000ff;\">'ps_product_type.php'<\/span> <span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$ps_product_type<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000000; font-weight: bold;\">new<\/span> ps_product_type<span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u0437\u0430\u0442\u0435\u043c \u0438\u0449\u0435\u043c<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$product_s_desc<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$db_browse<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">f<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"product_s_desc\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #009900;\">(<\/span> <span style=\"color: #990000;\">empty<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$product_s_desc<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #339933;\">&amp;&amp;<\/span> <span style=\"color: #000088;\">$product_parent_id<\/span><span style=\"color: #339933;\">!=<\/span><span style=\"color: #cc66cc;\">0<\/span> <span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$product_s_desc<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$dbp<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">f<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"product_s_desc\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span> <span style=\"color: #666666; font-style: italic;\">\/\/ Use product_s_desc from Parent Product<\/span>\r\n<span style=\"color: #009900;\">}<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$flerd_product_id<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$db_browse<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">f<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"product_id\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$product_type_name<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$ps_product_type<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">get_name_only<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$flerd_product_id<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u0438\u0434\u0435\u043c \u043d\u0438\u0436\u0435 \u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$products<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'product_type_name'<\/span><span style=\"color: #009900;\">]<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$product_type_name<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>3. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u2026\\www\\components\\com_virtuemart\\themes\\vm_mynxx\\templates\\browse\\<strong>browse_1.php<\/strong>) \u0438 \u0432 \u043d\u0443\u0436\u043d\u043e \u0412\u0430\u043c \u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_type_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d, \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f.<br \/>\n\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f:<br \/>\n1. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u2026\\www\\administrator\\components\\com_virtuemart\\classes\\<strong>ps_manufacturer.php<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e<strong> get_name_mf:<\/strong><\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000000; font-weight: bold;\">function<\/span> get_name_mf<span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$product_id<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$db<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000000; font-weight: bold;\">new<\/span> ps_DB<span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$q<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #0000ff;\">\"SELECT mf_name FROM #__{vm}_manufacturer, #__{vm}_product_mf_xref\u00a0 WHERE #__{vm}_product_mf_xref.product_id ='<span style=\"color: #006699; font-weight: bold;\">$product_id<\/span>' \"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$q<\/span> <span style=\"color: #339933;\">.=<\/span> <span style=\"color: #0000ff;\">\"AND #__{vm}_manufacturer.manufacturer_id=#__{vm}_product_mf_xref.manufacturer_id\"<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">query<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$q<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">next_record<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">return<\/span> <span style=\"color: #000088;\">$db<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">f<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"mf_name\"<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #009900;\">}<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>2. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u2026\\www\\administrator\\components\\com_virtuemart\\html\\<strong>shop.browse.php <\/strong>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e<strong>: <\/strong><br \/>\n\u2014 \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$product_type_name<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$ps_product_type<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">get_name_only<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$flerd_product_id<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$mf_name<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$ps_manufacturer<\/span><span style=\"color: #339933;\">-&gt;<\/span><span style=\"color: #004000;\">get_name_mf<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$flerd_product_id<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u0437\u0430\u0442\u0435\u043c \u0438\u0449\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$products<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'product_type_name'<\/span><span style=\"color: #009900;\">]<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$product_type_name<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u2014 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000088;\">$products<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'mf_name'<\/span><span style=\"color: #009900;\">]<\/span> <span style=\"color: #339933;\">=<\/span> <span style=\"color: #000088;\">$mf_name<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>3. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 (\u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u2026\\www\\components\\com_virtuemart\\themes\\vm_mynxx\\templates\\browse\\<strong>browse_1.php<\/strong>) \u0438 \u0432 \u043d\u0443\u0436\u043d\u043e \u0412\u0430\u043c \u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\"><span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$mf_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d, \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <strong>(<\/strong><strong>browse_1.php)<\/strong>, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<div class=\"wp_syntax\">\n<table>\n<tbody>\n<tr>\n<td class=\"code\">\n<pre class=\"php\" style=\"font-family: monospace;\">&lt;div&gt;\r\n&lt;h3 &gt;&lt;a title=\"<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>\" href=\"<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_flypage<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>\"&gt;\r\n<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_type_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&amp;nbsp;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$mf_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&amp;nbsp;<span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> <span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$product_name<\/span> <span style=\"color: #000000; font-weight: bold;\">?&gt;<\/span>&lt;\/a&gt;\r\n&lt;\/h3&gt;\r\n&lt;\/div&gt;<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>\u00ab\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 Gigabyte ga-ma770-ud3\u00bb, \u0433\u0434\u0435:<\/p>\n<p>\u00ab\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430\u00bb \u2014 \u044d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0442\u043e\u0432\u0430\u0440\u0430;<\/p>\n<p>\u00abGigabyte\u00bb \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c;<\/p>\n<p>\u00abga-ma770-ud3\u00bb \u2014 \u044d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430.<\/p>\n<p>\u0430\u0432\u0442\u043e\u0440: Mekilor<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0432\u0430\u0440\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0435\u0433\u043e \u0442\u0438\u043f\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430:\u00a0 \u00ab\u041c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 Gigabyte ga-ma770-ud3\u00bb.\u00a0 \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0442\u043e\u0432\u0430\u0440\u0430: 1. \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u2026\\www\\administrator\\components\\com_virtuemart\\classes\\ps_product_type.php \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e get_name_only; function get_name_only($product_id) { $db = new ps_DB; $q = &#171;SELECT product_type_name FROM #__{vm}_product_type,\u00a0 #__{vm}_product_product_type_xref\u00a0 WHERE #__{vm}_product_product_type_xref.product_id [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[],"_links":{"self":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/208"}],"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=208"}],"version-history":[{"count":1,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":209,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/209"}],"wp:attachment":[{"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itist.ru\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}