Jump to content

(Solved) Cara menghilangkan tombol tambah ke troli, dan fungsi Shoping Cartnya


myblackshop

Recommended Posts

Salam buat para prestashopers smua,

Dulu nubie sempet membaca di forum ini dan sudah pernah dibahas soal ini sebelumnya waktu blum naek kelas, kok dah hilang yah, saya dah bolak-balik buka sampe hal 13 gak ada lagi. klo gak salah pernah dikupas tuntas oleh bro daryl klo gak salah, sy gak sempet copy artikelnya.

Saya ingin menghilangkan tombol tambah ke troli, jadi cuma ada tombol lihat saja, dikarenakan produk yang akan dijual nanti itu stok berubah2, dikarenakan nubie tidak stok barang.

Istilahnya klo ada yang mau order konfirmasi dulu ke nubie mengenai stoknya, jadi fungsi cartnya juga harus dihilangkan
ada yang bisa bantu nubie tx?

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Sory cuma copas dari forum yg bhs ingggris, jgn lupa backup dulu file2nya

in product.tpl :
file /themes/yourtheme/product.tpl, comment or delete line 225

quantity == 0} 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>
In the home features :
file /modules/homefeatured/homefeatured.tpl, comment or delete lines 21 to 25
{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2}
{l s='Add to cart' mod='homefeatured'}
{else}
{l s='Add to cart' mod='homefeatured'}
{/if}



Finally, in all lists of products :
file /themes/yourtheme/product-list.tpl, comment or delete lines 20 to 24
{if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}
{else}
{l s='Add to cart'}
{/if}

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...