Neler yeni
Presta-TR

Forumumza kayıt olarak hem destek alabilir hem de destek verebilirsiniz!

Şimdiden aramıza hoş geldiniz.

Fiyat Görüntülemeyi Kaldırmak

metalmilitian

Yeni Üye
Katılım
19 Mar 2009
Mesajlar
62
Tepkime puanı
0
Puanları
0
Merhaba arkadaşlar, ürünlerde görüntülenen fiyat, sepete ekle gibi kısımları kaldırmak istiyorum. Bunu nasıl yapabilirim. Yardımcı olan arkadaşlara şimdiden teşekkür ederim.
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

modules/homefeatured/homefeatured.tpl dosyasından aşağıda görünen kodu;

<a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>
<div>
<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>zuzgl.Versand
<a class="button" href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2}
<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id_product={$product.id_product}&token={$static_token}&add&phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>
{else}
<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>
{/if}
</div>
</li>
{/foreach}

Aşağıdaki kod ile değiştiriniz


<a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>


{/foreach}
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Merhaba;

bahsettiğiniz kısım benim kodlarım arasında mevcut değil.

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block">
<h4>{l s='Featured products' mod='homefeatured'}</h4>
{if isset($products) AND $products}
<div class="block_content">
{assign var='liHeight' value=342}
{assign var='nbItemsPerLine' value=4}
{assign var='nbLi' value=$products|@count}
{assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
{assign var='ulHeight' value=$nbLines*$liHeight}
<ul style="height:{$ulHeight}px;">
{foreach from=$products item=product name=homeFeaturedProducts}
<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">
<h5><a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h5>
<p class="product_desc"><a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></p>
<a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>
<div>
<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>
<a class="button" href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2}
<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id_product={$product.id_product}&token={$static_token}&add&phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>
{else}
<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>
{/if}
</div>
</li>
{/foreach}
</ul>
</div>
{else}
<p>{l s='No featured products' mod='homefeatured'}</p>
{/if}
</div>
<!-- /MODULE Home Featured Products -->
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Gözlerinizmi bozuk :)
kod orda duruyor ya uslu uslu :)
gönderdiğin kodların satır olarak say 24. satır ile 38. satır arasında sana bakıyor :)
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Pardon hocam :) gördüm değitşridim ancak bir değişiklik olmadı hala fiyat, sepete ekle kısımlar duruyor.
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

değiştirdikten sonra kaydettinizmi? dosyayı tekrar ftpnizden download edin değişiklik uygulanmışmı teyid edin.
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Evet kaydettim. Siteye yeniden yükledim. Ancak değişiklik yok hocam.
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

tarayıcının cookiesi boşalt. Çerezleri yani.

Kod görünümü aşağıdaki gibi olacaktır. Kontrol edin.

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block">
<h4>{l s='Featured products' mod='homefeatured'}</h4>
{if isset($products) AND $products}
<div class="block_content">
{assign var='liHeight' value=342}
{assign var='nbItemsPerLine' value=4}
{assign var='nbLi' value=$products|@count}
{assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
{assign var='ulHeight' value=$nbLines*$liHeight}
<ul style="height:{$ulHeight}px;">
{foreach from=$products item=product name=homeFeaturedProducts}
<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">
<h5><a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h5>
<p class="product_desc"><a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></p>
<a href="{$product.link}?phpMyAdmin=98526d0b8b5f8f81f62e93bf38e4e836" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>
{/foreach}
</ul>
</div>
{else}
<p>{l s='No featured products' mod='homefeatured'}</p>
{/if}
</div>
<!-- /MODULE Home Featured Products -->
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Yok hocam malesef değişiklik yok. Homefeutred.tpl de değişiklik yapmadan önce template içindeki productlist.tpl üzerinden kaldırma yapamayı denemiştim. Onunla ilgili olabilirmi ?
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Ekte
homefeatured.tpl
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Bir yerde yanlış yapıyorsun. Ekteki fotoları incele
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Hocam ben anasayfada ürün görüntülemesi yapmıyorum. Genel katagori içersinde ürünlerde fiyat sepete ekle gibi kısımları kaldırmaya çalışıyorum.
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Öyle desene yaf.

Şu an gözüken fiyatlar hangi dosyadan çağırılıyor aklımda değil ancak product.tpl ve ona benzer tpl dosyalarından homefeatured.tp dosyasından kaldırdığın aynı kodları kaldırırsan fiyat ve incele butonu gözükmez.
Themes/temanız/product-list.tpl olması lazım
Kolay gelsin
 
Cvp: Fiyat Görüntülemeyi Kaldırmak

Anladım. Deneyip neticeyi bildireceğim. Yardımınız için teşekkür ederim.
 
Üst Alt