Bug Report: Error When Checkout

Error When Checkout

I got this error message when checkout from cart. not allowing to complete the purchase

DP

Dhanushka Priyankara

Reported
I got this error message when checkout from cart. not allowing to complete the purchase
  • DP

    Dhanushka Priyankara

    Answered
    Does anybody face such kind of error?
  • MS

    Mian Saleem

    Answered
    Hello,

    I am sorry for late reply. It looks like it's a bug. Please edit `modules/Shop/Http/Livewire/Components/Cart/Checkout.php` around line 184 `$this->prepareItems();` and replace it with

    ```php
    $this->cart_items = $this->prepareItems();
    ```

    That should fix this. I will update the download file later this week.

    Thank you
  • DP

    Dhanushka Priyankara

    Answered
    I found another bug also in the webstore. Only admin user can see the stock and can purchase from webstore. customers who was registered with a webstore cannot purchase products. because site saying the product is out of stock. But all products are in stock, admin can purchase..... And also can you add a cording to select product quantity in product page, if someone want to add to the cart.
  • MS

    Mian Saleem

    Answered
    Hello,

    I have tried to fixed it on live demo. Can you please test it again.

    Thank you
  • DP

    Dhanushka Priyankara

    Answered
    i fixed everything. now email verification working. user registration working. stock vicible to the shop customers. but one thing not working. other payment methods. could you please share me your demo testing accounts modules/Shop/resources/components/payments/others.blade.php file and modules/Shop/Http/Livewire/Components/Payments/Others.php file
  • Login to Reply