Thursday, 24 September 2015

Magento: How to delete ‘Url Rewrite Management’ URLs?


You can delete some ‘Url Rewrite Management’ URLs form follow the following steps:


1. Open your magneto database.


2. Open  ‘core_url_rewrite’ table.


If you want delete all URLs, then empty the table.


                                  or


want delete some particular URLs, then search and delete URLs. Like- You want delete "Mens" category URLs, then search "mens" with like operator and delete all URLs. 


3. Now open magneto backend and Reindex Data.


Above steps will delete all manually and system created rewrites URLs. Now you can recreate only needed URLs and your category and products URLs will recreate automatically.



Wednesday, 16 September 2015

Magento: Product Review Form is not submitting.

While I submit the Product Review form in magneto but it is not submitting and not showing any error message.

Then I checked the Review form. I found some error in code. 


<?php echo $this->getBlockHtml('formkey'); ?>


was not writting.  So I added this code in "form.phml" of Review after form tag.


Now code looks like :


 <?php if ($this->getAllowWriteReviewFlag()): ?>

    <form action="<?php echo $this->getAction() ?>" method="post" id="review-form">

<?php echo $this->getBlockHtml('formkey'); ?>


        <fieldset>

Saturday, 27 June 2015

How can add custom option title in dropdown option in magento

Open file:  app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php


Find following code (Maybe line number - 59):


         $select->setName('options['.$_option->getid().']')
                              ->addOption('', $this->__('-- Please Select --'));


add this line at above of code:


                      $getOptionTitle= ucwords($_option->getTitle());


Now code looks like as:


         $getOptionTitle = ucwords($_option->getTitle());

                                ->setName('options['.$_option->getid().']')

                                      ->addOption('', $this->__('-- Please Select'.$getOptionTitle. '--'));


Now go to frontend. And check now, Title of Custom Option is displaying in drop down.

Monday, 13 April 2015

How To Change Admin Password in Magento

Go To phpmyadmin. 

Open 'admin_user' table in database.

And execute following mysql query:



UPDATE `admin_user` SET `password` = MD5('NEWPASSWORD') WHERE `username` = 'ADMINUSERNAME';