35

app/code/core - Holds modules that are distributed with the base Magento and make up the core functionality. app/code/community - Holds modules that are developed by third-parties app/code/local - Holds custom modules you developed, including Mage code overrides. Why does Magento use two code pool for our customization? Magento actually uses three code ...


20

You have 3 choices for resolving conflicts: Merge the code from one conflicting file into another and switch off the rewrite config.xml in one Switch off the rewrite in one config.xml and then make the conflicting extension PHP file extend the other extension Use the <depends> capability to make one extension depend on another. They will then rewrite ...


11

core : This code pool belongs to the Magento core development team. So you should NOT make any modifications in this code pool. community : This belongs to Magento community developers (including any developer who develop third party extensions). If you are creating any third party extensions, so you can use this code pool for that. local : This can be ...


9

New code from Magento 2.3 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/product_types.xsd"> <type name="simple" isQty="true" /> <type name="virtual" isQty="true" /> </config> Check ...


8

That first example should be correct and is a Connect 2.0 format key. That's the format you want for Community 1.9. It looks like your error comes from the 2nd example which isn't a hostname. If you copy the installer key directly from Connect as-is on the product page it should work. Alternatively you can use a tool like http://freegento.com/ddl-magento-...


7

I've used both Elastic Search and SOLR on a few projects. Solr is very accurate but a bit more tricky to configure and the Magento SOLR Bridge extension had some issues with multistore setup. After SOLR I tried Elastic Search which was quite easy to configure and was up and running in an hour. This included installing Elastic Search on the server itself ...


6

Complete credits for @fschmengler for this link add this method in admin controllers: if you have an ACL resource defined in etc/adminhtml.xml , than protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('ENTER RESOURCE IDENTIFIER HERE'); }


6

Ioncube and uglifying are the two ways you shouldn't go, but answer your question. ioncube plays kind of nice with newest xdebug versions, but is not PHP7 compatible yet. Both options are (afaik) reversable, you loose comments and variable/method names, but nonetheless you can reverse engineer them and remove afterwards the license. Beside this I ...


6

I would set a new variable in template file, e.g. <script type="text/javascript"> //<![CDATA[ var isLoggedIn: <?php echo (int) Mage::getSingleton('customer/session')->isLoggedIn() ?> }); //]]> </script> And modify JS function like: _ajaxCreateImg: function(dataUrl, startNumber) { new Ajax.Request(this.createImgUrl, { ...


6

And that's why they created plugins: http://devdocs.magento.com/guides/v2.1/extension-dev-guide/plugins.html There are three types of plugins (before, around, after), which allow you to run your customizations relative to the function you want to extend. You're right, using preferences may result in difficulties when upgrading, and should be used if ...


5

Describe Magento Codepools Core pool First of all, this folder stores all the code that makes Magento so powerful, flexible and lovely. The chief rule of Magento development is that you should never make any changes in it. In other words, this folder belongs to Magento core developers only and if you are going to edit anything in this pool, their evil ...


5

The answer is Yes! It is possible. The resource models inside Magento are responsible for the CRUD operations of a module. So, based upon that, all you have to do is leverage the save(), delete(), and load() methods inside of your resource model and collection, following the same definition of each method from its parent. You can still use ...


5

About PWA in Magento: You can read more about the implementation of the PWA on the magento forum, where stored all useful links to a blog post or github projects: Magento 1 PWA module on github by Meanbee Blog Post "Why does your Magento Site need to be a Progressive Web App?" by Tom Robertshaw from Meanbee Magento 2 Service Worker module on github by ...


5

Ok i just google it and find a solution that works for me!!! -> Under \Magento_Theme\layout\default_head_blocks.xml -> Put font awesome cdn url -> Just Flush The Content -> Know copy icon code from here https://fontawesome.com/icons?d=gallery and use it you need to have the param src_type="url" if you use an external URL eg: <css src="https://...


4

Adding all the above in simple its for making priorities and having modularity. You can check the same in Mage.php. Loading code pools with $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'local'; $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'community'; $paths[] = BP . DS . 'app' . DS . 'code' . DS . 'core'; $paths[] = BP . DS . 'lib'; SO first ...


4

Namespace: Prince Module: Helloworld Create first index controller and index action app/code/Prince/Helloworld/Controller/Index/Index.php <?php namespace Prince\Helloworld\Controller\Index; class Index extends \Magento\Framework\App\Action\Action { public function execute() { echo "This is First Controller"; exit; } ...


4

Magento ˆ2.3 System > Web Setup Wizard > Module Manager Magento 2.2 You can access using the admin panel the route Stores > Configuration > Advanced, as the image below. On that page, you can enable or disable some modules as well. Notice that this is taken away from the admin panel since Magento 2.2.0. Reference, https://community.magento.com/t5/Magento-...


4

To extend any third-party Module's functionality you can use 2 ways as Override their class using preference or plugin. But If you want to add your custom methods into their class you can choose preference. Other than that you have to set dependencey as sequence in your custom module's etc/module.xml file <?xml version="1.0"?> <config xmlns:xsi="...


4

Was just a typo in my custom payment method's /etc/config.xml <group>Offline</group> Should be <group>offline</group>


4

This is an extension for Skrill (aka Moneybooker) Payment Gateway that allows to payments and money transfers to be made through the internet. So if you are not using that payment gateway you can disable this module. For more information you can can checkout below links https://github.com/simkea/Phoenix_Moneybookers https://en.wikipedia.org/wiki/Skrill


3

Step 1: Skip the extension (if you only want "Like" buttons). Step 2: Get the latest snippet from: https://developers.facebook.com/docs/plugins/like-button/ Step 3: Use the HTML5 snippet (works with any doctype) instead of XFBML. What you're likely missing is the Fackbook (yep) JS SDK. Normally FB wants you to place this right after the <body> tag ...


3

Magento checks all controllers whether the actionMethod exists, if this is the case, then it is executed. The sorting order, can be defined via before and after But using after makes no sense, if you ask me. If you want your controller to be executed, instead of the default one use before. So if you want to kill all other actions, you can use your own ...


3

The trick was to create another file in the Models folder called in this case CustomFunctions.php Which starts like this class Name_Space_Model_CustomFunctions { //Add in all custom functions here public function myRandomFunction($variable){ $response = "This function has been passed the variable - " . $variable; return $response; } } Then in one of the ...


3

I would like to point out that setting Disabled for a certain module in System > Configuration > Advanced > Disable Modules Output will not actually disable that module. It will, as the name suggest, disable modules output. final public function toHtml() { Mage::dispatchEvent('core_block_abstract_to_html_before', array('block' => $this)); ...


3

I have recently installed FishPig's extension on a Magento store, but have no experience with Magento upgrades yet in this regard. Upgrading Magento is never a piece of cake, though, is it? If you can manage to migrate the content from AW blog to WordPress, I wouldn't worry about SEO too much. Just set up proper 301 permanent redirects and you should be ...


3

@Marty Wallace If you're interested in really locking down your module, some people use http://www.ioncube.com/ to encode the Php code...and then you only give people the license once they have paid. Here's an answer on SO discussing the process at a high level: https://stackoverflow.com/a/4595441 . There's also http://www.zend.com/en/products/zend-guard . ...


3

To answer the question in your title: No. Instead it reads the modules configuration where class methods are defined as jobs, together with their own schedule. Inchoo documented it in this blog post: http://inchoo.net/magento/magento-configurable-cron/ Cron itself is more or less straightforward. As seen in the code below, it is defined in a config....


3

Take a look at Maxmind GeoIP javascript API. You can json encode your store location data. You can serve a store page instead of a map using latitude and longitude returned by GeoIP. https://www.maxmind.com/en/geoip2-city You can add the Google API to try to optimize for local search.


3

Flagbit-ChangeAttributeSet just wasn't updated at Magento Connect. Make sure to use version from Github. It definitly works for Magento 1.9. this is not good, better you recreate the product, even if you change the attribute set id of the product, you will have to work more to remove database entries of previous attribute set (garbage values) – MTM Sep ...


3

Yes. We can change product attribute set programmatically. I prefer to create massaction in catalog product grid to multiselect product and then select massaction for the products. Creating massaction in grid.php $sets = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter(Mage::getModel('catalog/product')-&...


Only top voted, non community-wiki answers of a minimum length are eligible