Monday, June 29, 2015

How To Reset Wordpress Password

Hi guys, In this post i am going to show you how to reset your magento password if you forget it not to worry at all. All what you need to do is you need to login to your phpMyadmin panel.

select wp-user table over there


it will show up users in left hand side you need to edit it

now you need to put you desired password in user_pass by selecting md 5 in dropdown

Then click on go botton

Thats all done now try login with the new password.

Hope this post will help you.



How to Reset Zencart Password

Hi guys, in this post i am just going to show you how to reset zencart admin password if you loss it. by default zencart ask to change password after every three months in this case it my be difficult to remember the password. So you if forget your password of admin panel of zencart not to worry about it. you can reset it from you phpMyadmin panel it is quite very easy. you need to execute two sql command that is one to delete the current admin and second one is to insert admin new information.

to delete current admin user of your zencart store you need to execute

DELETE FROM admin WHERE admin_name = 'admin'; 

you need to change admin to the admin username of you zencart store. then you will have to insert fresh admin user information for this you will have to execute

INSERT INTO admin (admin_name, admin_email, admin_pass, admin_profile) 
VALUES ('admin', 'admin@yoursite.com', '351683ea4e19efe34874b501fdbf9792:9b', 1);

change admin email to you store admin email. now

User: admin
Password: admin

is set you can now try login to your admin panel it will ask you to change the password as after fresh installation.

hope this post will you help you.

Thursday, June 25, 2015

how to add custom additional tab for my magento description

Hi guys if you are looking for how to make your own custom tag in magento product description section like specification, benefits or ingredients you need to play with attributes. In my case I have made two tabs benefits or ingredients. The process of adding extra tabs I am describing here hope this will help you.
1.       You need to modify a file which is app/design/frontend/YOUR_THEME/default/layout/catalog.xml
Look for the code

<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
                    <action method="addToParentGroup"><group>detailed_info</group></action>
                    <action method="setTitle" translate="value"><value>HOW TO USE</value></action>
                </block>

Under this code you need to add a block in my case I have added two blocks

<block type="catalog/product_view_attributes" name="product.benefits" as="benefits" template="catalog/product/view/benefits.phtml">
                                                                    <action method="addToParentGroup"><group>detailed_info</group></action>
                                                                    <action method="setTitle" translate="value"><value>BENEFITS</value></action>
                                                                </block>


<block type="catalog/product_view_attributes" name="product.ingredients" as="ingredients" template="catalog/product/view/ingredients.phtml">
                                                                    <action method="addToParentGroup"><group>detailed_info</group></action>
                                                                    <action method="setTitle" translate="value"><value>INGREDIENTS</value></action>
                                                                </block>

After that you need to create phtml file for each block which will be saved under app/design/frontend/YOUR_TEMPLATE/default/template/catalog/product/view
I have made two files benefits.phtml and ingredients.phtml as described you I had added two blocks under these phtml file you need to write some codes. In benefits I have written

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<?php if ($_product->getbenefits()):?>
                <div class="short-benefits">
                    <h2><?php echo $this->__('benefits') ?></h2>
                    <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getbenefits()), 'benefits') ?></div>
                </div>
            <?php endif;?>

And in ingredients I have written

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<?php if ($_product->getingredients()):?>
                <div class="short-ingredients">
                    <h2><?php echo $this->__('ingredients') ?></h2>
                    <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getingredients()), 'ingredients') ?></div>
                </div>
            <?php endif;?>

Once these you have completed you need to login to you magento admin panel and go to
Catalog->attributes->manage attribute



Click on add new and assign the same name as defined in the block like in name=” product.benefits” then make the attribute with benefits name in Catalog Input Type for Store Owner select text area.
If you wish to allow html editor then in Enable WYSIWYG select yes



Now in the left hand side manage label / options
Put the name of the tab like benefits



Now you have made your attribute to assign it you need go to catalog->attributes-> manage attribute sets



Over these select default. Once you click on default you will see in right Unassigned Attributes with the attribute that you have made simpally you need to drag it to your group I had put it after short_description and click on save. Now you are done.

Go catalog manage product and you will see a box that will ask you to enter benefits once you put the content over there it will show up in your produt desctiption page or product view page of your mangento store.



final result

Monday, June 22, 2015

Display Reviews Starts on Product listing page Magento

hi guys if you want to display reviews rating stars on product listing page or anywhere else you will need up the following code.

<?php
$storeId = Mage::app()->getStore()->getId();
$summaryData = Mage::getModel('review/review_summary')->setStoreId($storeId)  ->load($_product->getId());
?>
<div class="ratings" style="text-align: center;">
        <div class="rating-box">
            <div class="rating" style="width:<?php echo $summaryData['rating_summary']; ?>%"></div>          
         </div>
</div>



Just you need to copy and paste above code to your program and you are done after placing this code you might need to delete cache of magento which is under var/cache.

if you need any other help or facing any issue please comment i will get back to you soon with you reply.


Wednesday, June 3, 2015

can not login to magento after installation

Hi guys if you can not login to magento admin panel after installation it's not an issue. All what you need to do is you will have to modify up a file of magento.



Go to:
app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

and look for this code.

$cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()
        );

        if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }

you need to comment all of these codes. or you can replace this code with

/*$cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()
        );

        if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }*/

After this modification open your admin URL

http://domain.com/index.php/admin

and now try login with the username and password that you have setup on the installation time.

Note: This is tested on magento ver1.9.x

Friday, April 24, 2015

Magento dimensional magento free download

If you want to to set you custom dimensional shipping in magento according to height, width, length and weight you can use this extension.



To use this extension you should have little bit knowledge about php. You need to edit a file according to your condition

How to use


  1. extract magento-dimensional-shipping
  2. Go to app -> code -> local-> Foobar -> Shipping -> Model -> Carrier -> Customrate.php
  3. open Customrate.php in any editore like notepad dreamviewer or anything you use
  4. Go to line 17 and change values to you own condition
  5. upload all the folders in root directory
  6. login to magento admin


clear all cache and you are done!!!!!!!!

Hope this plugin will short it up.

Wednesday, February 4, 2015

WP-Galleriffic galleriffic WordPress extension plugins

Galleriffic is a jQuery plugin that provides a rich, post-back free experience optimized to handle high volumes of photos while conserving bandwidth. You can download the source file form http://www.twospy.com/galleriffic/


If you are developing a wordpress website you can use galleriffic gallery using this extension you can download it from here.

How to use galleriffic wordpress extension

1. First of all you need to download the css and js file form http://www.twospy.com/galleriffic/
2. Then you need to call it in you header file you can get this file under wp-contents->themes->your_theme->header.php
3. Then you need to extract and upload the plugins file to wp-contents->plugins
4. After uploading wordpress extension to your plugins folder you need to setup your gallery follow these steps






Shortcode for gallery [nggallery id=1 template="galleriffic"]