xPLOID 0 Posted February 15, 2007 Report Share Posted February 15, 2007 При нажатии кнопки "в корзину" в полном описании товара, товар в корзину не добавляется, однако при нажатии кнопки "купить" в "новинках" и "последних просмотренных", товар добавляется. Не могу понять в чем проблема. Вот тут www.tv-sklad.ru Link to post Share on other sites
support 447 Posted February 15, 2007 Report Share Posted February 15, 2007 Например на этой http://www.tv-sklad.ru/product_info.php?info=p14_Samsung-HT-TXQ100.html Да, не добавляется. Попробуй в Админке - Настройки - Сесии - Принудительное использование Cookie Поставить false. Link to post Share on other sites
xPLOID 0 Posted February 15, 2007 Author Report Share Posted February 15, 2007 Поставил, не помогло... :( Link to post Share on other sites
support 447 Posted February 15, 2007 Report Share Posted February 15, 2007 А ты что-нибудь с магазином делал, в скрипты лазил? Если включить шаблон vamshop Там тоже не работает? Link to post Share on other sites
xPLOID 0 Posted February 15, 2007 Author Report Share Posted February 15, 2007 Нет в скрипты не лазил, только сменил шапку в нтмл шаблоне, кстати в шаблоне vamshop и vamshop_table тоже не работает. Link to post Share on other sites
support 447 Posted February 15, 2007 Report Share Posted February 15, 2007 Да, интересно. А можешь у хостера спросить, какие настройки в php.ini (on или off) установлены в опциях: magic_quotes_gpc magic_quotes_runtime Link to post Share on other sites
xPLOID 0 Posted February 16, 2007 Author Report Share Posted February 16, 2007 Везде Off Link to post Share on other sites
support 447 Posted February 16, 2007 Report Share Posted February 16, 2007 А можешь попросить хостера поставить magic_quotes_gpc = On ?! Если он не поставит, скажи, попробуем по-другому сделать. Просто сделать ссылку купить как в боксах. Link to post Share on other sites
xPLOID 0 Posted February 16, 2007 Author Report Share Posted February 16, 2007 давай лучше сразу ссылку "купить" как в боксах... где там поправить надо? Link to post Share on other sites
support 447 Posted February 16, 2007 Report Share Posted February 16, 2007 Попробуй замени в /templates/шаблон/module/product_info/product_info_v1.html: <tr> <td align="right">{$ADD_QTY}</td> <td align="left">{$ADD_CART_BUTTON}</td> </tr>[/code] На: [code] <tr> <td align="right" colspan="2">{$BUY_NOW}</td> </tr> Затем в /includes/modules/product_info.php замени: // check if customer is allowed to add to cart if ($_SESSION['customers_status']['customers_status_show_price'] != '0') { // fsk18 if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if ($product->data['products_fsk18'] == '0') { $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id'])); $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)); } } else { $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id'])); $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)); } }[/code] На: [code] // check if customer is allowed to add to cart if ($_SESSION['customers_status']['customers_status_show_price'] != '0') { // fsk18 if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if ($product->data['products_fsk18'] == '0') { $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id'])); $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)); $info_smarty->assign('BUY_NOW', '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$product->data['products_id'].'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$product->data['products_name'].TEXT_NOW).'</a>'); } } else { $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id'])); $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)); $info_smarty->assign('BUY_NOW', '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$product->data['products_id'].'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$product->data['products_name'].TEXT_NOW).'</a>'); } } Link to post Share on other sites
Recommended Posts