Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Changing buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-10-2008, 05:37 PM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Changing buttons

On the cart.php page and othe pages aswell I want to use my existing buttons (e.g) add to cart and wishlist - for the lbl_'s delete_item, edit_options, update, and clear cart.

How do I implement the code so it will pick up the button.tpl for each label that I want to use it for. I hope that this has not confused everyone, I thought it would be the same code for each lbl I want to change.

{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart style="button" href="cart.php?mode=clear_cart"}

I entered this but it does not change anthing. Also I will need to remove the go.gif buttons but on the wysiwyg editor I cannot see the code for removing them.

Many Thanks
__________________
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 01-11-2008, 07:55 PM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Re: Changing buttons

Have I confused everyone? Can somebody help please!!
__________________
X-Cart Version 4.1.9
Reply With Quote
  #3  
Old 01-12-2008, 09:11 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Changing buttons

Your question is confusing. I can't tell exactly what you are trying to do, but maybe this thread will help you?
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #4  
Old 01-13-2008, 04:37 AM
 
antonywalsh antonywalsh is offline
 

Member
  
Join Date: Dec 2007
Posts: 27
 

Default Re: Changing buttons

Ok I will try and simplify it.

On the cart page which shows the products in the cart there are labels on the page for the following :-

Delete item
Edit options
Update
Clear cart

I want to change these labels to buttons. Not new buttons but using my existing buttons. Because I will be having buttons there instead of labels I will no longer need the go.gif button there so I can take that away.

So really to simplify it I want to change a label to a button.

Many Thanks
__________________
X-Cart Version 4.1.9
Reply With Quote
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:52 AM.

   

 
X-Cart forums © 2001-2020