Magento Themes and Magento Extensions

MAGENTO: HOW TO CHECK IF USER IS LOGGED IN

Share
Posted on November 8th, 2012 | Posted by admin

MAGENTO: HOW TO CHECK IF USER IS LOGGED IN

There are some instances that you want to offer a coupon code or private sales in your site. In order to for you to do that you need to check if the user logged in using the following code:

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

 //paste your coupon code or private information here. 

<?php endif; ?>

Also you can use this helper method. It does exactly the same as abov

How to import configurable products from CSV File into Magento System

Share
Posted on November 5th, 2012 | Posted by admin

Unlikely the default Magento import module, this fully customizable bulk import module allows you to import configurable products through CSV feed.
Module features:

  • Import from CSV feed
  • Create CSV for import
  • Import configurable products and their associated simple products.
  • Import images / multiple images / gallery images from remote server.
  • Supports cron job
  • Copy the file Productwithconfigurablesandcategories.php located in
    Productwithconfigurablesandcategories.zip (file attached to this post) to the folder /app/code/core/Mage/Catalog/Model/Convert/Adapter/.

How to transfer magento to a new host

Share
Posted on November 4th, 2012 | Posted by admin
  • Go to your Cpanel > File Manager and then select all your magento files and then click compress to create a zip file of the magento files.
  • Download the zip file by going to http://yourdomainname.com/backup.zip (Replace youdomainname.com with your domain name and backup.zip with the name of your zip file)
  • Then go to phpmyadmin and on your left click on the database name and then click Export. Select Custom Export Method and choose Output “Save output to a file “ and then choose Compression “zipped or gzipped” and click Go. This will download the compressed database/mysql dump file.
  • On your new host, upload the zip file using ftp (Filezilla) and then go to Cpanel > File Manager and select the zip file that you uploaded and click extract.
  • Create a new database on the new host and add the database user to it.

How to delete an order from Magento database

Share
Posted on October 27th, 2012 | Posted by admin

How to delete an order from Magento database

Sometimes, when you have a bad order, then you might want to delete all the data connected to that bad order. So, here is how to do it.

Lets say, your order ID is 102455667

. So goto your phpmyadmin and run this SQL,

SET @increment_id = '102455667';

SELECT *
    FROM `sales_flat_quote_address_item`
    WHERE `sales_flat_quote_address_item`.`quote_address_id` IN (
        SELECT `address_id`
            FROM `sales_flat_quote_address`
            WHERE `sales_flat_quote_address`.`quote_id` IN (
            SELECT `entity_id`
                FROM `sales_flat_quote`
                WHERE `sales_flat_quote`.`reserved_order_id` = @increment_id
                )
        );

How to Add Categories in Magento

Share
Posted on October 23rd, 2012 | Posted by admin

Adding new categories in Magento is simple. Go to Catalog > Manage Categories page. Select parent category to which you want to add new one by clicking on it on the category tree shown on the left side of the form. Parent category values will be filled in the category form on the main part of the editor form. To add new category, click on the ‘Add Subcategory’ button on the left top side of the editor. Once the form values are cleared, you can start filling the new category data. Most of the available fields are self explanatory.
Is Active – defines if category is visible to site visitors

Display Mode

Products Only – category will only show products

Static Block Only – show only static block defined on next attribute (do not show products)

Page 5 of 22« First...«34567»1020...Last »