close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Change button image

Thread began 7/30/2015 2:46 pm by anonymous | Last modified 8/06/2015 6:55 pm by Ray Borduin | 410 views | 10 replies |

anonymous

Change button image

I would like to change the look of the "Continue" button on the Checkout page (under the Shipping Address form) to a custom graphic, but when I do, it loses it's functionality.
The original code is this:
<input class="formButton" name="CheckoutWizard_submit" type="submit" id="CheckoutWizard_submit" value="Continue" onClick="clearAllServerErrors('CheckoutWizard_NewFromBlank_Default')" tabindex="12">

And I'm changing it to this:
<input class="formButton" name="CheckoutWizard_submit" type="image" src="../images/cartButtons/continue_btn.png" id="CheckoutWizard_submit" value="Continue" onClick="clearAllServerErrors('CheckoutWizard_NewFromBlank_Default')" tabindex="12">

What am I doing wrong?

Sign in to reply to this post

Ray BorduinWebAssist

Search your php code for anything that refers to: "CheckoutWizard_submit"

Then replace it with "CheckoutWizard_submit_x"

Once you change from a type="submit" to a type="image" it no longer submits as: CheckoutWizard_submit instead two values are submitted CheckoutWizard_submit_x and CheckoutWizard_submit_y based on the position of the image that was clicked to allow image mapping.

Sign in to reply to this post

Mark

I replaced all the the "CheckoutWizard_submit" with "CheckoutWizard_submit_x", but the button still doesn't function properly.

Sign in to reply to this post

Ray BorduinWebAssist

Don't change it in the actual image name="CheckoutWizard_submit" area, just in the server side code.

If you still have issues, please attach a copy of the pages you are working on so I can take a look to make sure everything looks correct.

Sign in to reply to this post

anonymous

Here's the pages I changed.

Sign in to reply to this post

Ray BorduinWebAssist

You will have to make the same change on the confirm.php page as well. Maybe it wasn't updated there? These pages look correct.

Sign in to reply to this post

anonymous

For some reason, it only works when you hit the Continue button twice.

I did not see any instances of "CheckoutWizard_submit" on the confirm page. I will attach that. I will also send login info for the test site in the private message area.

Sign in to reply to this post

Ray BorduinWebAssist

On the confirm.php page you have to replace:
Payment_submit

with:
Payment_submit_x

Sign in to reply to this post

anonymous

OK, did that - but I still have to hit the Continue button twice to make it work.

Sign in to reply to this post

Ray BorduinWebAssist

It appears there is an issue with our ajax.js file that prevents it from working with input type image properly. I fixed the problem on your site.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...