2

I recently updated my Magento version to 1.9.3.8 and after that "One step checkout" not showing total cost with shipping price. I get an error in my system.log:

Notice: Undefined index: country_id in /public_html/app/code/local/MGS/Oscheckout/controllers/IndexController.php on line 258

Does anybody have a clue what's wrong? Thanks

  
    public function savebillingAction() { 
      $billing_data = $this->getRequest()->getPost('billing', array());
      $shipping_data = $this->getRequest()->getPost('shipping', array()); 
      ..... 
      $billing = $quote->getBillingAddress(); 
      //line 258: 
      $billingCountryId = $billing_data['country_id'];
      $this->getOnepage()->getQuote()->getShippingAddress()->setCountryId($billingCountryId)->setCollectShippingRates(true);
      $billing->setCountryId($billingCountryId)->save(); 
      $shipping->setSameAsBilling(true)->save();
      ... 
    }
  
4
  • Is it this extension? magesolution.com/magento-one-step-checkout.html
    – camdixon
    Apr 3, 2018 at 1:49
  • Yes, this is the same.
    – Liguru
    Apr 3, 2018 at 12:59
  • Can you post the function of that controller file that line 258 is referencing from the error?
    – camdixon
    Apr 3, 2018 at 17:34
  • <code>public function savebillingAction() { $billing_data = $this->getRequest()->getPost('billing', array()); $shipping_data = $this->getRequest()->getPost('shipping', array()); ... $billing = $quote->getBillingAddress(); //line 258: $billingCountryId = $billing_data['country_id']; $this->getOnepage()->getQuote()->getShippingAddress()->setCountryId($billingCountryId)->setCollectShippingRates(true); $billing->setCountryId($billingCountryId)->save(); $shipping->setSameAsBilling(true)->save(); ... }</code>
    – Liguru
    Apr 5, 2018 at 6:32

1 Answer 1

0

did you find a fix for this pelase I am stuck on same error but for different extension

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.