

Вид корзины

#21
Отправлено 04 October 2017 - 10:05
Дружище подскажи поподробнее куда ты вставил вторую часть кода? Хочу чтобы как у тебя на сайте было так же
/templates/yoo_master2/css/custom.css
JBZoo чат /
Разработка Joomla расширений и т.д.! / Рекомендую хостинг Joomla
Joomla расширение для Яндекс Турбо и Яндекс Дзен - помощь в настройке
#22
Отправлено 04 October 2017 - 10:14
можете inline вставить в шаблон
<style>код</style>
Пожалуйста, опишите подробнее что сделать? Где находится файл inline?
#23
Отправлено 04 October 2017 - 10:16
inline = тупо в HTML вписать код - в Ваш шаблон, модуль, страницу...
Ваш нужный файл:
/templates/yoo_master2/css/custom.css
JBZoo чат /
Разработка Joomla расширений и т.д.! / Рекомендую хостинг Joomla
Joomla расширение для Яндекс Турбо и Яндекс Дзен - помощь в настройке
#24
Отправлено 04 October 2017 - 10:32
inline = тупо в HTML вписать код - в Ваш шаблон, модуль, страницу...
Ваш нужный файл:
/templates/yoo_master2/css/custom.css
Я понял что в CSS шаблона нужно добавить код. Проблема, где взять этот код?, сам написать его я точно не смогу.
Прошу сильно не ругать, я любитель в сайтостроении, просто понравился внешний вид модуля, я создал PHP файл с кодом первой части, вставил по указанному адресу, добавил вторую часть кода в CSS шаблона сайта. В админке, в модуле корзины изменил шаблон корзины на добавленный. Не сработало(((.
В итоге выглядит вот так:
#25
Отправлено 04 October 2017 - 10:40
CSS вроде как верно вставили - а вот на странице нет дива и прочего.
Проверьте корректность вставки кода:
<?php /** * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component * @package jbzoo * @version 2.x Pro * @author JBZoo App http://jbzoo.com * @copyright Copyright (C) JBZoo.com, All rights reserved. * @license http://jbzoo.com/license-pro.php JBZoo Licence * @coder Denis Smetannikov <denis@jbzoo.com> */ // no direct access defined('_JEXEC') or die('Restricted access'); $cart = JBCart::getInstance(); $order = $modHelper->getOrder(); $currency = $modHelper->getCurrency(); $items = $modHelper->getBasketItems(array( 'class' => array( 'image' => 'uk-thumbnail' ) )); ?> <div class="jbzoo jbcart-module jsJBZooCartModule" id="<?php echo $modHelper->getModuleId(); ?>"> <div class="cartmodtop"><i class="uk-icon-shopping-cart"></i></div> <?php if (empty($items)) : ?> <div class="jbcart-module-empty clearfix"> <span class="yourcarisemptypllles"><?php echo JText::_('JBZOO_CART_MODULE_EMPTY'); ?></span> </div> <?php else: ?> <?php if ((int)$params->get('jbcart_items', 1)) : ?> <div class="jbcart-module-items"> <?php foreach ($items as $itemKey => $cartItem) : $attrs = array( 'data-key' => $itemKey, 'data-jbprice' => $cart->get($itemKey . '.element_id') . '-' . $cart->get($itemKey . '.item_id'), 'class' => array( $itemKey, 'jsCartItem', 'jbcart-module-item', 'clearfix' ), ); ?> <div <?php echo $modHelper->attrs($attrs);?>> <?php if ((int)$params->get('jbcart_item_delete', 1)) : ?> <span class="uk-button uk-button-danger uk-button-small round jsDelete jbcart-item-delete"> <i class="uk-icon-trash-o"></i> </span> <?php endif; ?> <?php if ((int)$params->get('jbcart_item_image', 1)) { echo $cartItem['image']; } ?> <?php echo $cartItem['name']; ?> <?php if ((int)$params->get('jbcart_item_price', 1)) : ?> <div class="jbcart-item-price"> <?php echo $cartItem['price4one']; ?> <?php if ((int)$params->get('jbcart_item_quantity', 1)) : ?> <span class="jbcart-item-price-multiple">x</span> <?php echo $cartItem['quantity']; ?> <?php endif; ?> </div> <?php elseif ((int)$params->get('jbcart_item_quantity', 1)): ?> <?php echo $cartItem['quantity']; ?> <?php endif; ?> <?php if ((int)$params->get('jbcart_item_total', 1)) { echo $cartItem['totalsum']; } ?> <?php if ((int)$params->get('jbcart_item_params', 1)) { echo $cartItem['params']; } ?> </div> <?php endforeach; ?> </div> <?php endif; ?> <?php if ((int)$params->get('jbcart_count_items', 1)) : ?> <div class="jbcart-module-line"> <span class="jbcart-module-total-items circle"> <?php echo $order->getTotalCount(); ?> </span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_count_sku', 1)) : ?> <div class="jbcart-module-line"> <?php echo JText::_('JBZOO_CART_MODULE_TOTAL_SKU'); ?>: <span class="jbcart-module-total-items"> <?php echo $order->getTotalCountSku() . ' ' . JText::_('JBZOO_CART_COUNT_ABR'); ?> </span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_totalsum', 1)) : ?> <div class="jbcart-module-line"> <span class="jbcart-module-total-value"><?php echo $order->getTotalSum()->html($currency); ?> руб.</span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_button_empty', 1) || (int)$params->get('jbcart_button_gotocart', 1)) : ?> <div class="jbcart-module-buttons clearfix"> <?php if ((int)$params->get('jbcart_button_empty', 1)): ?> <span class="uk-button uk-button-danger jbcart-module-empty jsEmptyCart"> <i class="uk-icon-shopping-cart"></i> <span class="yourcarisemptypllles"> <?php echo JText::_('JBZOO_CART_MODULE_EMPTY_BUTTON'); ?> </span> </span> <?php endif ?> <?php if ((int)$params->get('jbcart_button_gotocart', 1)): ?> <a rel="nofollow" class="gocartgogreenmodtop jbcart-module-gotocart" href="<?php echo $modHelper->getBasketUrl(); ?>"> <span>Оформить заказ</span> </a> <?php endif ?> </div> <?php endif ?> <?php endif; ?> </div>
JBZoo чат /
Разработка Joomla расширений и т.д.! / Рекомендую хостинг Joomla
Joomla расширение для Яндекс Турбо и Яндекс Дзен - помощь в настройке
#26
Отправлено 04 October 2017 - 10:58
CSS вроде как верно вставили - а вот на странице нет дива и прочего.
Проверьте корректность вставки кода:
<?php /** * JBZoo App is universal Joomla CCK, application for YooTheme Zoo component * @package jbzoo * @version 2.x Pro * @author JBZoo App http://jbzoo.com * @copyright Copyright (C) JBZoo.com, All rights reserved. * @license http://jbzoo.com/license-pro.php JBZoo Licence * @coder Denis Smetannikov <denis@jbzoo.com> */ // no direct access defined('_JEXEC') or die('Restricted access'); $cart = JBCart::getInstance(); $order = $modHelper->getOrder(); $currency = $modHelper->getCurrency(); $items = $modHelper->getBasketItems(array( 'class' => array( 'image' => 'uk-thumbnail' ) )); ?> <div class="jbzoo jbcart-module jsJBZooCartModule" id="<?php echo $modHelper->getModuleId(); ?>"> <div class="cartmodtop"><i class="uk-icon-shopping-cart"></i></div> <?php if (empty($items)) : ?> <div class="jbcart-module-empty clearfix"> <span class="yourcarisemptypllles"><?php echo JText::_('JBZOO_CART_MODULE_EMPTY'); ?></span> </div> <?php else: ?> <?php if ((int)$params->get('jbcart_items', 1)) : ?> <div class="jbcart-module-items"> <?php foreach ($items as $itemKey => $cartItem) : $attrs = array( 'data-key' => $itemKey, 'data-jbprice' => $cart->get($itemKey . '.element_id') . '-' . $cart->get($itemKey . '.item_id'), 'class' => array( $itemKey, 'jsCartItem', 'jbcart-module-item', 'clearfix' ), ); ?> <div <?php echo $modHelper->attrs($attrs);?>> <?php if ((int)$params->get('jbcart_item_delete', 1)) : ?> <span class="uk-button uk-button-danger uk-button-small round jsDelete jbcart-item-delete"> <i class="uk-icon-trash-o"></i> </span> <?php endif; ?> <?php if ((int)$params->get('jbcart_item_image', 1)) { echo $cartItem['image']; } ?> <?php echo $cartItem['name']; ?> <?php if ((int)$params->get('jbcart_item_price', 1)) : ?> <div class="jbcart-item-price"> <?php echo $cartItem['price4one']; ?> <?php if ((int)$params->get('jbcart_item_quantity', 1)) : ?> <span class="jbcart-item-price-multiple">x</span> <?php echo $cartItem['quantity']; ?> <?php endif; ?> </div> <?php elseif ((int)$params->get('jbcart_item_quantity', 1)): ?> <?php echo $cartItem['quantity']; ?> <?php endif; ?> <?php if ((int)$params->get('jbcart_item_total', 1)) { echo $cartItem['totalsum']; } ?> <?php if ((int)$params->get('jbcart_item_params', 1)) { echo $cartItem['params']; } ?> </div> <?php endforeach; ?> </div> <?php endif; ?> <?php if ((int)$params->get('jbcart_count_items', 1)) : ?> <div class="jbcart-module-line"> <span class="jbcart-module-total-items circle"> <?php echo $order->getTotalCount(); ?> </span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_count_sku', 1)) : ?> <div class="jbcart-module-line"> <?php echo JText::_('JBZOO_CART_MODULE_TOTAL_SKU'); ?>: <span class="jbcart-module-total-items"> <?php echo $order->getTotalCountSku() . ' ' . JText::_('JBZOO_CART_COUNT_ABR'); ?> </span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_totalsum', 1)) : ?> <div class="jbcart-module-line"> <span class="jbcart-module-total-value"><?php echo $order->getTotalSum()->html($currency); ?> руб.</span> </div> <?php endif ?> <?php if ((int)$params->get('jbcart_button_empty', 1) || (int)$params->get('jbcart_button_gotocart', 1)) : ?> <div class="jbcart-module-buttons clearfix"> <?php if ((int)$params->get('jbcart_button_empty', 1)): ?> <span class="uk-button uk-button-danger jbcart-module-empty jsEmptyCart"> <i class="uk-icon-shopping-cart"></i> <span class="yourcarisemptypllles"> <?php echo JText::_('JBZOO_CART_MODULE_EMPTY_BUTTON'); ?> </span> </span> <?php endif ?> <?php if ((int)$params->get('jbcart_button_gotocart', 1)): ?> <a rel="nofollow" class="gocartgogreenmodtop jbcart-module-gotocart" href="<?php echo $modHelper->getBasketUrl(); ?>"> <span>Оформить заказ</span> </a> <?php endif ?> </div> <?php endif ?> <?php endif; ?> </div>
перекопировал код в php, не помогло. наверно имеется конфликт с чем то на сайте. уже и в мазиле проверил
#27
Отправлено 04 October 2017 - 10:59
суть проста - CSS верный, а вот сам код в модуле - или Вы выбрали в модуле не тот шаблон отображения или еще чего... но код в модуле другой.
JBZoo чат /
Разработка Joomla расширений и т.д.! / Рекомендую хостинг Joomla
Joomla расширение для Яндекс Турбо и Яндекс Дзен - помощь в настройке
#28
Отправлено 04 October 2017 - 11:31
шаблон для модуля выбран правильно, при смене шаблонов вид меняется. Откуда подтягивается другой код, не знаю. У меня установлен advancet module manager, может от него что то подтягивает, вроде все отключено в нем, ни каких условий для этого модуля там не выставлено
#29
Отправлено 04 October 2017 - 11:41
нет - возможно у Вас просто переопределен модуль в шаблоне или еще где-то
JBZoo чат /
Разработка Joomla расширений и т.д.! / Рекомендую хостинг Joomla
Joomla расширение для Яндекс Турбо и Яндекс Дзен - помощь в настройке
#30
Отправлено 04 October 2017 - 13:02
вернулся к старому варианту