• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Product Name in Order Details Page

Bug Report
3
6
538
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    maheshb last edited by maheshb 5 Dec 2019, 10:19 5 Dec 2019, 10:08

    Greetings,

    Product name in the order details page not displaying with respect to the locale selected by the customer. Product name showing only in English.

    packages\Webkul\Shop\src\Http\Controllers\OrderController.php
    $order = $this->order->findOneWhere([
                'customer_id' => auth()->guard('customer')->user()->id,
                'id' => $id
            ]);
    

    Please suggest.

    S 1 Reply Last reply 5 Dec 2019, 10:59 Reply Quote 0
    • S
      shivam-webkul @maheshb last edited by shivam-webkul 5 Dec 2019, 11:00 5 Dec 2019, 10:59

      Hi @maheshb,

      Product name must be in selected locale language.
      like if you select Arabic as locale then product name must be in
      arabic e.g., product-name - اسم المنتج

      1 Reply Last reply Reply Quote 0
      • M
        maheshb last edited by 5 Dec 2019, 11:25

        Hello,

        Thank you for quick response. If I understand correctly - if customer has placed his order through Arabic language then he won't be able to view his ordered product name in English language if accidentally/willingly he has change his language?

        We have product added for both the locales. We are assuming that product name should be visible irrespective of the locale selected and the locale selected while placing the order.

        Right now if we are placing the order using one locale, product name in the order details page isn't visible in another locale.

        Please suggest

        1 Reply Last reply Reply Quote 0
        • S
          shivam-webkul last edited by 6 Dec 2019, 07:04

          Hi, @maheshb,

          I understand you question, If you want to show product name as per as selected locale in shop(front-end) then you must have to save all product name in all the locale(locales which you want to use in shop), If you visited
          admin->catalog->add product

          edit product page.png
          in the top of you see that and please save the product details as per as selected locale then, you visited in shop if you select Arabic locale then product details shown in Arabic locale.

          Thanks

          1 Reply Last reply Reply Quote 0
          • M
            maheshb last edited by maheshb 6 Dec 2019, 08:48 6 Dec 2019, 07:21

            Hello Shivam,

            Thank you for your response. Apologize if there is any confusion from my end. Please follow the steps for reproducing the issue -

            1. Created a product with the name Sample Product for both the locales i.e. English and Arabic as you have described above.
            2. Logged in as a customer.
            3. Placed order of Sample Product and my selected locale was English
            4. Goto User profile > orders
            5. Clicked on View Order link
            6. In the order details grid, Product name is shown in the English and this is correct.
            7. But if I changed locale to Arabic, the product name is not available in Arabic i.e. showing in English

            Hope this clarifies the scenario

            1 Reply Last reply Reply Quote 0
            • R
              rahul last edited by 10 Dec 2019, 05:24

              Hi @maheshb

              Product name will be appear according to order locale not according to change in locale.

              Thanks

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post