Issue with searching and importing CSV file in the CMS page

Created by Robin Hoang, Modified on Fri, 06 Oct 2017 at 11:55 AM by Robin Hoang


I am unable to search for anything in the CMS page.

I am only able to get a spinning wheel and seem to be unable to add anything to the cart from the page.

In addition, I also tested the CSV Import function and could only get the error.
I was using the template provided on the page, and the file's format is correct.


In this case, we assume that the root of the problem is due to your site is using https but not http that make ajax function can not get the search result and causes the issue with importing CSV file function also. Hence, it needs to be changed into "jsonp" method.

Could you please follow the guidance below to fix the search function?
- File /app/code/local/Bss/FastOrder/controllers/AjaxController.php:
line 144: edit from return json_encode($result); to return $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
- File /skin/frontend/base/default/js/bss/fastorder.js: 

add dataType: "jsonp", in line 38

In order to fix import CSV file function, could you please refer the guidance below?

- File file /app/code/local/Bss/FastOrder/controllers/AjaxController.php - line 359:
edit from return json_encode($result2); to return $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result2))
- File: /skin/frontend/base/default/js/bss/fastorder.js:
add dataType: "json", in line 689:

edit from jQuery.each(jQuery.parseJSON(data), function() { to jQuery(data).each(function(i, item) { in line 694.

For more information about product, please refer Wholesale Fast Order

If you need any further assistance, please feel free to contact us.
Please visit our site for more useful Magento 1 Extensions:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article