X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update. (https://forum.x-cart.com/showthread.php?t=68769)

Ksenia 03-04-2014 05:10 AM

X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Hello everyone!

X-Cart Classic v.4.6.3 has been released. It's a "quick" release without new features,instead there are 3 fixes of existing integrations: "PayPal Access", "Amazon Payments" and upcoming USPS Webtools Update (March, 07 2014).

Details here:
http://blog.x-cart.com/x-cart-463-released.html


------------------ X-CART v4.6.3 CHANGELOG---------------------

*DESIGN AND APPEARANCE*
[!] 14 Feb 2014, mixon - Bug (0138239) Ideal Responsive & Ideal comfort: Special Offer promo block was not properly aligned + Some other minor design and appearance issues on the cart page. Fixed.

*BACKOFFICE*
[!] 28 Feb 2014, mixon - Bug (0138314): CSS inliner related PHP errors. Fixed. Added PHP compability checks.
[!] 25 Feb 2014, aim - Bug (0138516): Static pages were not deleted on some PHP versions. Fixed.
[!] 21 Feb 2014, aim - Bug (0138547): Fatal error: Call to undefined function func_store_login_action(). Related to check integrity feature. Fixed.

*PAYMENTS*
[!] 24 Feb 2014, mixon - Bug (0138495): Global Gateway E4SM: When Global Gateway E4SM was used, the "Your order was lost" error was sometimes generated. Fixed.

*SHIPPING*[*] 03 Mar 2014, aim - Improvement (0138671): Renamed 'USPS First-Class Mail##R## Letter' to 'USPS First-Class Mail##R## Stamped Letter'.

*MODULES/ADD-ONS*[*] 27 Feb 2014, mixon - Improvement (0134510): Reworked the Login with PayPal module (former PayPalAuth) according to the new API.
[!] 26 Feb 2014, mixon - Bug (0138573): Checkout by Amazon: The 'Pay with Amazon' button was not aligned properly with the other elements on the cart page. Fixed. [Amazon_Checkout]
[!] 24 Feb 2014, mixon - Bug (0136815) MailChimp: An SQL error occurred when importing newslists from MailChimp. Fixed. [Adv_Mailchimp_Subscription]
[!] 14 Feb 2014, mixon - Bug (0138415): Checkout by Amazon: PHP errors related to the removal of Google Checkout module. Fixed. [Amazon_Checkout]
[!] 14 Feb 2014, mixon - Bug (0138436) XML Sitemap: Out-of-stock products were not included into XML Sitemap. Fixed.
[!] 11 Feb 2014, aim - Bug (0138372): Feature Comparison: Changed default step from 1 to 10 for empty orderby field. Thanks to Adrian Matei.

*PERFORMANCE*
27 Feb 2014, mixon - Improvement (0138595): Amazon Checkout javascript moved to body bottom to speed up page display.

*MISCELLANEOUS*
*MISCELLANEOUS* [*] 28 Feb 2014, mixon - Improvement (0138314): Improved PHP version check for CSS inliner. If the option "Automatically convert CSS to inline styles in HTML emails" is enabled on PHP versions earlier than 5.3, a warning message is displayed and the option is automatically disabled.[*] 27 Feb 2014, aim - Improvement (0138616): Added _POST _GET vars to sql error logs. Fixed an SQL error.[*] 24 Feb 2014, mixon - Improvement (0138436): Updated XML Sitemap & Out-of-stock Products conditions.
[!] 21 Feb 2014, mixon - Bug (0099691): Purchase Order number was missing from plain text emails. Fixed.
[!] 19 Feb 2014, aim - Bug (0138517): Formatting problem in navigation.tpl. Fixed.
[!] 19 Feb 2014, mixon - Bug (0136108): Product search by category and manufacturer return no results. Fixed.

herber@wirehub.nl 03-04-2014 05:24 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
That's quite a quick release, I was already awaiting it since you mentioned it would be released on March 4th.

I'm going to apply it anyway since I am still in the "upgrade mood" since I upgraded to 4.6.2 a week ago.

herber@wirehub.nl 03-04-2014 07:44 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
The PayPal Login module in the backend links to russian pages of PHP.net, perhaps those should be changed to English manual pages.

See here.

I would also like to see which of these I currently haven't got configured on my server, because I have no clue what I'm missing, as CURL is installed and the functions should be available by default I believe.

aim 03-04-2014 08:58 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
1 Attachment(s)
Quote:

Originally Posted by herber@wirehub.nl
The PayPal Login module in the backend links to russian pages of PHP.net, perhaps those should be changed to English manual pages.

See here.

I would also like to see which of these I currently haven't got configured on my server, because I have no clue what I'm missing, as CURL is installed and the functions should be available by default I believe.


1)Links to man pages have been fixed. Thank you.

2)Open the page like
http://localhost/aim/46x/admin/general.php?mode=phpinfo

Please confirm these requirements

* hash.png
or
* http://ru2.php.net/manual/en/hash.requirements.php
or
* http://ru2.php.net/manual/en/function.hash-algos.php
(PHP 5 >= 5.1.2, PECL hash >= 1.1)
or
* http://ru2.php.net/crypt#refsect1-function.crypt-changelog
5.3.2 Added SHA-256 and SHA-512 crypt based on Ulrich Drepper's ╩ implementation.

herber@wirehub.nl 03-05-2014 12:56 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by aim
1)Links to man pages have been fixed. Thank you.

2)Open the page like
http://localhost/aim/46x/admin/general.php?mode=phpinfo

Please confirm these requirements

* hash.png
or
* http://ru2.php.net/manual/en/hash.requirements.php
or
* http://ru2.php.net/manual/en/function.hash-algos.php
(PHP 5 >= 5.1.2, PECL hash >= 1.1)
or
* http://ru2.php.net/crypt#refsect1-function.crypt-changelog
5.3.2 Added SHA-256 and SHA-512 crypt based on Ulrich Drepper's ╩ implementation.

Thanks for fixing.

It seems php5-curl was installed, so installing that fixed it.
Thanks a bunch, but perhaps a check telling the user what needs to be installed would be more clear.

Does the Login with PayPal also create a user in X-Cart with the right address/email etc.?

mixon 03-05-2014 01:08 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Yes. A new customer account is created with email provided by PayPal ( + corresponding billing address ).

tartaglia 03-07-2014 11:32 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Ksenia,

I am running 4.5.4. I took your warning about the USPS change regarding First Class Mail from your blog post and made sure your Option #1 "...select checkbox 'Automatically enable new shipping methods from shipping server response'" was enabled on my store.

Sure enough First Class mail method is no longer being returned to my customers, and yet no new shipping methods have shown up in my list of USPS methods. Anyone know what is going on? What are others seeing?

(I have filed a support ticket already) just providing the community some info and wanting to know if it is just me.

Thanks

herber@wirehub.nl 03-07-2014 12:58 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
I just updated my live store and cannot get PayPal Access to work.
I entered the right 'secret' and 'client id', the paypal popup shows, I can login with a valid PayPal account, it asks me to give permission to my website to get certain data, I can agree to that and then return to X-Cart..
but it gives a small red error on top: 'Error: Login with PayPal authorization has been failed'.

I cannot find any errors in the X-Cart logs.
How can I help find the errors to fix this? I would like to have the PayPal Access functionality.

herber@wirehub.nl 03-07-2014 01:04 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by herber@wirehub.nl
I just updated my live store and cannot get PayPal Access to work.
I entered the right 'secret' and 'client id', the paypal popup shows, I can login with a valid PayPal account, it asks me to give permission to my website to get certain data, I can agree to that and then return to X-Cart..
but it gives a small red error on top: 'Error: Login with PayPal authorization has been failed'.

I cannot find any errors in the X-Cart logs.
How can I help find the errors to fix this? I would like to have the PayPal Access functionality.

Apparantly, it is working.
However, Qualiteam needs to improve the error message: an account with that paypal email address already existed. X-Cart needs to give a proper error message to the user that an account with that email already exists and THAT is why it is not working.

enterfusion 03-08-2014 04:01 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
I'm confused by this announcement, I don't see any X-cart 4.6.3 patches in the support helpdesk file area. And there doesn't seem to be an upgrade pack yet either? I am currently running a TEST only version of 4.6.0 to see if it's worth the trouble upgrading.

-Eric

sinobest 03-11-2014 12:50 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
x-cart updates so frequently. good or not?

herber@wirehub.nl 03-11-2014 02:25 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by sinobest
x-cart updates so frequently. good or not?

I am certainly happy with it. I am very happy with the new PayPal Login functionality of 4.6.3 and the upgrades are quite easy as long as the store isn't heavily modded.

I also like to keep it up to date because of security concerns and for the new functionality.
So I'd say it's a good thing. Looking at the forum I'd also say I'm one of the few stores on 4.6.3 and it's running very good here.

Ksenia 03-11-2014 03:23 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by enterfusion
I'm confused by this announcement, I don't see any X-cart 4.6.3 patches in the support helpdesk file area. And there doesn't seem to be an upgrade pack yet either? I am currently running a TEST only version of 4.6.0 to see if it's worth the trouble upgrading.


Hi Eric,
Sorry for delay. The upgrade packs should be found not in "File Area" but in "My Licenses" section of your HelpDesk account. Find the corresponding license and press button "Upgrades". You'll be redirected to a page where the patch can be generated. Upgrade from 4.6.0 to 4.6.3 is available there too - I have just checked it right in your account.

If you experience any difficulties, please contact us via "Communication center" and the Customer Relations Representatives will help you - or even generate the patch for you.

Ksenia 03-11-2014 03:24 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by tartaglia
Ksenia,

I am running 4.5.4. I took your warning about the USPS change regarding First Class Mail from your blog post and made sure your Option #1 "...select checkbox 'Automatically enable new shipping methods from shipping server response'" was enabled on my store.

Sure enough First Class mail method is no longer being returned to my customers, and yet no new shipping methods have shown up in my list of USPS methods. Anyone know what is going on? What are others seeing?

(I have filed a support ticket already) just providing the community some info and wanting to know if it is just me.

Thanks


Hi David,

Are you still facing this problem or has it been fixed?

Stizerg 03-14-2014 10:06 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
I just installed this update and have enabled PayPal login.
I successfully signed in using my PayPal account and user account was created, however something doesn't work properly:
1. When user looks at his account everything looks OK, however when admin looks at this user's profile, the State in address is incorrect.
2. When customer adds product to the cart and heading to checkout, customer details are correct but no shipping methods available and only 'Change' button is active under customer's details. (One Page Checkout). If customer clicks 'Change' button, wrong State inserted into address form. After customer clicks 'Continue' button everything works as it should.
I'm disabling this module for now.

cflsystems 03-14-2014 10:52 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
you can enable debugging for the module - modules/PayPal_Login/config.php - and see what info is being passed to XC and what is being saved

Stizerg 03-15-2014 04:58 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Thanks Steve, looking at logs I see that PayPal returns correct address
[region] => New South Wales
[country] => AU
but in x-cart the State is set to Australian Capital Territory (first in the list).

btw, test mode doesn't work for me, Paypal login page doesn't exist at sandbox.paypal.com ...

cflsystems 03-15-2014 05:26 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
It's not that XC sets the state as ACT but it shows the first in the list because the one it is set to does not exist. You need to look directly in the database and see what it is set to. My guess is since XC uses abbr and not full names for states in the database the module is not coded to convert the PP result for region from full name to abbreviation. Which of course is a bug in the module.
The customer info in database uses state abbreviation and not full state name

josebueso 03-16-2014 07:52 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Hello

I upgraded to version 4.6.3 and I noticed in admin user section there is an AJAX error.
If I click on the link show in users section like this http://uncionmusic.com/get_block.php?block=np_product&language=en

It will land in a blank page showing this this message: "AJAX error :: Bad request :: 0"

I was wondering if this happen to a regular customer browsing the website.

Is any body else having this problem?

Can someone tell what actually is causing this? your help is appreciated.

Jose

aim 03-16-2014 10:13 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by josebueso
Hello

I upgraded to version 4.6.3 and I noticed in admin user section there is an AJAX error.
If I click on the link show in users section like this http://uncionmusic.com/get_block.php?block=np_product&language=en

It will land in a blank page showing this this message: "AJAX error :: Bad request :: 0"

I was wondering if this happen to a regular customer browsing the website.

Is any body else having this problem?

Can someone tell what actually is causing this? your help is appreciated.

Jose


This link cannot be openned in a browser directly
The next-prev products feature works correctly on your site.

This is a code from the get_block.php
Code:

if (
    !func_is_ajax_request()
    || !isset($block)
    || empty($block)
    || !is_string($block)
    || !preg_match('/^[\w\d_]+$/Ss', $block)
) {
    func_ajax_set_error('Bad request');

    exit;
}


josebueso 03-16-2014 10:30 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by aim
This link cannot be openned in a browser directly
The next-prev products feature works correctly on your site.

This is a code from the get_block.php
Code:

if (
    !func_is_ajax_request()
    || !isset($block)
    || empty($block)
    || !is_string($block)
    || !preg_match('/^[\w\d_]+$/Ss', $block)
) {
    func_ajax_set_error('Bad request');

    exit;
}



Hello Ildar

Thanks for your prompt response.
Your are telling me not to worry about it? I compared the code you posted above with the get_block.php in my site and is the same.

Thanks for your help.
Jose

mixon 03-17-2014 05:17 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
1 Attachment(s)
Quote:

Originally Posted by Stizerg
Thanks Steve, looking at logs I see that PayPal returns correct address
[region] => New South Wales
[country] => AU
but in x-cart the State is set to Australian Capital Territory (first in the list).

btw, test mode doesn't work for me, Paypal login page doesn't exist at sandbox.paypal.com ...


Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:

Index: modules/PayPal_Login/pp_return.php
--- a/modules/PayPal_Login/pp_return.php
+++ b/modules/PayPal_Login/pp_return.php
@@ -106,6 +106,18 @@ $_pplogin_address = array(
    'phone' => $user->getPhoneNumber(),
 );
 
+$_pplogin_state_error = 0;
+
+x_load('paypal');
+
+// detect state from state info returned by PayPal
+$_pplogin_address['state'] = func_paypal_detect_state(
+    $_pplogin_address['country'],
+    $_pplogin_address['state'],
+    $_pplogin_address['zipcode'],
+    $_pplogin_state_error
+);
+
 $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);


Stizerg 03-18-2014 10:23 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by mixon
Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:

diff --git a/modules/PayPal_Login/pp_return.php b/modules/PayPal_Login/pp_return.php
index 6c9bee4..6595ab5 100644
--- a/modules/PayPal_Login/pp_return.php
+++ b/modules/PayPal_Login/pp_return.php
@@ -106,6 +106,15 @@ $_pplogin_address = array(
    'phone' => $user->getPhoneNumber(),
 );

+x_load('paypal');
+
+// detect state from state info returned by PayPal
+$_pplogin_address['state'] = func_paypal_detect_state(
+    $_pplogin_address['country'],
+    $_pplogin_address['state'],
+    $_pplogin_address['zipcode']
+);
+
 $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);



Thank you, it works.

herber@wirehub.nl 03-19-2014 04:25 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by mixon
Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:

diff --git a/modules/PayPal_Login/pp_return.php b/modules/PayPal_Login/pp_return.php
index 6c9bee4..6595ab5 100644
--- a/modules/PayPal_Login/pp_return.php
+++ b/modules/PayPal_Login/pp_return.php
@@ -106,6 +106,15 @@ $_pplogin_address = array(
    'phone' => $user->getPhoneNumber(),
 );

+x_load('paypal');
+
+// detect state from state info returned by PayPal
+$_pplogin_address['state'] = func_paypal_detect_state(
+    $_pplogin_address['country'],
+    $_pplogin_address['state'],
+    $_pplogin_address['zipcode']
+);
+
 $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);


Is this going to get updated in the 4.6.3 package?

cflsystems 03-19-2014 09:58 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Probably not. It will be as patch posted here. It may find its way into 4.6.4 though

josebueso 04-01-2014 01:51 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Hello

I found the below php error message in xcart logs and also the inventory update suddenly stop working returning a 404 page not found.

[01-Apr-2014 02:42:19] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:14] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:20] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

Kind of wondering if is related to inventory update stop working, and also worry since read for security reasons

Your help is appreciated

Jose

josebueso 04-02-2014 12:33 AM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Hello

This was fixed by my hosting company, it was a change in the server, just in case someone else is having same issue need to contact your hosting company to do the necessary adjustments.

Thanks.

Quote:

Originally Posted by josebueso
Hello

I found the below php error message in xcart logs and also the inventory update suddenly stop working returning a 404 page not found.

[01-Apr-2014 02:42:19] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:12] Warning: readfile() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.files.php on line 836

[01-Apr-2014 02:43:14] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

[01-Apr-2014 02:43:20] Warning: parse_ini_file() has been disabled for security reasons in /home/uncionmu/public_html/include/func/func.compat.php on line 201

Kind of wondering if is related to inventory update stop working, and also worry since read for security reasons

Your help is appreciated

Jose


cflsystems 04-18-2014 11:33 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
I thought the Advanced Statistics module was removed from 4.6.3?
The bestsellers.php still has this code in

Code:

if (
    !empty($active_modules['Advanced_Statistics'])
    && $config['Advanced_Statistics']['use_delayed_stats_update'] == 'Y'
) {
    // Flush all delayed queries to product data table
    func_run_delayed_query('views_stats_products');
}


Of course the module does not exist... not to mention this file is not in use probably....

aim 04-20-2014 09:47 PM

Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.
 
Quote:

Originally Posted by cflsystems
I thought the Advanced Statistics module was removed from 4.6.3?
The bestsellers.php still has this code in

Code:

if (
    !empty($active_modules['Advanced_Statistics'])
    && $config['Advanced_Statistics']['use_delayed_stats_update'] == 'Y'
) {
    // Flush all delayed queries to product data table
    func_run_delayed_query('views_stats_products');
}


Of course the module does not exist... not to mention this file is not in use probably....


You are right
The file is not used in 4.6.3

The active file is
Code:

modules/Bestsellers/func.php


All times are GMT -8. The time now is 06:44 AM.

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