Magento themes and extensions

Adding multiple products to the cart simultaneously in Magento

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

A while ago I wrote about adding multiple products to the shopping cart simultaneously. It turns out this seems to have stopped working from Magento 1.4 or so. Up until now, I’ve not really had the time to look in detail to figure out why. Finally, this evening, I got some time. So I dug deeper.

It turns out there seems to have been some changes in the way models persist their data, and unsetting and unloading/resetting them didn’t seem to cut it any more. Anyway, below is a fixed version of the previous post. Tested on 1.4.2.0 and 1.6.0.0.

This is a replacement for the file app/code/local/BTS/AddMultipleProducts/controllers/AddController.php;

Adding New Regions/States to your Magento Installation

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

You may have noticed that Magento doesn’t include the Region/State information for a lot of countries. This can be particularly frustrating if you’re trying to set up your shipping rules and would rather use states than postal codes or if you just want to show a nice drop down on the front end of Magento for your customers.

There is a solution, to manually add the information to  the tables in your database. The tables are directory_country_region and directory_country_region_name.  The table directory_country_region holds the region codes and region id and then the directory_country_region_name provides the translation for you locale by using the region id  and the locale you want to provide the translation for. Magento will then pick up on this and populate a drop down list.

I’ve already done this for the UK (translated to English only). Please find the CSV files at the below links which you can upload via phpMyAdmin. Don’t forget to change the delimiter to comma rather than semi-colon as it is by default.  These are provided as is and can be freely edited.

Adding Pinterest Button to Magento Product Page

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

Pinterest looks like it is going to be the next big thing to hit the internet. It has grown massively in a short amount of time and is a very effective marketing tool for e-commerce websites, providing you have good quality images.

I have recently added the “Pin-It” button to FOODO, my Australian food website. I tried to play with adding to to every page of the website but it wouldn’t work, so I had to settle adding it only to the product pages.

The page you want to add the code to is called view.phtml located within your theme at/app/design/frontend/theme/theme/template/catalog/product/.

Adding a Simple Product to Your Magento Store

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

This tutorial deals with how to add a simple product to your Magento site. Before you begin, you will want to have at least one category added to your store so that the product can be found by your customers easily. (If you need help adding a category, read this post first). Follow these steps to add a simple product to your Magento store:
Basic Configuration
Log in to your store admin panel and from the top navigation menu choose Catalog->Manage Products.
Click the button “Add Product” which will take you to the New Product page.
Leave the dropdowns as they are since we are creating a simple product, and hit “Continue”
Fill out the required Fields. There are several required fields that must be filled out in order to save the product. They are:
Name – The name that will be in the hyperlink to the product)
Description – a long description of the product to be shown on the product’s detail page

ADDING RELATED PRODUCT AND OTHER LINKS TO PRODUCT IN MAGENTO

Share
Posted on July 20th, 2012 | Posted by admin

Here is a simple way of adding product link such as Related, Upsell and Crosssell Link to a product in Magento. I just got the way of doing this and thought to share! So kind of me.

/**
First Create Link Array of following type
**/
$linkArray=array(‘product_id’=>array(‘position’=>’’));
/**
Then set the Link Data
**/
/** For Upsell Link**/
$product->setUpSellLinkData($linkArray);
/** For Crosssell Link**/
$product->setCrossSellLinkData($linkArray);
/** For Crosssell Link**/
$product->setRelatedLinkData($linkArray);
$product->save();
Page 1 of 212»