Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

VitUxUi

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

VitUxUi's Achievements

Rookie

Rookie (2/14)

  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Здравствуйте. Есть задачка, вывести количество товара в корзине если человек внес в нее большее количество. template/checkout/cart.twig <span>{{ product.name }}{% if not product.stock %} <span class="text-danger">*** </span> {{ product.stock }} {{ quantity }}} {% endif %}</span> catalog/controller/checkout/cart.php $data['products'][] = array( 'cart_id' => $product['cart_id'], 'thumb' => $image, 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_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']) ); } system/library/cart/cart.php $product_data[] = array( 'cart_id' => $cart['cart_id'], 'product_id' => $product_query->row['product_id'], 'name' => $product_query->row['name'], 'model' => $product_query->row['model'], 'shipping' => $product_query->row['shipping'], 'image' => $product_query->row['image'], 'option' => $option_data, 'download' => $download_data, 'quantity' => $cart['quantity'], 'minimum' => $product_query->row['minimum'], 'subtract' => $product_query->row['subtract'], 'stock' => $stock, 'price' => ($price + $option_price), 'total' => ($price + $option_price) * $cart['quantity'], 'reward' => $reward * $cart['quantity'], 'points' => ($product_query->row['points'] ? ($product_query->row['points'] + $option_points) * $cart['quantity'] : 0), 'tax_class_id' => $product_query->row['tax_class_id'], 'weight' => ($product_query->row['weight'] + $option_weight) * $cart['quantity'], 'weight_class_id' => $product_query->row['weight_class_id'], 'length' => $product_query->row['length'], 'width' => $product_query->row['width'], 'height' => $product_query->row['height'], 'length_class_id' => $product_query->row['length_class_id'], 'recurring' => $recurring ); } else { $this->remove($cart['cart_id']); } } return $product_data; Если вписываю в твиг <span>{{ product.name }}{% if not product.stock %} <span class="text-danger">*** </span>{{ product.quantity }}{% endif %}</span> То выводит колиство внесеных товаров
  2. самое легкое решение 1)отключить oc layered navigation 2)сделать копию catalog/view/theme/твоя_тема/template/extension/module/occategory.twig и переименовать в category.twig 3)переместить с заменой category.twig в твой_сайт/catalog/view/theme/твоя_тема/template/product [email protected]
  3. Обратитесь к хостингу и попросите сменить версию php Для 3020 7.2 Для последней версии 7.3 или 7.4
  4. После вставки видео заходишь в исходный код и видешь <iframe>ссылка на Ютуб width="664"</iframe> приведи к виду <Div class="video-resposive"><iframe>ссылка на Ютуб width="100%"</iframe></div> В css файле темы нужно добавить следующие строки /Catalog/view/themes/твоя тема/stylesheet.css .video-responsive{ position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0; } .video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.