Magento Resource | E-Commerce Generation Explorer

CAT | module

This article will show you how to write custom shipping method in Magento commerce.
First we need to write our shipping method, it’s a class in folder app/code/core/Mage/Shipping/Model/Carrier/.
You can create a new one which codes as below, I named it as newflatcustom.php (you can copy from Flatrate.php):
(more…)

·

Here is a quick reference for you, if you run Magento under Multi-language, Multi-Currency or Multi-Domain (Multi-Website).

Sometime you need pick up the Store ID do some (IF…ELSE…) work. Here is the code:

1
<?php $store_id = $this->helper('core')->getStoreId(); echo $store_id; ?>

· ·

From the default MAGENTO template, you always can see the call out images on the left/right side.

We can easily turn on Template Path hints in the admin section:
1.Admin > System > Configuration
2.Switch your “Current Configuration Scope” to your store
3.Click on the Developer Tab (bottom left) and find the Debug area
4.Template Path Hints: Yes
5.Then refresh your debugging page, you will see all the paths on the screen
(more…)

· ·

Magento blank theme:
magento-core/Interface_Frontend_Default_Blank
magento-core/Interface_Frontend_Default_Modern
magento-community/Free_Mage_Theme
magento-community/Basic_Template
magento-community/templatemonster_theme
magento-community/Monk_Twitter
magento-community/Beck_LiveChat

Language Pack:
French: magento-community/Locale_Mage_community_fr_FR
German: magento-community/Locale_Mage_community_de_DE
Spanish: magento-community/Locale_Mage_community_es_ES
(more…)

· ·

This may a simply question, but I still want point out where can fully disable module, so you need go to module config file, like /etc/YourMyModule.xml, and set the active parametar to false, like:

1
2
3
4
5
6
7
8
9
<?xml version='1.0'?>
<config>
<modules>
<YourMyModule>
<active>false</active>
<codepool>local</codepool>
</YourMyModule>
</modules>
</config>

All done!

·

If the magento, there are many built-in features are not useful to you or to your customers you can always disable them via the admin interface by disabling their respective modules.

Wishlist is not one of them.

To remove all of the traces of the wishlist functionality you need to do the following:

1. Go to the Admin interface (select the appropriate scope) and under System -> Configuration -> Customers -> Whishlist select “No” under the “Enabled” in the General options.

This will remove all of the whishlist links in the magento blocks as well as the whishlist itself.

2. (your template name)/template/catalog/product/view/addto.phtml and remove the “pipe” character from that file so that it doesn’t disturb the looks of your site

3. Go to: System -> Configuration ->Advanced->Advanced and set disable “Mage_Whishlist”

That’s it. All Done!

· ·

How to use PHP on a CMS page (MAGENTO custom Block/module)
Here is a guide to explain how to use PHP on a CMS page.
This involves creating and/or extending and/or overriding a controller class.
Here are the basic instructions to create a custom module:

1. Declare the module: app/etc/modules/YourModule_All.xml

1
2
3
4
5
6
7
8
9
< ?xml version="1.0"?>
<config>
<modules>
<yourmodule_custom>
<active>true</active>
<codepool>local</codepool>
</yourmodule_custom>
</modules>
</config>

(more…)

· ·

Theme Design by devolux.nh2.me