Jump to content

[ASK]Menhilangkan Button_ADD_to_CART


fucktography

Recommended Posts

Mohon bantuanya om Mastah Newbie Mau tanya Nih????

Cara Hilangin semua fitur Cart teruutama hilangin button add to cart (tambahkan ke troli.)...
soalnya saya mau bikin warung dengan pemesanan sms aja... jadi gag memakai shipping dan lain lainn.... pusing ane mendalaminya :)

mohon pencerahanya mastah..
thx thx

Link to comment
Share on other sites

dulu saya pake cara ini, sory copas doang dr catatan kecil saya

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

pada 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}
a class="exclusive ajax" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id;_product={$product.id_product}&token;={$static_token}&add;" title="{l s='Add to cart' mod='homefeatured'}">{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}
a class="button ajax exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$base_dir}cart.php?add&id;_product={$product.id_product|intval}&token;={$static_token}">{l s='Add to cart'}
{else}
{l s='Add to cart'}
{/if}

jangan lupa backup dulu sebelum memodifikasinya

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