bug prestashop 1.6

Befejezett Kiadva: 5 évvel ezelőtt Kiszállításkor fizetve
Befejezett Kiszállításkor fizetve

I have an issue with my Prestashop 1.6.1.23 shop. I use a module that adds credits. So users can only buy if they already have credits.

Let's say I have 10 € credited in my account.

I then add a digital product (that is a coupon) that costs 10 € in the cart. So far so good. I can buy the product and get the product key after payment completion.

If I go to the final step of the order before I click (confirm order) Then open a new tab of the cart. Update the quantity of the product from 1 to 4 for example. Then return back to my original tab which is left at the (confirm order) state. Click confirm order.

The payment gets successfully submitted and returns 4 products keys instead of 1.

Database updates the ps_cart_product table with the correct quantity. Although, since the first tab isn't refreshed after quantity updates it has false data on the cart.

When the form gets posted I've found that it gets the data from $cart = $this->context->cart;

and the $cart->getOrderTotal(true, Cart::BOTH); returns the amount (10) before the quantities where udpated on the new tab. So the validation that the balance is higher or equals to total passes and completes the order.

There wouldn't be an issue if the products were physical, but since they are digital and products keys there get submitted right after submission is complete.

Is there a way that I can create a new session key for each new tab so there is no such issue ? or is there a different way to get the correct data and total from $this->context->cart ?

Thanks!

eCommerce MySQL PHP Prestashop

Projektazonosító: #18505846

A projektről

9 ajánlat Távolról teljesíthető projekt Utoljára aktív: 5 évvel ezelőtt

Odaítélve:

GetReal

Hi, I have vast experience, I have gone through your description and ready to fix the issue for you, look forward to hear from you and work with you..thanks!

€100 EUR 1 napon belül
(761 értékelés)
8.0

9 szabadúszó tett átlagosan 133€ összegű árajánlatot erre a munkára

VirtualBrainInc

Hello, happy new year! I have briefly read the description on prestashop project, and I can deliver as per the requirements however I need us to discuss for more clarity on the details, deadline and budget as well. Továbbiak

€200 EUR 3 napon belül
(6 vélemény)
3.6
swappitwebnsoftw

Hello Client, Thank you for the opportunity. I'm the lead developer of Swappit Solution. As per your requirement, I would like to tell you that we have a very strong experience of more then 7 years in the fi Továbbiak

€155 EUR 3 napon belül
(1 Visszajelzés)
0.0
vartikagupta1111

Hello Client, I have read your requirement about - bug prestashop 1.6 and I am sure I can complete it as per the given description. I do have skills like eCommerce, MySQL, PHP, Prestashop which you are looking in yo Továbbiak

€100 EUR 3 napon belül
(0 vélemény)
0.0