Добрый день, Гость! Представляем Вам наши форумы. Вы можете зарегистрироваться чтобы писать на форумах или зайдите под своим именем, если Вы уже регистрировались.
   
   


Форум
 SX CMS / Баги и ошибки
         Замечания касаемо "Магазин"

Похожие темы

Замечания касаемо "Магазин"


События Вторник, 29.12.2009, 19:10

Odyssey

Группа: Пользователь
Ранг: Мастер
Cообщений: 574
Регистрация: 29.10.2009
вот по аналогии с shop_start_topseller.tpl переделал page_extern_products_new_extended.tpl, но что-то не выходит каменный цветок
PHP-код
{if $extern_topseller_array}
<
script type="text/javascript">
$(function() {
ldelim}
     $(
'#container-topsellers ul.rounded').tabs();
{
rdelim});
$(
document).ready(function()
{
ldelim}
$(
'div.topseller_in_shop').toggleElements({ldelim}fxAnimation:'false'fxSpeed:'normal'className:'toggler',onClick:TopSellerInShopCloser,onHide:TopSellerInShopOpener{rdelim} );
{
rdelim});
function 
TopSellerInShopOpener() {ldelim}$.cookie('topseller_in_shop','opened', {ldelim}expires30,path'{$cookiepath}'{rdelim});{rdelim}
function 
TopSellerInShopCloser() {ldelim}$.cookie('topseller_in_shop''', {ldelim}expires30,path'{$cookiepath}'{rdelim});{rdelim}
</
script>
<
div class="opener">
<
div class="topseller_in_shop{if $smarty.cookies.topseller_in_shop=='opened'}{else} opened{/if}" title="&lt;h3&gt;{#Shop_Topseller#}&lt;/h3&gt;">
<
div id="container-topsellers">
<
ul class="rounded">
{foreach 
from=$extern_topseller_array item=p name=topsellers}
{
assign var=count2 value=$count2+1}
{if 
$count2 $newest_colums==&& !$smarty.foreach.topsellers.last || ($smarty.foreach.topsellers.first)}
{
assign var=nc value=$nc+1}
<
li><a href="#topsellers-{$nc}"><span>{#Shop_artpage#} {$nc}</span></a></li>
{/if}
{/foreach}
</
ul>
<
div class="clear"></div>
<
div id="topsellers-1" class="ui-tabs-panel-content">
<
table width="100%" cellpadding="0" cellspacing="0">
<
tr
{foreach 
from=$extern_topseller_array item=p name=topsellers}
{
assign var=count_split value=$count_split+1}
{if 
$count_split $newest_colums==&& !$smarty.foreach.topsellers.last || ($smarty.foreach.topsellers.first)}
{
assign var=div_split value=$div_split+1}
{/if}
{
assign var=count value=$count+1}
<
td style="width:{$colums_width}%">
<
div class="shop_newest_boxes">
<
div class="{if $count % $newest_colums==0}shop_newest_first{else}shop_newest_second{/if}" {if $count $newest_colums}style="border-top:0px"{/if}>
<
div class="shop_product_text">
<
div class="shop_image_newstart">
<
a title="{$p.Titel|sysspecialchars} - {$p.Beschreibung|striptags|sysspecialchars|truncate:150}href="{$p.ProdLink}"><img src="{$p.Bild_Mittel}alt="{$p.Titel|sysspecialchars}border="0" /></a>
</
div>
<
div class="shop_product_title_new">
<
a  title="{$p.Titel|sysspecialchars}  - {$p.Beschreibung|striptags|sysspecialchars|truncate:150}href="{$p.ProdLink}">{$p.Titel|sysspecialchars|truncate:25}</a>
</
div>
<!-- <
div class="shop_articlenumber">{#Shop_ArticleNumber#}: {$p.Artikelnummer}</div> -->
<!-- {$p.Beschreibung|truncate:150|stripslashes} -->

</
div>
<
div class="shop_price_detail_footer"
{
#Arrow#}<a title="{$p.Titel|sysspecialchars}" href="{$p.ProdLink}">{#Shop_moreInfo#}</a>
<br />
{if 
$p.Preis_Liste != $p.Preis}
{
#Shop_instead#}&nbsp;&nbsp;<span class="shop_price_old">{$p.Preis_Liste|numformat} {$currency_symbol}</span> 
<br/>
{else} 
<
br />
{/if}
{if 
$p.Vars}
{
#Shop_priceFrom#}
{/if}
{if 
$show_price_images==1
<
br />
{
$p.Preis|imgsrt}{$currency_symbol|imgletter}
<
br />
{else} 
<
span class="shop_price">{$p.Preis|numformat} {$currency_symbol} *</span
{/if}
{if 
$no_nettodisplay!=1}
{if 
$price_onlynetto != 1
<
br />
<
div class="shop_subtext"
{if 
$shopsettings->NettoKlein==1}
{
#Shop_netto#} {$p.netto_price|numformat} {$currency_symbol} 
<br />
{/if}
{include 
file="$incpath/shop/tax_inf_small.tpl"
</
div>
{/if}
{if 
$price_onlynetto == && $p.price_ust_ex != ''}
<
br />
<
div class="shop_subtext">
{include 
file="$incpath/shop/tax_inf_small.tpl"}
</
div>
{/if}
{/if}
</
div>
</
div>
</
div>
</
td>
{if 
$count $newest_colums==&& !$smarty.foreach.topsellers.last
</
tr>
</
table>
</
div>
<
div id="topsellers-{$div_split}">
<
table width="100%" cellpadding="0" cellspacing="0">
<
tr
{else}
{/if}
{/foreach} 
</
tr>
</
table>
</
div>
</
div>
</
div>
</
div>
{/if}



p.s. в shop_start_topseller.tpl используется class="topseller_inshop" но его походу заменили на class="topseller_in_shop"

Пользователь офлайн


Похожие темы  |   Предыдущая тема  |   Следующая тема

Быстрый переход:  
 

 Сейчас на сайте

Пользователей: 0, Гостей: 6

Поисковые боты: 171
Bot(143), oBot(19), BingBot(6), Googlebot(3)
 Статистика форума

  Темы Сообщения Пользователи
За сутки:
За неделю:
За месяц:
Всего:
Мы приветствуем нового участника: wonad81290
 Дни рождения

Voltronix (47), ptaha (43), Sasha (40)
Copyright © 2009 - 2024 SX All rights reserved | Powered by SX CMS 1.06 UTF | Контакты