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

One-Page Checkout - Warning user to click APPLY

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 07-18-2012, 10:37 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: One-Page Checkout - Warning user to click APPLY

Try replacing

alert('TEXT HERE');

with

this.showMessage('TEXT HERE', 'W');
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #22  
Old 07-18-2012, 11:02 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: One-Page Checkout - Warning user to click APPLY

Hi Steve,

I gave it a try earlier with the following line:

Quote:
this.showMessage('You must confirm you address details before you can continue with the checkout process. See button below where you enter your name and address (you may need to scroll down).', 'W');

Unfortunately nothing seems to happen when I try to select a shipping method while changing address details (this is one of the circumstances where the popup should appear). The standard alert one does, but not this one.

Cheers

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #23  
Old 07-18-2012, 11:08 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: One-Page Checkout - Warning user to click APPLY

Do this

var _s = this;
$("#opc_shipping_payment").click(function() {
_s.showMessage('You must confirm you address details before you can continue with the checkout process. See button below where you enter your name and address (you may need to scroll down).', 'W');
});
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
welly (07-18-2012)
  #24  
Old 07-18-2012, 11:19 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: One-Page Checkout - Warning user to click APPLY

Thanks Steve, that's cracked it.

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #25  
Old 08-03-2012, 06:07 PM
  Mish's Avatar 
Mish Mish is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 92
 

Default Re: One-Page Checkout - Warning user to click APPLY

Afternoon everyone.
I've now applied a modification which will cause the APPLY button to scroll into view and flash three times when a user clicks on the Email field on the form. This ensures they can see the button!

Open cart.php in the root x-cart directory.

Scroll to the very bottom

Add the following code:

Code:
<script> if ($('.input-email').length == 1) { $('.input-email').click( function() { var offset = $('.update-profile').offset(); offset.left -= 20; offset.top -= 20; $('html, body').animate({ scrollTop: offset.top, scrollLeft: offset.left}); $('.update-profile').fadeOut().fadeIn().fadeOut().fadeIn().fadeOut().fadeIn(); }); } </script>
__________________
X-Cart Gold 4.6.1
Reply With Quote
  #26  
Old 08-15-2012, 05:59 AM
 
Jobananas Jobananas is offline
 

Advanced Member
  
Join Date: Mar 2011
Posts: 55
 

Default Re: One-Page Checkout - Warning user to click APPLY

Thanks for the mod.

Couple of questions for 4.4.4

When a user clicks on an option before hitting apply your popup come up fine in top right hand corner and then goes away. Is there anyway to make it come back again? If you click anywhere on the options again without clicking Apply it never returns.

Also you last part of the mod re flashing apply button we can't get this to work at all. Should it go inside the final ?>
__________________
X-Cart - 4.4.4 (Live)
OPC / On Sale
Power Filter
CDSEO
Linux
Reply With Quote
  #27  
Old 08-20-2012, 07:00 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: One-Page Checkout - Warning user to click APPLY

I'm finding with my one page checkout that when a customer creates a profile and has the "&" character in the Company Field, it creates "&Amp;Amp;" instead of "&".
eg: ABC &Amp;Amp; ABC Pty Ltd instead of ABC & ABC Pty Ltd.

I am not sure whether this error is caused by the particular browser a customer is using, or whether it's tech problem with the store.

I'm hoping someone can assist.
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #28  
Old 08-21-2012, 12:09 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: One-Page Checkout - Warning user to click APPLY

Quote:
Originally Posted by Mish
If people would prefer, I could make it so that the Center and right columns were not visible until the user clicked "APPLY". What do you guys think?

I have done this already. The 2nd and 3rd columns are 40% transparent until they click the apply button which I have changed to say "Proceed to shipping and payment options" which makes it really visible.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #29  
Old 08-22-2012, 02:53 PM
 
Thomastoes Thomastoes is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 33
 

Default Re: One-Page Checkout - Warning user to click APPLY

Philrisk,
If you don't mind, could you give me a little info on how you modded the opacity? and has it been working for your customers running ie8 and earlier?

Thanks!!
__________________
4.4.2
Reply With Quote
  #30  
Old 08-22-2012, 11:56 PM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: One-Page Checkout - Warning user to click APPLY

I have not gone live with this yet as we are doing a complete site rebuild but we have tested in Chrome, Firefox, IE8 & IE9 and all seems to be fine.

Find this file in /skin/common_files/modules/One_Page_Checkout/ajax.checkout.js and replace with either of the attached files. You will need to remove the version number and re-save as a js file.

Then create a css class:

Code:
.inactive {opacity: .3; filter: Alpha(Opacity=30);}

If that doesn't work I will paste in my whole file so you can look through the complete code.
Attached Files
File Type: txt ajax.checkout.451.txt (25.9 KB, 81 views)
File Type: txt ajax.checkout.452.txt (28.8 KB, 89 views)
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 12:35 AM.

   

 
X-Cart forums © 2001-2020