In the item card there is a list of stores implemented by attributes, to add an item to the cart you need to select a store (the stores are displayed by radio). In the basket next to the product you need to display the selected store. I created an array in cart.php and added it to the product array, I want to bring the store, but the array is empty

$shop_data = array( 'id' => $product['shop']['id'], 'name' => $product['shop']['name'] ) $data['products'][] = array( 'cart_id' => $product['cart_id'], 'thumb' => $image, 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'shop' => $shop_data, 'recurring' => $recurring, 'quantity' => $product['quantity'], 'stock' => $product['stock'] ? true : !(!$this->config->get('config_stock_checkout') || $this->config->get('config_stock_warning')), 'reward' => ($product['reward'] ? sprintf($this->language->get('text_points'), $product['reward']) : ''), 'price' => $price, 'total' => $total, 'href' => $this->url->link('product/product', 'product_id=' . $product['product_id']) ); if (isset($this->request->post['shop'])) $product['shop'] = $this->request->post['shop']; 
  • What is the choice of shop realized through? Give a link to the site. - Alexander Semikashev

0