OpenCart:下拉列表购物车信息的div在哪里? [英] OpenCart: Where is the div for the drop down header cart info?
问题描述
我正在尝试打开OpenCart,但难以找到哪个TPL文件保存了您点击标题中的购物车图标时显示的div(迷你购物车可以向下滑动 - 它允许您查看您的没有去购物车页面的购物车)。
I am trying to style OpenCart but am having difficulty finding which TPL file holds the div that appears when you click the Shopping Cart icon in the header (the 'mini cart' that slides down - it allows you to view what's in your cart without going to the cart page).
有谁知道在哪里可以找到具有此div的.tpl文件(在默认结构模板中)?谢谢
Does anyone know where I can find the .tpl file that has this div (in the default structure template)? Thanks
推荐答案
为什么人们拒绝你?
内容
DIV位于 #cart
DIV中 - 您应该已经搜索过。
The #content
DIV sits within the #cart
DIV - you should have searched this.
打开 /catalog/view/theme/default/template/common/header.tpl
购物车标题位于 echo
<?php echo $cart; ?>
查看代码视图 / catalog / view / theme / default / template / module / cart.tpl (版本v1.5.3.1)
To see the code view /catalog/view/theme/default/template/module/cart.tpl (in version v1.5.3.1)
该部分位于 .mini-cart-info 类。下面的一些代码片段的示例:
The section is in the top within .mini-cart-info class. Example from some of the code snippet below:
<div id="cart">
<div class="heading">
<h4><?php echo $heading_title; ?></h4>
<a><span id="cart-total"><?php echo $text_items; ?></span></a></div>
<div class="content">
<?php if ($products || $vouchers) { ?>
<div class="mini-cart-info">
<table>
<?php foreach ($products as $product) { ?>
<tr>
<td class="image"><?php if ($product['thumb']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
<?php } ?></td>
<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<div>
这篇关于OpenCart:下拉列表购物车信息的div在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!