View Single Post
  #17  
Old 11-26-2007, 04:40 PM
 
Wedji Wedji is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 57
 

Thumbs up Re: Editing Buttons in 4.0

This has just worked beautifully for me - did it with the Update button so I could follow your example precisely being pretty much out of my depth with coding myself! Now to tackle the rest of my buttons!

Thank you very VERY much for taking the time to post that Mr. dhirsch!



If I may add from my own experience there, your last bit about calling an include in cart.tpl caused a bit of a headscratch for a novice here, so to clarify for those who follow;

Once you've done the above steps, edit skin1/customer/main/cart.tpl

find this line:
Quote:
<td class="ButtonsRow">{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}</td>

...and change "update.tpl" to "update_qty.tpl"

You should now see your new image and no text, but still behaving exactly as it did before the editing.

Cheers dhirsch!

JD
__________________
X-Cart Gold V4.6.3
No modifications except minor template tweaks for layout.
Reply With Quote