Quote:
Originally Posted by antonywalsh
Delete item
Edit options
Update
Clear cart
I want to change these labels to buttons.
|
Hi,
open "customer/main/cart.tpl" file.
find
Quote:
{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&productindex=`$prod ucts[product].cartid`"}
|
and replace with
Quote:
{include file="buttons/delete_item.tpl" style="button" href="cart.php?mode=delete&productindex=`$prod ucts[product].cartid`"}
|
find
Quote:
{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}
|
and replace with
Quote:
{include file="buttons/update.tpl" style="button" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}
|
find
Quote:
{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
|
and replace with
Quote:
{include file="buttons/button.tpl" style="button" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
|
open "buttons/edit_product_options.tpl" file.
find
Quote:
{include file="buttons/button.tpl" button_title=$lng.lbl_edit_options href="javascript: openPopupPOptions('`$target`', '`$id`');" target=""}
|
and replace with
Quote:
{include file="buttons/button.tpl" style="button" button_title=$lng.lbl_edit_options href="javascript: openPopupPOptions('`$target`', '`$id`');" target=""}
|
for the future - {include file="buttons/button.tpl"
style="button"} - makes a button
if nothing will happend, clear the smarty cache OR check your file "buttons/button.tpl" (may be it was modified, so u couldn't use tag "style")