Blog
I need to place every category in a separate category column. Like Category_1, Category_2, Category_3….. $categoryIds = implode('|', $product->getCategoryIds());//change the category separator if needed $cat_name = array(); $cat_array = $product->getCategoryIds(); for($k = 0; $k < count($cat_array); $k++) { $id = $cat_array[$k]; $cat->load($id); $cat_name[] = $cat->getName(); } $_cate_name = implode(',', $cat_name); […]
We have a multi store running with Magento 2 and sometimes when we try to load the homepage it shows the JSON below instead of the home page, it only works again if we clean cache. Strange enough is that if we try to navigate in any other page of […]
I’m trying redirect to the login when some guess user press the add cart button and he is not registered. But i can’t do it. I am usin a Observer, with the following event this is my /app/code/vendor/module/etc/frontend/event.xml event.xml < ?xml version="1.0"?> and my Observer/app/code/vendor/module/Observer/ForceLogin.php ForceLogin.php < ?php namespace vendormoduleObserver; […]
After updating Magento 2.1 to Magento 2.2 I get the following error when saving a client. I have seen that in the customer_eav_attribute table the data has not been updated correctly to the new version. For exemple, I have: a:2:{s:15:”max_text_length”;i:255;s:15:”min_text_length”;i:1;} And in version 2.2 it is necessary to have: {“max_text_length”:255,”min_text_length”:1} […]
My windows 10 Dell machine is stuck on screensaver screen. I can press keyboard buttons (keyboard lights work) and I can click mouse but it seems to be processing something in the background and does not bring up the login screen. How can I find out what process or app […]
What is the difference between map vs path when building a theme / module? Which are the restrictions? var config = { map: { '*': { 'jqueryjs': 'India_Newtheme/js/jquery', 'bootstrapmin': 'India_Newtheme/js/vendor/bootstrap.min' } }, paths: { 'jqueryjs': 'India_Newtheme/js/jquery', 'bootstrapmin': 'India_Newtheme/js/vendor/bootstrap.min' } };
We have a SuSE 12, sp3 server (SLES, not openSuSE). There is only one disk in use on the system, the root disk with several file systems under mounted with BTRFS. We are seeing issues where a “btrfs balance” job starts in the middle of the production day. This appears […]
I have a Dell laptop with Windows 10 1909 (I think) installed. Domain joined. Every 1-2 minutes I get a notification stating that the firewall has been turned off. When viewing the Win10 Defender firewall status page in control panel all the status icons turn red and I get a […]