Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Vaimo bug fixes #2

Merged
merged 8 commits into from
Sep 16, 2016
Merged

Vaimo bug fixes #2

merged 8 commits into from
Sep 16, 2016

Conversation

paveq
Copy link

@paveq paveq commented Sep 12, 2016

Fixes bugs:

  • JS collection errors on checkout (always call _super() on initObservable()
  • Inorrect calculation when store credit is applied
  • When free method is applied, strip title from request to backend so we don't get error 500
  • If user selects COD payment, goes back to browse the site and comes back to checkout, it should now correctly refresh totals if other than COD method is selected

Improves:

  • Only send COD total to frontend when COD method is selected
  • Performance of observer SalesModelServiceQuoteSubmitBefore: do not load quote object again from database

@@ -42,8 +42,7 @@ public function execute(Observer $observer)
{
/** @var OrderInterface $order */
$order = $observer->getEvent()->getOrder();

$quote = $this->quoteRepository->get($order->getQuoteId());
$quote = $observer->getEvent()->getQuote();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paveq , are you sure this is correctly working?
We intentionally loaded it from DB because it was not correctly working on our old Magento 2.0.7 installation, we had an empty quote object. Maybe a fixed bug?

@phoenix128
Copy link
Contributor

We just tried on 2.1.0, it is not working properly. What is the version you tried?

@paveq
Copy link
Author

paveq commented Sep 14, 2016

I tried on 2.1.1 EE. What does $quote object in your case contain? Maybe we could have check that if it is null, then we retrieve from quoteRepository.

@phoenix128
Copy link
Contributor

phoenix128 commented Sep 14, 2016

@paveq, it was just empty, but I'm seeing it works on 2.1.0, so it should be correct.
Now we see we have zero amount on payment method description (CE 2.1.0).

Something not working on getFeeLabel in MSP\CashOnDelivery\Model\CashondeliveryCart, we are checking it.

@phoenix128
Copy link
Contributor

phoenix128 commented Sep 14, 2016

Ok, it does not work the first time you load, if you refresh it is working... We are checking it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants