問題描述
我正在嘗試設(shè)置 OpenCart 的樣式,但是我很難找到哪個 TPL 文件包含當(dāng)您單擊標(biāo)題中的購物車圖標(biāo)時出現(xiàn)的 div(向下滑動的迷你購物車" - 它允許您查看您的購物車而不去購物車頁面).
有誰知道我在哪里可以找到包含這個 div 的 .tpl 文件(在默認(rèn)結(jié)構(gòu)模板中)?謝謝
為什么人們不給你投票?
#content
DIV 位于 #cart
DIV 中 - 您應(yīng)該搜索過這個.
打開/catalog/view/theme/default/template/common/header.tpl
購物車標(biāo)題在 echo
查看代碼視圖/catalog/view/theme/default/template/module/cart.tpl(v1.5.3.1版本)
該部分位于 .mini-cart-info 類的頂部.以下部分代碼片段的示例:
<div class="heading"><h4><?php echo $heading_title;?></h4><a><span id="cart-total"><?php echo $text_items;?></span></a></div><div class="內(nèi)容"><?php if ($products || $vouchers) { ?><div class="mini-cart-info"><表格><?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>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).
Does anyone know where I can find the .tpl file that has this div (in the default structure template)? Thanks
解決方案 Why did people downvote you?
The #content
DIV sits within the #cart
DIV - you should have searched this.
Open /catalog/view/theme/default/template/common/header.tpl
The cart header is in the echo
<?php echo $cart; ?>
To see the code view /catalog/view/theme/default/template/module/cart.tpl (in version v1.5.3.1)
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>
這篇關(guān)于OpenCart:下拉標(biāo)題購物車信息的 div 在哪里?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!