Tw333k Posted June 2, 2013 Report Share Posted June 2, 2013 1) Отображение свойств товара в корзине Срочно нужно, прошу писать в скайп tw333k2 или на почту tw333k@gmail.comСпасибо Quote Link to post Share on other sites
Noxter Posted June 2, 2013 Report Share Posted June 2, 2013 api/Cart.php после 55-й строки впишите: // Свойства $features = $this->features->get_product_options($products_ids); foreach($features as &$feature) { $products[$feature->product_id]->features[] = $feature; } Ну и в шаблоне cart.tpl используйте такой цикл: {foreach $purchase->product->features as $f} {$f->name} {$f->value} {/foreach} Готово! Quote Link to post Share on other sites
mulekula Posted February 2, 2014 Report Share Posted February 2, 2014 Если товаров добавлено в корзину больше одного, то показывает только одно значение. Как показать каждое значение с каждого товара? Quote Link to post Share on other sites
mulekula Posted February 5, 2014 Report Share Posted February 5, 2014 ап Quote Link to post Share on other sites
Noxter Posted February 5, 2014 Report Share Posted February 5, 2014 Если товаров добавлено в корзину больше одного, то показывает только одно значение. Как показать каждое значение с каждого товара?Ничего подобного, каждому товару набор его же свойств. Делал у себя на сайте все работало, версия симплы 2.2.1 вроде была. Может Вы что-то не так делаете, а еще Вы не указываете версию симплы. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.