Hot answers tagged

18

There are issue in Linux kernel security module (Security-Enhanced Linux (SELinux)) i.e SELinux permission issue. http://en.wikipedia.org/wiki/Security-Enhanced_Linux I have doing this by chcon -R -t httpd_sys_rw_content_t /var/www/html/magento/ chmod -R a+w /var/www/html/magento/


13

I'm not 100% sure what you mean by 'get', I thought you meant add it but as it's already there in the blank and Luma theme and the previous answer is pretty much correct I presume you want to move it so I'll base my answer on that. Quick answer: <move element="form.subscribe" destination="*DESTINATION-HERE*" /> The explanation: Find the block name ...


13

The configuration of the footer can be seen in this file: vendor/magento/module-theme/view/frontend/layout/default.xml I was able to modify the footer declaration by creating my own default.xml file at app/design/frontend/<Vendor>/<ThemeName>/Magento_Theme/layout/default.xml with this content: <?xml version="1.0"?> <page xmlns:xsi="...


10

I ended up in using the below solution. I saw it is a quite common configuration for multi-language Magento websites. This solution provides a default language with a redirect from "normal" url (urls without lang subfolder) to urls with the default lang subfolder. For example, if it is the default language, it happen this: example.com/ --> ...


8

Is this true? I thought the sql-statements for database-upgrades would be wrapped in a transaction, so they could be rolled back if anything goes wrong. Your engineering instincts are sound, but what happens in the real world of business startup programming is more complicated/ugly. Magento's setup resources system does not wrap individual scripts in a ...


6

I found out what was my problem. Firstly I enabled the template path hints mode as described here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/debug-theme.html Thanks to path hints, I understood that the theme was not using the footer.phtml file, but was using bugreport.phtml and copyright.phtml both from the magento-theme module. So ...


5

None. They use the same processes in Magento 2.


4

The collectRates() methods gets called every time when Magento recalculates the quote totals. Magento recaculates the totals whenever it thinks the totals may have changed. E.g. when checking out with one shipping methode enabled (vanilla installation), collectRates() is executed when when the entered shipping address is saved (starting at ...


4

The security patch SUPEE-1533 is already there in magento 1.9.1.0.


4

If you wanted this as a feature you can write a module, and observe the save product event and loop through all the stores and either: condition based looking for "english" if they are named like that hardcode the id's provide a configuration option in the admin to select the english stores. add an attribute to the store object Another way to do it as a ...


4

It's most likely that there is a module installed, or a custom theme installed, that has trailing whitespace after the closing ?> in a file or class. Because it's happening with both Mage.php and Config/Options.php, I would look at those two files first. After that, disable all local modules and follow the standard debug process outlined here: ...


4

We should use Widget: CONTENT > Widgets > Create a new widget with our custom static block, in Layout Updates, should choose Display on - All Pages


3

Try to add the missing attributes in your models config.xml <global> ... <sales> <quote> <item> <product_attributes> <yourmissingattribute/> </product_attributes> </item> </quote> </sales> ..... <...


3

You can find patches for Magento CE versions 1.5.x and below for the SUPEE-5344 exploit on this website https://www.nublue.co.uk/blog/magento-remote-code-execution-bug-patches-for-pre-1-6-versions/. It should not be any trouble to patch.


3

Don't do chmod -R 777 /var/www/html since that will make your whole site writeable. See Magento Writeable Permissions Try Setting your folders, app and media to chmod -R 777 /var/www/html/magento/media chmod -R 777 /var/www/html/magento/var chmod -R 777 /var/www/html/magento/app/etc


3

You can get that analyzing 'core_resource' table. If you will know which sql updates were executed in which version of magento.


3

To change label "Telephone" only on billing, you can edit below file. app/design/frontend/[THEME_PACKAGE]/[THEME]/template/checkout/onepage/billing.phtml To change label "Telephone" on checkout page, you can use below file. app/locale/en_US/Mage_Checkout.csv Try using template path hints to checkout the file path if you are not using default Magento ...


3

Index Management in Magento The data that gets registered in the table "index_event" comes from different function from each of the files listed below for each Indexer. Let's pick 1 example say, app/code/core/Mage/Catalog/Model/Product/Indexer/Eav.php - This is responsible for the "Catalog Product Indexer (EAV mode)" This contains 1 such function - ...


3

For a Magento front-end dev position I would looking these skills: Php Basic: Basic Syntax Print/Echo Variables Call Functions Understand / Handle Controls (if, for, foreach, while etc..) Pro (nice to have) Understand Clases (OOP, Hierarchy, Scopes, etc) Basic Knowledge for Blocks Creation/Handling Basic Knowledge to deal with Models / Collections ...


3

I just adjusted my composer.json file to use 2.0.4 instead of 2.0.2 (by hand), and afterwards ran composer update and php bin/magento setup:upgrade. Worked flawless in here. I believe the Magento Composer installer package handles the installation of files in the app/ etc. folders, which also updates stuff on upgrade. But, this last part is just assumption ...


3

if you are creating your own them in view/frontend/layout/default.xml put tag like this <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="footer"> <block class="Magento\Newsletter\...


3

You need to overwrite Mage_Catalog_Block_Product_View_Type_Configurable class #app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php public function getJsonConfig() { $config = Zend_Json::decode(parent::getJsonConfig()); $productsCollection = $this->getAllowProducts(); foreach ($productsCollection as $product) { $...


3

Use below code (Tested & Working): $str = "Chains-23x10 5R 12"; // Pass Product name here $strArr = explode("-", $str); //print_r($strArr); if(count($strArr) == 2){ echo $strArr[0]; echo "<br>"; echo $strArr[1]; }else{ echo $str; }


2

After much troubleshooting, the problem appears to be the inefficiencies of the Magento caching system. The implementation of TURPENTINE (to complement VARNISH) ended up accelerating and making the problem more pronounced as the Site Crawler was Enabled to warm the cache. Came across this article describing the issue I was having and provided a solution. ...


2

OBSERVER: auto_add_on_coupon_insertion 4.7411 2 2,388,872 3,145,728 seems to be a big contributor. Default Magento 1.8 does not have such an event observer. As a first step I would suggest going through any installed custom extension to see if disabling it solves the slowness.


2

Magento support confirmed it's a core bug. In Mage_CatalogRule_Model_Resource_rule::insertRuleData at about line 247 the code: if (count($productIds) > 0) { $selectByStore->where('p.entity_id IN (?)', $productIds); } Should be replaced by if (count($productIds) > 0) { $selectByStore->where('p.entity_id IN (?)', array_keys($productIds)); ...


2

Here you have all the diffs between versions. And here are some notes when releases come out.


2

Looking at Using Javascript to validate response in the text box pointed me in the right direction. I still have to clean up the code and integrate it correctly in firecheckout, but the following code basically does exactly what I want: /** * Check if customer email address already exists */ public function checkEmailexistsAction() { if ...


2

getAttributeText() is able to give you all the labels for a field, the "problem" is, that if only one field is chosen, it returns a string, if more than one field is chosen it returns an array of strings. So you have to check whether it is an array or a string and process it.


2

I could not find an extension that does exactly what I need, so I created one myself: MobWeb_CopyStoreViewValues. It uses the catalog_product_save_before observer as suggested by @joel-davey: class MobWeb_CopyStoreViewValues_Model_Observer { public function catalogProductSaveBefore($observer) { // Load the helper & config $...


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