Malgorzata Dziedzic's blog

Magento widgets

Can't wait to see stable Magento 1.4 . One of the news I am so looking forward are widgets.

What are these you ask?

Widgets allow you to add informational and marketing content on your site easily in administrator panel. For example you will be able to insert links to products, links to categories or links to cms pages, add CMS Blocks, add new, recently compared, recently viewed product lists - and all this in nice and simple way directly in backoffice. You will not need any programming knowledge to add dynamic content on your store pages.

Widgets can be inserted directly on CMS pages:

        Add widget

All you need to do is choose widget type...

        widget insertion

...and see it on your CMS page.

Or you can put widgets on other (not Cms) pages for example cart, product or category page. For that choose from top admin menu CMS > Widgets and click "Add New Widget Instance" button.

Add instance button

Choose the one you want and click continue button. Then you can to specify where widget will be displayed by creating layout updates:

widget

That is it, your widgets are exactly where you need them.

How to use Magento Shipping Table Rates

With Magento you can set few kinds of shipping methods: flat rate, table rates or even real-time carrier rates from UPS, FedEx and DHL. You can also use free shipping discounts, that can be created for order amounts, or as part of specific marketing promotions.

To set shipping methods in backoffice go to System -> Configuration and choose from the left navigation "Shipping methods". When you want to use Table rates you can choose one of three conditions avalaible:

  • Weight vs. Destination
  • Price vs. Destination
  • Number of Items vs. Destination

You also need to create csv file for your table rates. You can first export one from magento to have a template. To do that you will need to change scope for your website in "Current Configuration Scope" (top left select box). Choose "Main website" for example. Then in Table rates you will be able to see "Export CSV" button.

Export table rates

Export and save tablerates.csv on your computer. The CSV file should looks like:

"Country","Region/State","Zip/Postal Code","Weight (and above)","Shipping Price"
"FRA","*","*","0.0000","11.0000
"FRA","*","*","10.0000","13.000"
"FRA","*","*","20.0000","15.0000"

Above lines define shipping rates for all regions in France. As you see weight condition is set as "from and above". So when order wieght is 0 and above (0-10 kg) shipping wil cost 11 euros, when its 10 and above (10 - 20 kg) shipping is 13 euros. When order weight is above 20 kg you will pay 15 euros for shipping. Even when it's 100 kg or 1000 kg you will still pay 15 euros! The problem with condition "from and above" is that you are unable to set maximum weight. So lets make these conditions work in "up to" way.
In "up to" way tablerates.csv like:

"Country","Region/State","Zip/Postal Code","Weight (and above)","Shipping Price"
"FRA","*","*","10.0000","13.000"
"FRA","*","*","20.0000","15.0000"

will define that for order which weight is up to 10 kg (0-10 kg) shipping cost is 13 euros. For orders up to 20 kg (10 - 20 kg) it's 15 euros. So the maximum weight for table rate is 20kg. Above 20kg you will have no table rate available.

To make table rates work that way function getRate() from Mage_Shipping_Model_Mysql4_Carrier_Tablerate needs to be overwriten. First we need to create new module under /code/local directory and configure it:

Magento module

<?xml version="1.0"?>
<config>
    <global>
        <models>
            <shipping_mysql4>
                <rewrite>
                    <carrier_tablerate>Baobaz_Shipping_Model_Mysql4_Carrier_Tablerate</carrier_tablerate>
                </rewrite>
            </shipping_mysql4>
        </models>
    </global>
</config>

 

Our module needs to be activated by creating file Boabaz_Shipping.xml in app/etc/modules directory:

<?xml version="1.0"?>
<config>
    <modules>
        <Baobaz_Shipping>
            <active>true</active>
            <codePool>local</codePool>
        </Baobaz_Shipping>
    </modules>
</config>

In new module create class Baobaz_Shipping_Model_Mysql4_Carrier_Tablerate that will extend core magento class Mage_Shipping_Model_Mysql4_Carrier_Tablerate.

class Baobaz_Shipping_Model_Mysql4_Carrier_Tablerate extends Mage_Shipping_Model_Mysql4_Carrier_Tablerate
{}

Then lets copy/paste getRate(Mage_Shipping_Model_Rate_Request $request) function from core class and change few last lines at the end of the function:

$select->where('condition_value<=?', $request->getData($conditionName));

$select->order('condition_value DESC');

to:

$select->where('condition_value>=?', $request->getData($conditionName));

$select->order('condition_value ASC');

That will make table rates conditions work in "up to" way.

Magento Taxes

Whether you are retailer or wholesaler you might need to manage taxes in your online store. Magento allows to add tax classes for products and customers in Sales > Tax tab. In here you are also able to set Tax rates for products that will be exported to other countries (Import/Export Tax Rates) .

Magento Tax menu

When you have set products tax classes, you may choose to display prices in catalog  to include TVA or not. For that you need to set value for "Catalog prices include tax" in System > Configuration > Sales > Tax > Calculation.

Tax calculation - Magento

When you define promotions in your store remember to define which prices it will be applied to: prices with or without TVA by setting "Apply Discount On Prices Including Tax". This is important because in some place your customers may end up with discount prices but TVA still calculated from the original price.

Magento's Marketing Tools - Price Management

Why is Magento so great for e-commerce? Because it provides a lot of marketing tools, that make e-Commerce projects succesfull. Among them you can find promotions, newsletters, cross selling, tier prices, coupons, gift certificates, membership discounts, free shipping, etc.
If price management and promotions are important in your marketing strategy, here is a little guide what you are able to do with Magento on this field.

  • Product special price - Allows you to set special price for a product. New price will be valid between from and to dates.

Magento special prices in admin panel

Magento special price

  • Tier Prices enable you to set different prices per product depending on the amount bought by a customer.

Magento tier prices in admin panel

Tier prices

  • Catalog Promotional Pricing lets you set promotional price by percentage or fixed amount. You are able to specify complex conditions and restrict promotional prices to stores, categories or products. Very usefull tool. Rule below will aply to all blue products in category with ID 3.

Promotions

  • Coupons with ability to restrict to stores, customer groups, time period, products, and categories. Once the customer reaches the cart and gives proper coupon code discount is applied.

Others price marketing tools are available on Magento Connect...

e-Shop must-haves – Magento has them all!

There are not many things so convenient like shopping in the net. All you have to do is get a coffee in your hand, go through products in the store, pay and just wait for a delivery :-). No long hours walking in the stores, no heavy lifting, no queues at all ;-).

But haven't you ever thought that there is something wrong with the online shop you visited? For sure you did... Can't find your product? Too small images? Having to log in to see everything?

Not every online store thinks about customers convenience.

But Magento does it for sure:

  • Problem #1. Can not find product you need?

    Thousands of products in the category? No problem. With layered navigation in Magento you can filter category products how you want to. Still can't find it? :-) You have a search engine there!

  • Problem #2 .Too small images?

    You want to buy jewellery or clothes, but images in the store are small and poor quality?  In that case you can never be sure what you exactly buy. With Magento you get the full size product image Zoom. You can check every detail of your product .

  • Problem #3. Do you really have to log in?!?

    When you have chosen your products and want to place order, you are forced to register in the store. Account is a good thing when you make orders frequently. But for some people this is irritating. With Magento, customers can place orders as guests without forcing them to create accounts. Nice, isn't it?

  • Any other problem you encountered with online stores?

    Try Magento, you might be surprised how easily it solves it!