Jump to content

Bagaimana membuat katalog tanpa harga?<SOLVED>


sariwangi2008

Recommended Posts

1. Mohon bantuannya, bagaimana cara menampilkan katalog produk tanpa adanya harga...istilahnya cuma dibuat katalog aja.
2. Bagaimana menambah pages/halaman baru, yang nantinya isinya keterangan2 saja...tanpa produk.(seperti home teks editor)
3. Terima kasih untuk bantuannya.

Link to comment
Share on other sites

Kalau menggunakan Prestashop 1.4 sudah support katalog mode, tinggal aktifin.
Kalau diaktifkan, maka semua yang berkaitan dengan Jual beli jadi disable. Seperti harga, keranjang belanja, module-module yang berkaitan dengan aktifitas jual-beli (seperti module: BlockCart, BlockBestSellers, BlockSpecial), bahkan footer-link yang mengarah ke halaman best-sales.php dan prices-drop.php juga di-disable.

Untuk pertanyaan no 2 sudah dijawab tuh ama Bang Tobi

42384_hmcSWJSR3ysuwxTk2fzL_t

Link to comment
Share on other sites

untuk bang tobi slamat kenal... aku kok bikin page baru atau edit salah satu page di tool cms nggak berubah-berubah...yang muncul tetap tulisan aslinya/defaultnya...tolong dong dibantuin solusinya. thanx sblmnya

Link to comment
Share on other sites

untuk bang tobi slamat kenal... aku kok bikin page baru atau edit salah satu page di tool cms nggak berubah-berubah...yang muncul tetap tulisan aslinya/defaultnya...tolong dong dibantuin solusinya. thanx sblmnya


cachenya kali ? coba matiin dulu yg di tab preferences - performance.
Link to comment
Share on other sites

  • 8 months later...
  • 4 weeks later...
  • 4 weeks later...

mau nanya donk..sama kaya yg di atas ane...

 

kalo kita pake katalog mode itu kan harga nya g muncull..

 

nah yang ane mau tanya gmana cara pake katalog mode..tapi harga produk juga muncul..kecuali modul blanja yg lain..

 

jd ane cuma pengen ada produk ma harga aja..

 

thx be4

Link to comment
Share on other sites

Hi, steve87..

 

Anda harusi modifikasi kalau mau menampilkan harga di Catalog Mode.

1. product-list.tpl sekitar line 41

 

{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
<div>
 {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}
 {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if}
</div>
{/if}

 

menjadi:

 

<div>
 {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}
{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
 {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if}
{/if}
</div>

 

2. product.tpl, sekitar line 236

 

  <!-- prices -->
  {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}

 

menjadi:

 

  <!-- prices -->
  {if $product->show_price AND !isset($restricted_country_mode)}

Edited by Zaid (see edit history)
Link to comment
Share on other sites

Jika Anda mengaktifkan fitur Product Compare maka anda juga harus melakukan modifikasi di products-comparison.tpl sekitar line 50:

 

   {if isset($product->show_price) && $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
 <p class="price_container"><span class="price">{convertPrice price=$product->getPrice($taxes_behavior)}</span></p>
 <div class="product_discount">
 {if $product->on_sale}
  <span class="on_sale">{l s='On sale!'}</span>
 {elseif $product->specificPrice AND $product->specificPrice.reduction}
  <span class="discount">{l s='Reduced price!'}</span>
 {/if}
 </div>
 {if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
	  {math equation="pprice / punit_price"  pprice=$product->getPrice($taxes_behavior)  punit_price=$product->unit_price_ratio assign=unit_price}
  <p class="comparison_unit_price">{convertPrice price=$unit_price} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}</p>
 {else}

 {/if}
   {/if}

 

Menjadi:

 

 <p class="price_container"><span class="price">{convertPrice price=$product->getPrice($taxes_behavior)}</span></p>
   {if isset($product->show_price) && $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
 <div class="product_discount">
 {if $product->on_sale}
  <span class="on_sale">{l s='On sale!'}</span>
 {elseif $product->specificPrice AND $product->specificPrice.reduction}
  <span class="discount">{l s='Reduced price!'}</span>
 {/if}
 </div>
 {if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
	  {math equation="pprice / punit_price"  pprice=$product->getPrice($taxes_behavior)  punit_price=$product->unit_price_ratio assign=unit_price}
  <p class="comparison_unit_price">{convertPrice price=$unit_price} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}</p>
 {else}

 {/if}
   {/if}

Link to comment
Share on other sites

udah ane coba..dan ikutin sperti yg agan Zaid bilang..tapi koq msh gak muncul yah harganya??

 

Setiap perubahan file template (.tpl) membutuhkan re-compile smarty. Coba aktifkan 'force compile' smarty (Back Office > Preference > Performance)

Link to comment
Share on other sites

 

Setiap perubahan file template (.tpl) membutuhkan re-compile smarty. Coba aktifkan 'force compile' smarty (Back Office > Preference > Performance)

 

 

Setiap perubahan file template (.tpl) membutuhkan re-compile smarty. Coba aktifkan 'force compile' smarty (Back Office > Preference > Performance)

 

 

Setiap perubahan file template (.tpl) membutuhkan re-compile smarty. Coba aktifkan 'force compile' smarty (Back Office > Preference > Performance)

saya coba dulu ya mas... :-D

Link to comment
Share on other sites

Saya udah edit postingan sebelumnya (#12), sudah saya cek di localhost dan berhasil.

 

Kalau anda ingin menghilangkan tombol add to cart, coba comment out / delete product.tpl sekitar line 364

<p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p>

 

Menjadi

{* <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> *}

Link to comment
Share on other sites

loh koq itu product.tpl nya jd dikit gitu mas yang di edit??

 

saya sudah ikutin lagi kaya gitu..tapi koq g ada perubahan yah mas??

 

harganya tetep g muncull.. apa karena versi prestashop nya beda??

 

saya pake versi 1.4.6.2 saya pake mode catalog

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...