PHP, Magento, Codigniter, Opencart and Wordpress Developer. Contact for school and college projects on PHP, Codiegniter, Wordpress, Mysql etc.
Thursday, 24 September 2015
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';
Subscribe to:
Posts (Atom)