New answers tagged

0

It is just wrong, all online literature on this topic is on how to edit the index.php file around "if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE']). . ." line, while on the file info Magento recommends: "* Do not edit or add to this file if you wish to upgrade Magento to newer . . ." The simple answer is that you must set or not the value of $_SERVER['...


0

The problem that I just stumbled across was that this "footer before" block does not follow Magento's naming conventions. I tried referencing it by "footer_before" which did not work, I had to use "footer.before" according to RWD's page.xml: <reference name="footer.before"> <block type="page/html" name="foo" after="-" template="template.phtml" /...


2

This is pretty simple to do you just need to add your additional routes like so <routers> <representatives> <use>standard</use> <args> <module>Mage_Representatives</module> <frontName>dealer-questionnaire</frontName> </...


0

Is there a chance throwing an exception would halt execution? public function hookToAddToCartBefore($observer) { $request = $observer->getEvent()->getRequest()->getParams(); $product = Mage::getModel('catalog/product')->load($request['product']); if($product->getSku != "TEST"){ //Display message error Mage::...


2

I think this will be because magento is failing to determine the "remote address" app/code/community/Phoenix/Worldpay/controllers/ProcessingController.php:165 // validate request ip coming from WorldPay/RBS subnet $helper = Mage::helper('core/http'); if (method_exists($helper, 'getRemoteAddr')) { $remoteAddr = $helper->...


0

For those who are using PHP 5.3 (or less than 5.4), then here are some parts of the patch you would need to change. For reference, this is for PATCH_SUPEE-11155_CE_1.7.0.2_v4-2019-08-01-03-58-34 app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php $allowedHtmlTags = ['text', 'styles']; FIX: $allowedHtmlTags = array('text', 'styles');...


1

Use media query for it. Learn about media query here. You can use snippet below with necessary changes. @media (min-width:1281px) { // Change min-with value according your requirement // Your CSS here } Hope it will helps you.


1

Try this, add your CSS inside this block @media (min-width:1281px) { .... /* your css code */ .... }


0

I have the same error even though I have added a link page to my amazon account but it doesn't work. So does anyone have any other solution that can solve this problem? thanks


0

First: Add form_key from template file <?php echo $this->getBlockHtml('formkey'); ?> Second: add form key to param var formKey = jQuery('#Your_form_id').value; jQuery.ajax({ url: "/package/module/index/index", type: "POST", data: {name: user_name, dob: date_of_birth, form_key:formKey}, success: function(response){ console....


0

Get form_key <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $key_form = $objectManager->get('Magento\Framework\Data\Form\FormKey'); $form_Key = $key_form->getFormKey(); ?> Javascript code <a href="javascript:;" onclick="Test()">Javascript</a> <script type="text/javascript"> function Test(){ ...


Top 50 recent answers are included