View Single Post
  #5  
Old 01-26-2008, 07:45 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Changing buttons

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")
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote