Oct 26, 2014

Menampilkan Harga Price: Call / Call Us di Prestashop

7:45 PM

Pada kesempatan kali ini kami ingin berbagi mengenai tutorial mengubah Harga "0" menjadi harga "Call Us/Price Call" hal ini bertujuan agar harga yang diset 0 bisa memberikan informasi pada pelangan agar segera menghubungi kontak Cs Toko Online Anda untuk menanyakan harga. dalam kesempatan ini, yang akan saya bahas dan diubah adalah halaman produk list dan produk detail. karena biasanya halaman home tidak menggunakan module yang sama, jadi nanti bisa disamakan saja :D.

Langkah-langkahnya :
1. Masuk ke folder Themes - Nama-themes-anda- Product-list.tpl (edit dengan notepad dsb)
2. Temukan kode berikut dalam file produt-list.tpl
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if}
          Ganti dengan kode berikut:
{if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p><span class="price">{if ($product.price == 0)}Price: Call!{else}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if} {if isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span style="color: red;"><span style=" text-decoration: line-through;color: red; padding-left: 5px; font-size: 13px;">{convertPrice price=$product.price_without_reduction}</span></span>{/if}</span></p>{else}<div style="height:21px;"></div>{/if}
          Setelah diganti, save data dan lihat perubahannya di dalam front office Toko Online anda

3. Masih dalam folder themes - nama-themes-anda. masuk ke product.tpl (edit dengan notepad dsb)
4. Temukan kode berikut dalam file product.tpl
<p class="our_price_display">
                {if $priceDisplay >= 0 && $priceDisplay <= 2}
                    <span id="our_price_display">{convertPrice price=$productPrice}</span>
                    <!--{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
                        {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
                    {/if}-->
                {/if}
                </p>
Ganti dengan kode berikut:
<span class="our_price_display">
                {if ($product->getPrice(true, NULL, 2) == 0)}
                Price: Call! {else}
                    {if $priceDisplay >= 0 && $priceDisplay <= 2}
                        <span id="our_price_display">{convertPrice price=$productPrice}</span>
                            {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
                                {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
                            {/if}
                    {/if}
                    {/if}
                    </span>

Ok, setelah selesai, lihat pada bagian front office, jika sudah berubah Anda sudah berhasil mempraktekannya.. selamat mencoba ^_^

Di tulis oleh

Terimakasih sudah berkungjung di Blog kami, semoga informasi yang kami berikan bermanfaat untuk anda.

0 komentar:

Post a Comment

 

© 2013 Tutorial Prestashop dan Artikel Bisnis Online . All rights resevered. Templateism

Back To Top