[+] Project : default theme added
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
#crossselling h2.productscategory_h2 {
|
||||
margin:40px 0 20px 0;
|
||||
padding:10px 0;
|
||||
border-bottom:1px solid #ccc;
|
||||
font-size:18px;
|
||||
color:#333
|
||||
}
|
||||
|
||||
#crossselling ul {list-style-type:none}
|
||||
#crossselling li {
|
||||
float:left;
|
||||
margin-right:25px
|
||||
}
|
||||
#crossselling li a.lnk_img {display:block}
|
||||
#crossselling li a img {border:1px solid #ccc}
|
||||
#crossselling li p.product_name {text-align:center}
|
||||
|
||||
|
||||
/*
|
||||
div#crossselling {
|
||||
padding-top: 10px;
|
||||
clear: both;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
#crossselling {
|
||||
margin: 0 auto 0;
|
||||
height: 170px;
|
||||
width: 100%
|
||||
}
|
||||
#crossselling_noscroll {
|
||||
margin: 0 auto 0;
|
||||
height: 120px;
|
||||
width: 100%
|
||||
}
|
||||
#crossselling_list {
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
width: 96%
|
||||
}
|
||||
#crossselling_list ul {
|
||||
padding-left: 0;
|
||||
list-style-type: none
|
||||
}
|
||||
#crossselling_list li {
|
||||
float: left;
|
||||
margin: 0 3px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
width: 100px;
|
||||
overflow: hidden
|
||||
}
|
||||
#crossselling_list li a { margin: auto }
|
||||
#crossselling_scroll_left,
|
||||
#crossselling_scroll_right {
|
||||
background: url('../../../img/thumbs_left.gif') no-repeat center;
|
||||
text-indent: -3000px;
|
||||
display: block;
|
||||
width: 9px;
|
||||
height: 18px;
|
||||
float: left;
|
||||
margin-top: 30px
|
||||
}
|
||||
#crossselling_scroll_right { background-image: url('../../../img/thumbs_right.gif') }
|
||||
*/
|
||||
@@ -19,7 +19,7 @@
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @version Release: $Revision: 6594 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
@@ -28,25 +28,15 @@
|
||||
<div id="crossselling">
|
||||
<script type="text/javascript">var middle = {$middlePosition_crossselling};</script>
|
||||
<script type="text/javascript" src="{$content_dir}modules/crossselling/js/crossselling.js"></script>
|
||||
<h2 class="productscategory_h2">
|
||||
{if $order}
|
||||
{l s='Customers who bought these products also bought:' mod='crossselling'}
|
||||
{else}
|
||||
{l s='Customers who bought this product also bought:' mod='crossselling'}
|
||||
{/if}
|
||||
</h2>
|
||||
<h2 class="productscategory_h2">{l s='Customers who bought this product also bought:' mod='crossselling'}</h2>
|
||||
<div id="{if count($orderProducts) > 5}crossselling{else}crossselling_noscroll{/if}">
|
||||
{if count($orderProducts) > 5}<a id="crossselling_scroll_left" title="{l s='Previous' mod='crossselling'}" href="javascript:{ldelim}{rdelim}">{l s='Previous' mod='crossselling'}</a>{/if}
|
||||
<div id="crossselling_list">
|
||||
<ul {if count($orderProducts) > 5}style="width: {math equation="width * nbImages" width=107 nbImages=$orderProducts|@count}px"{/if}>
|
||||
<ul class="clearfix">
|
||||
{foreach from=$orderProducts item='orderProduct' name=orderProduct}
|
||||
<li {if count($orderProducts) < 6}style="width: {math equation="width / nbImages" width=94 nbImages=$orderProducts|@count}%"{/if}>
|
||||
<a href="{$orderProduct.link}" title="{$orderProduct.name|htmlspecialchars}">
|
||||
<img src="{$orderProduct.image}" alt="{$orderProduct.name|htmlspecialchars}" />
|
||||
</a><br/>
|
||||
<a href="{$orderProduct.link}" title="{$orderProduct.name|htmlspecialchars}">
|
||||
{$orderProduct.name|truncate:15:'...'|escape:'htmlall':'UTF-8'}
|
||||
</a><br />
|
||||
<li>
|
||||
<a href="{$orderProduct.link}" title="{$orderProduct.name|htmlspecialchars}" class="lnk_img"><img src="{$orderProduct.image}" alt="{$orderProduct.name|htmlspecialchars}" /></a>
|
||||
<p class="product_name"><a href="{$orderProduct.link}" title="{$orderProduct.name|htmlspecialchars}">{$orderProduct.name|truncate:15:'...'|escape:'htmlall':'UTF-8'}</a></p>
|
||||
{if $crossDisplayPrice AND $orderProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
|
||||
<span class="price_display">
|
||||
<span class="price">{convertPrice price=$orderProduct.displayed_price}</span>
|
||||
@@ -54,7 +44,7 @@
|
||||
{else}
|
||||
<br />
|
||||
{/if}
|
||||
<a title="{l s='View' mod='crossselling'}" href="{$orderProduct.link}" class="button_small">{l s='View' mod='crossselling'}</a><br />
|
||||
<!-- <a title="{l s='View' mod='crossselling'}" href="{$orderProduct.link}" class="button_small">{l s='View' mod='crossselling'}</a><br /> -->
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user