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>