Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33302

Magento Community version 1.9

0 votes

How to call the saveConfig function in Magento 1.9

You missing Mage::app() Below is the simple code to save/update configuration from your root directory PHP file. <?php require_once('app/Mage.php'); Mage::app(); Mage::getConfig()->saveConfig("noti …
Akhil Gupta's user avatar
  • 1,956
0 votes

js merge carousels sliders are breaking when js merge

Uncaught TypeError: jQueryowlCarousel is not a function This error means you called the function jQueryowlCarousel before it was defined.(Due to JS merge) I assume you have a third party slider …
Akhil Gupta's user avatar
  • 1,956
1 vote
Accepted

How to make a php file at Magento root directory through plugin

If using Magento 1 Put the below code wherever you want to create a php file in root directory. try{ $_dir = Mage::getBaseDir(); //i.e. /var/www/html/magento $_fileName = 'SAMPLE.php' …
Akhil Gupta's user avatar
  • 1,956
0 votes

How to make a php file at Magento root directory through plugin

If using Magento 2 You can put this code in your plugin to create a file in ROOT directory. try { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $filesystem = $obj …
Akhil Gupta's user avatar
  • 1,956
0 votes

Continue Button on 'Billing Information' on checkout page not work in magento 1.9

So you have problem with below controller action checkout/onepage/saveBilling/ (Here checkout is the module name, onepage is the controller name and saveBilling is the action name) Things you can …
Akhil Gupta's user avatar
  • 1,956
5 votes
Accepted

Best way to Insert multiple new rows for custom module inside foreach loop

if we want to go with magento only then below code works great, I used $_model->unsetData(); i don't need to load model in foreach loop. $_model=>Mage::getModel(''); foreach($result as $data): $_m …
Akhil Gupta's user avatar
  • 1,956
0 votes

Product by category id in magento

To get products by category ID: $_categoryId=YOUR_CATEGORY_ID_GOES_HERE; $_products = Mage::getModel('catalog/category')->load($_categoryId) ->getProductCollection() ->addAttribute …
Akhil Gupta's user avatar
  • 1,956
0 votes

How to display subcategories on category page?

Use below code $_category = Mage::registry('current_category'); $subcategories = Mage::getModel('catalog/category')->getCategories($_category->getId()); foreach ($subcategories as $subcategory){ ? …
Akhil Gupta's user avatar
  • 1,956
1 vote

I cannot find the local codePool in magento

By default magento doesn't have local codepool. This need to be created if we are doing some project level customization by using custom module. For extensions also its not recommended to use local …
Akhil Gupta's user avatar
  • 1,956
0 votes

Can i remove default js/calendarview/calendarview.js?

I don't think JS js/calendarview/calendarview.js exist in default magento. Please tell complete version of your Magento. Although to find the uses of any JS in magento you can search in layout sectio …
Akhil Gupta's user avatar
  • 1,956
0 votes

Quantity box for each size of product

Here are the steps as per your requirement: Create simple products (per size) & mark them as not visual individually. Create one group product (Associate all simple products with them) in front end …
Akhil Gupta's user avatar
  • 1,956
3 votes

Approach to third party module customisation

Is there a way to override/make a higher priority file, instead of straight up editing the files ? "We should not modified third party modules or extensions just like we don't modify core files …
Akhil Gupta's user avatar
  • 1,956
0 votes

How to create custom link for category?

Easiest possible way to do is: Admin Level: In the category(Football) description you can add some script: <script>window.location.href = "http://www.football.com";</script> Code Level (Dirty way) …
Akhil Gupta's user avatar
  • 1,956
0 votes
0 answers
237 views

Magento 1.9: Form Key is generating on each refresh

some items in cart having different form_key & others having different keys. Because of that items having old key can not delete from cart & form_key is generating on every refresh. I found that if w …
Akhil Gupta's user avatar
  • 1,956
2 votes
2 answers
5k views

Best way to Insert multiple new rows for custom module inside foreach loop

To insert multiple records inside foreach loop we have two options: example: foreach($result as $data): $_model=>Mage::getModel(''); $_model->setField1() $_model->setField2() $_model->setField3( …
Akhil Gupta's user avatar
  • 1,956

1
2 3 4 5
7
15 30 50 per page