Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Отображение товаров в корзине


Recommended Posts

Подскажите как сгделать отображение в корзине по типу

В корзине Х товаровна сумму xxx руб"Кнопка перехода в корзину"
Link to comment
Share on other sites


  • 1 month later...

Хм...Попропотому чтовал полистить cart.php в нужных месих, ик повалил всё...Эт нужно время поиграться

Link to comment
Share on other sites


Нужно поковырять шаблон ггде игдет отображение спотому чтоку на сайте. Врогде згдесь templatemodule если нужно, что то оригинальное вывести то нужно лесть в контролер.

Link to comment
Share on other sites


Сначала усиновил модуль

Потом код шаблона module/card.tpl

<?php if ($products) { ?>    <table cellpadding="2" cellspacing="0" style="width: 100%;">      <?php $i = 0;	  foreach ($products as $product) { 	  $i += $product['quantity'];	  }	  ?>      <tr>        <td valign="top" align="right" width="1"><?php echo 'Товара в корзине: ', $i ?></td>      </tr>      <?php  ?>    </table>        <link rel="stylesheet" type="text/css" href="catalog/view/theme/shop/stylesheet/cart.css" />    <div style="text-align: right;"><?php echo $text_subtotal; ?> <?php echo $subtotal; ?></div>	<div style="text-align: center; margin-top: 10px; float:left;"><a href="<?php echo $cart; ?>" class="cartbutton" style="text-decoration: none;"><span><?php echo $text_cart; ?></span></a></div>    <div style="text-align: center; margin-top: 10px; float:right;"><a href="<?php echo $checkout; ?>" class="cartbutton" style="text-decoration: none;"><span><?php echo $text_checkout; ?></span></a></div>    <div class="clear"></div><!-- Add more or remove  to adjust bottom of box. -->    <?php } else { ?>	<table cellpadding="2" cellspacing="0" style="width: 100%;">	<?php $i = 0;	  foreach ($products as $product) { 	  $i += $product['quantity'];	  }	  ?>      <tr>        <td valign="top" align="right" width="1"><?php echo 'Товара в корзине: 0' ?></td>      </tr>      <?php  ?>    </table>        <link rel="stylesheet" type="text/css" href="catalog/view/theme/shop/stylesheet/cart.css" />    <div style="text-align: right;"><?php echo $text_subtotal; ?> <?php echo $subtotal; ?></div>	<div style="text-align: center; margin-top: 10px; float:left;"><a href="<?php echo $cart; ?>" class="cartbutton" style="text-decoration: none;"><span><?php echo $text_cart; ?></span></a></div>    <div style="text-align: center; margin-top: 10px; float:right;"><a href="<?php echo $checkout; ?>" class="cartbutton" style="text-decoration: none;"><span><?php echo $text_checkout; ?></span></a></div>    <div class="clear"></div><!-- Add more or remove  to adjust bottom of box. -->        <?php } ?>  </div>    <div class="bottom"> </div></div>

Ну а осильное по вкусу. Главное рилииет. http://galereya-vkusa.ru/'>Пример

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.