Доброго времени суток прошу помочь в одном деле, нужно через тег exp:reeposition вывести имя каталога, ниже приведен код но он не работает, подскажи что не так.
(вывести имя каталога нужно вы данной строке ( <h2>eeclub.ru/?URL=%2Fcatalog%2F%7Bcategory_url_title%7D%2F]{reeposition:item group=“probnik”}{category_name}{reeposition:item}))
(вывести имя каталога нужно вы данной строке ( <h2>eeclub.ru/?URL=%2Fcatalog%2F%7Bcategory_url_title%7D%2F]{reeposition:item group=“probnik”}{category_name}{reeposition:item}))
Код |
---|
<html ><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> {embed="index/.header"} <div class="main"> <div class="col-main"> [removed] var optionsPrice = new Product.OptionsPrice([] [removed] <div class="mt-products-list"><div class="mt-prolist-title"> <h2> {if segment_1 == ""} Хиты продаж {/if} {if segment_1 != "" AND segment_2 == ""} Каталог {/if} {if segment_2 != "" AND segment_3 == ""} {reepositionut_group group="two_in"} {/if} {if segment_3 != ""} {reepositionut_group group="nulled"} {/if} </h2> </div> <div class="mt-category-products"> {if segment_2 == ""} {exp:reeposition} {exp:weblog:categories weblog="hit_tov"} <h2><a href="/catalog/{category_url_title}/">{reeposition:item group="probnik"}{category_name}{reeposition:item}</url> </h2> <a href="/catalog/{category_url_title}/"><img src="{category_image}" title="{category_name}" alt="{category_name}" /></url> <p> {category_description} </p> {/exp:weblog:categories} {/exp:reeposition} {/if} {if segment_3 == ""}{exp:reeposition} <ul class="mt-products-grid first"> {exp:weblog:categories weblog="hit_tov" style="linear" show_empty="no" disable="category_fields" category_url_title="{segment_2}"} {if category_url_title == "{segment_2}"} <h1>{category_name}</h1>< > {exp:weblog:entries weblog="hit_tov" category="{category_id}" dynamic="off" disable="pagination|category_fields|member_data|trackbacks" allow_comments="y"} {if count < "4"} <li class="item2 first"> {exp:imgsizer:size src="{foto_tov}" title="{title}" alt="{title}" width="200" quality="80" } <h2 class="product-name"><a href="/catalog/{category_url_title}/{url_title}/" title="{title}">{title}</url></h2> <div class="ratings"></div> <div class="price-box"> <span class="mt-price">Цена: </span> <span class="regular-price" id="product-price-16"> <span class="price">{price_tov}</span></span></div> <div class="mt-actions"> <button type="button" title="Подробнее" class="button btn-detail"><span><span>{if opis_tov} <a href="/catalog/{category_url_title}/{url_title}/">Подробнее</url>{/if}</span></span></button></div></*> {/if} {if count >= "4"} <li class="item2 first"> {exp:imgsizer:size src="{foto_tov}" title="{title}" alt="{title}" width="200" quality="80" } <h2 class="product-name"><a href="/catalog/{category_url_title}/{url_title}/" title="{title}">{title}</url></h2> <div class="ratings"></div> <div class="price-box"> <span class="mt-price">Цена: </span> <span class="regular-price" id="product-price-16"> <span class="price">{price_tov}</span></span></div> <div class="mt-actions"> <button type="button" title="Подробнее" class="button btn-detail"><span><span>{if opis_tov} <a href="/catalog/{category_url_title}/{url_title}/">Подробнее</url>{/if}</span></span></button></div></*> {/if} {/exp:weblog:entries} {/if} {/exp:weblog:categories}</list > <ul class="mt-products-grid"> {reepositionut_group group="two_row"} </list > {/exp:reeposition} {/if} {if segment_3 != ""} {exp:weblog:entries weblog="hit_tov" url_title="{segment_3}" disable="pagination|category_fields|member_data|trackbacks"} <div class="product-view"> <div class="product-view"> <div class="product-essential"> <div class="no-display"> <input type="hidden" name="product" value="16"> <input type="hidden" name="related_product" id="related-products-field" value=""> </div> <div class="product-shop"> <div class="product-name"> <h1>{title}</h1> </div> < > <p class="availability in-stock"><b>Наличие:</b> {nalic}</p> <div class="price-box"> <span class="mt-price">Цена: </span> <span class="regular-price" id="product-price-16"> <span class="price">{price_tov}</span> </span> </div> <div class="short-description"> <h2>Описание</h2> < > <div>{opis_tov}</div> </div> </div> <div class="product-img-box"> <p> <a href="{foto_tov}" class="mt-a-lighbox" rel="lightbox[rotation]"></url> <div id="wrap" style="top:0px;z-index:99;position:relative;"><a href="{foto_tov}" class="cloud-zoom" id="mt-zoom1" style="position: relative; display: block; " rel="adjustX:10, adjustY:-2, zoomWidth:300, zoomHeight:300"> {exp:imgsizer:size src="{foto_tov}" title="{title}" alt="{title}" width="200" quality="80" } </url><div class="mousetrap" style="background-color: rgb(255, 255, 255); opacity: 0; z-index: 99; position: absolute; width: 2px; height: 2px; left: 0px; top: 0px; cursor: move; background-position: initial initial; background-repeat: initial initial; "></div></div> [removed] $jqs(".product-view .product-img-box .product-image-zoom".css("overflow","visible"; [removed] </p> <div class="mt-more-images"> <div class="more-views"> <h2>Модели</h2> <div> <button class="prev"> < </button> <button class="next"> > </button> <div class="anyClass"> <list > <*><img src="{foto_tov}" alt="" width="55" height="50" ></*> <*><img src="{foto_tov}" alt="" width="55" height="50" ></*> <*><img src="{foto_tov}" alt="" width="55" height="50" ></*> <*><img src="{foto_tov}" alt="" width="55" height="50" ></*> </list > </div> </div> <!-- thumbnail for lighbox--> <ul class="mt-thumb-light" style="display:none;"> <*> <a href="" rel="lightbox[rotation]" title="{title}"></url> </*> <*> <a href="" rel="lightbox[rotation]" title="{title}"></url> </*> <*> <a href="" rel="lightbox[rotation]" title="{title}"></url> </*> <*> <a href="" rel="lightbox[rotation]" title="{title}"></url> </*> <*> <a href="" rel="lightbox[rotation]" title="{title}"></url> </*> </list > <!--##########--> </div> <span class="prev" style="top: 32px; "> </span> <span class="next" style="top: 32px; "> </span> </div> </div> <div class="clearer"></div> </form> [removed] //<![CDATA[ var productAddToCartForm = new VarienForm('product_addtocart_form'); productAddToCartForm.submit = function(button, url) { if (this.validator.validate()) { var form = this.form; var oldUrl = form.action; if (url) { form.action = url; } var e = null; try { this.form.submit(); } catch (e) { } this.form.action = oldUrl; if (e) { throw e; } if (button && button != 'undefined') { button.disabled = true; } } }.bind(productAddToCartForm); productAddToCartForm.submitLight = function(button, url){ if(this.validator) { var nv = Validation.methods; delete Validation.methods['required-entry']; delete Validation.methods['validate-one-required']; delete Validation.methods['validate-one-required-by-name']; if (this.validator.validate()) { if (url) { this.form.action = url; } this.form.submit(); } Object.extend(Validation.methods, nv); } }.bind(productAddToCartForm); //]]> [removed] </div> </div> </div> {/exp:weblog:entries} {/if} </div></div> </div> {embed="index/.left"} </div></div> </div> </div> {embed="index/.footer"} |
Изменено:
ruslan nerubian - 13 Июля 2012 08:14