X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   Is it just me, or... (https://forum.x-cart.com/showthread.php?t=68284)

kevinrm 12-08-2013 09:25 PM

Is it just me, or...
 
1 Attachment(s)
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.

ambal 12-09-2013 02:12 AM

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.

joss 12-09-2013 02:24 AM

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

kevinrm 12-09-2013 02:27 AM

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 .

ambal 12-09-2013 02:29 AM

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.

kevinrm 12-09-2013 02:35 AM

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?

kevinrm 12-09-2013 02:55 AM

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.

ambal 12-09-2013 03:41 AM

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!

Don Weiss 02-01-2014 10:06 AM

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.


All times are GMT -8. The time now is 08:50 PM.

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