adrianmak Posted April 16, 2016 Share Posted April 16, 2016 That is my first time to create an ecommerce site and it is a multi-language website too. I found that, for a PW's multi-language field, say title field any reference to that field, i.e. $product_name = $page->title; In front-end user point of view, it is just a plain text. However when digging into code level, there are are multi-language related properties are stored too. For just an CMS, there is no such a problem. But when it is dealing with paypal payment, when preparing a payment order items.For example, $PaymentOrderItems = array(); foreach($_SESSION['shopping_cart']['items'] as $cart_item) { $Item = array( 'name' => $cart_item['name'], // Item name. 127 char max. 'amt' => $cart_item['price'], // Cost of item. 'number' => $cart_item['id'], // Item number. 127 char max. 'qty' => $cart_item['qty'], // Item qty on order. Any positive integer. ); array_push($PaymentOrderItems, $Item); } The $Item['name'] will also have the mult-language field information. With this pw's behavior, is there any problem on the paypal side ? Will paypal can read the texture information only ? Link to comment Share on other sites More sharing options...
Recommended Posts