Jump to content

multi-language product name and paypal checkout


adrianmak
 Share

Recommended Posts

I just built a simple shopping cart (added cart items are stored in session) and with paypal express checkout.

it is working fine and tested in paypal sandbox.

The product name is a multi-language field

If i changed to another language on the website, when redirected to paypal checkout page, the product name is using my website's default language.

the multi-language of the product name and desc. is display correctly in my website.

Link to comment
Share on other sites

Hello adrianmak!

 
How do you handle passing values to the PayPal checkout? Maybe you'll need something like this:
if($user->language->isDefault()) {
   $value = $page->fieldname;
} else {
   $value = $page->getLanguageValue($user->language, 'fieldname');
}
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...