X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing buttons (https://forum.x-cart.com/showthread.php?t=36674)

antonywalsh 01-10-2008 05:37 PM

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

antonywalsh 01-11-2008 07:55 PM

Re: Changing buttons
 
Have I confused everyone? Can somebody help please!!

gb2world 01-12-2008 09:11 PM

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?

antonywalsh 01-13-2008 04:37 AM

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

SpinyMan 01-26-2008 07:45 AM

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")


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.