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

Is it just me, or...
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 12-08-2013, 09:25 PM
 
kevinrm kevinrm is offline
 

X-Adept
  
Join Date: Aug 2003
Posts: 967
 

Default Is it just me, or...

Having a lot of issues with XP 2.0 frankly. Here's just one. I'm wondering if anyone else who is using 4.6.1 with XP 2.0 could please confirm that I am not losing my marbles.

There is a checkbox on the checkout page which asked, " I want to use this credit card for my future orders in this shop", and below that is a javascrpt link which asks, "Why is this safe?" This is supposed to generate a pop-up and explain why this thing is safe. Well, it doesn't pop-up so I put in a ticket. The tech claims this link does not exist and asks me to clear my cache, cookies, etc, etc. I do that in both Firefox and Safari - the link is still there.

Could anyone else who has this installed please tell me if I'm going crazy, or is this link on your page? I say it is!

LIkewise, the checkbox doesn't seem to be working because to date I do not have one stored credit card on file yet.
Attached Images
File Type: jpg Screenshot-2013-12-09-13.49.jpg (31.3 KB, 22 views)
__________________
X-Cart 5.3.6.4 Live
PHP7.2.22
FPM/FastCGI - enabled
Zend OpCache OFF - Won't work with phar extension in cPanel on
10.3.16-MariaDB
Apache 2.4.34
CENTOS 6.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #2  
Old 12-09-2013, 02:12 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: Is it just me, or...

I've never been to your site before and I do confirm there is no the link in your checkout routine:
See Mac FireFox screen shot at http://awesomescreenshot.com/09c22ejz2e
Mac Chrome screen shot - http://awesomescreenshot.com/0d022ekk26

Perhaps the difference is caused by what customer you go into checkout routine.

Anyways, I see you have an annual technical support subscription so this is covered by our techs, I mean they are to figure out what is wrong within your technical support subscription. It could be related to a customization or incomplete upgrade from earlier version.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #3  
Old 12-09-2013, 02:24 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default Re: Is it just me, or...

Sorry, there was a typo in the code. You should modify this file in your X-Cart installation: skin/common_files/modules/XPayments_Connector/allow_recharges.tpl:

- find this line:

Quote:
<small><a href="javascript: void();" onclick="javascript: xAlert('{$lng.txt_save_cards_is_safe|escape}', '{$lng.lbl_information|escape}')">{$lng.lbl_save_c ards_is_safe}</a></small>

- and replace it with this one:

Quote:
<small><a href="javascript: void(0);" onclick="javascript: xAlert('{$lng.txt_save_cards_is_safe|escape}', '{$lng.lbl_information|escape}');">{$lng.lbl_save_ cards_is_safe}</a></small>

I. e. "javascript: void();" should be replaced with "javascript: void(0);".
__________________
joss@x-cart.com
Reply With Quote

The following user thanks joss for this useful post:
ambal (12-09-2013)
  #4  
Old 12-09-2013, 02:27 AM
 
kevinrm kevinrm is offline
 

X-Adept
  
Join Date: Aug 2003
Posts: 967
 

Default Re: Is it just me, or...

The difference is when you sign in with an account or as a guest. Since guests don't have an account, they cannot store their credit card in x-payments. If you create an account and login and checkout that way, then the link appears. I'm not the one who designed the software, but I guess I'm the one who figured it out .
__________________
X-Cart 5.3.6.4 Live
PHP7.2.22
FPM/FastCGI - enabled
Zend OpCache OFF - Won't work with phar extension in cPanel on
10.3.16-MariaDB
Apache 2.4.34
CENTOS 6.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #5  
Old 12-09-2013, 02:29 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: Is it just me, or...

Yeah, Kevin. We've just figured out I entered all the shopper details but forgot to tick "create an account for this customer" check box. You are absolutely right - the customer needs to be registered in order to use the "store card" feature. It is not available for anonymous customers.

And Joss has already posted a fix here.
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager

Last edited by ambal : 12-09-2013 at 02:32 AM.
Reply With Quote
  #6  
Old 12-09-2013, 02:35 AM
 
kevinrm kevinrm is offline
 

X-Adept
  
Join Date: Aug 2003
Posts: 967
 

Default Re: Is it just me, or...

Thank you for the fix. Now there is no link anymore asking "Why is this safe?" Is it supposed to be there or not?
__________________
X-Cart 5.3.6.4 Live
PHP7.2.22
FPM/FastCGI - enabled
Zend OpCache OFF - Won't work with phar extension in cPanel on
10.3.16-MariaDB
Apache 2.4.34
CENTOS 6.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #7  
Old 12-09-2013, 02:55 AM
 
kevinrm kevinrm is offline
 

X-Adept
  
Join Date: Aug 2003
Posts: 967
 

Default Re: Is it just me, or...

If I replace void();" with void(0);", the link is there but there is no pop-up. If I replace your whole code, the link isn't there anymore. In both cases, it doesn't work.
__________________
X-Cart 5.3.6.4 Live
PHP7.2.22
FPM/FastCGI - enabled
Zend OpCache OFF - Won't work with phar extension in cPanel on
10.3.16-MariaDB
Apache 2.4.34
CENTOS 6.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #8  
Old 12-09-2013, 03:41 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,106
 

Default Re: Is it just me, or...

Kevin, since you have a technical support subscription let our techs to apply the patch. Joss gave a general fix that can be not compatible with templates you have in your checkout routine. Fixing such issues is within the technical support service you subscribed for!
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote

The following user thanks ambal for this useful post:
tartaglia (12-16-2013)
  #9  
Old 02-01-2014, 10:06 AM
 
Don Weiss Don Weiss is offline
 

Member
  
Join Date: Jul 2013
Posts: 12
 

Default Re: Is it just me, or...

I tried the void(0) fix and it did not help. The actual problem is in the text of the lng.txt_save_cards_is_safe string. Change the phrase "doesn't contain" to "does not contain" and that will fix it. Javascript does not like stray apostrophes in strings which are within apostrophes in function calls.
__________________
4.3.0
No add-ons
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

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 04:44 PM.

   

 
X-Cart forums © 2001-2018