Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
$related_records = db_phquery_fetch(DBRFETCH_ROW_ALL,'SELECT pr.productID as productID, '.LanguagesManager::sql_prepareField('name').' AS name, Price, slug FROM ?#PRODUCTS_TABLE AS pr JOIN ?#RELATED_PRODUCTS_TABLE AS rel ON (rel.`productID` = pr.`productID`) WHERE Owner=? AND enabled = 1',$productID);
$related_records = db_phquery_fetch(DBRFETCH_ROW_ALL,'SELECT pr.productID as productID, '.LanguagesManager::sql_prepareField('name').' AS name, Price, slug, list_price FROM ?#PRODUCTS_TABLE AS pr JOIN ?#RELATED_PRODUCTS_TABLE AS rel ON (rel.`productID` = pr.`productID`) WHERE Owner=? AND enabled = 1',$productID);
{$product_related[i][4]}
Спасибо,только у меня сработало:Открываем файл /published/SC/html/scripts/modules/products/scripts/product_detailed.php
Ищем следующую строку
заменяем ее наPHP:$related_records = db_phquery_fetch(DBRFETCH_ROW_ALL,'SELECT pr.productID as productID, '.LanguagesManager::sql_prepareField('name').' AS name, Price, slug FROM ?#PRODUCTS_TABLE AS pr JOIN ?#RELATED_PRODUCTS_TABLE AS rel ON (rel.`productID` = pr.`productID`) WHERE Owner=? AND enabled = 1',$productID);
PHP:$related_records = db_phquery_fetch(DBRFETCH_ROW_ALL,'SELECT pr.productID as productID, '.LanguagesManager::sql_prepareField('name').' AS name, Price, slug, list_price FROM ?#PRODUCTS_TABLE AS pr JOIN ?#RELATED_PRODUCTS_TABLE AS rel ON (rel.`productID` = pr.`productID`) WHERE Owner=? AND enabled = 1',$productID);
Открываем файл /published/SC/html/scripts/templates/frontend/product_related_products.html
и туда в нужном месте вставляем {$product_related[4]}
{$product_related[i][4]}
все верно, забыл прописатьСпасибо,только у меня сработало:так скорее всего правильнее!Код:{$product_related[i][4]}