Magento Resource | E-Commerce Generation Explorer

CAT | administration

Setting up Google Adwords Conversion Tracking on your Magento store is relatively easy – but it’s not a built-in Magento feature, so you’ll have to edit a template file. Here are the 4 simple steps that need to be done:


1. Open this file:
/app/design/frontend/default/yourskinname/template/checkout/success.phtml


2. At the bottom of the file, insert this code:

1
2
3
4
    <?php
    $order_details = Mage::getModel(’sales/order’)->loadByIncrementId(Mage::getSingleton(‘checkout/session’)->getLastRealOrderId());
    $adwords_saleamt = $order_details->subtotal;
    ?>



3. Login to your Google Adwords account
Under the “Reporting’ tab, click on “Conversions” and follow the steps to get the code that you’ll also need to add to the success.phtml page. It will look something like this:

?View Code JAVASCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    <!– Google Code for Sale Conversion Page –>
    <script type=”text/javascript”>
    <!–
    var google_conversion_id = xxxxxxxx;
    var google_conversion_language = “en”;
    var google_conversion_format = “3″;
    var google_conversion_color = “ffffff”;
    var google_conversion_label = “KFKFKFKFKFKF”;
    var google_conversion_value = 0;
    if (200) {
    google_conversion_value = 200;
    }
    //–>
    </script>
    <script type=”text/javascript” src=”https://www.googleadservices.com/pagead/conversion.js”>
    </script>
    <noscript>
    <div style=”display:inline;”>
    <img height=”1″ width=”1″ style=”border-style:none;” alt=”" src=”https://www.googleadservices.com/pagead/conversion/0987654321/?value=150&amp;label=KFKFKFKFKFKF&amp;guid=ON&amp;script=0″/>
    </div>
    </noscript>



4. Copy Google’s code
And paste it at the very bottom of the page (below the php code from step 2).

· ·

Landing Page is the most important part of your website – it is the page your prospective customers see first, and having it designed well is essential. This video guide will show you exactly how to do that.

·

The first thing for you develop the magento is turning on the Template Path Hints!

·

Quick look for the Magento Administration interface – here, we can take a look into the back-end system that powers this E-Commerce platform. Just click Play to begin!




·

Subdirectory Method

This is the same scenario as above, except all of the shops will be in subdirectories, e.g.:

  • mall.com/shoes
  • mall.com/shirts

Here’s how we would set this up for the shoes subdirectory:

  1. Login to your site via SSH, and create a subdirectory where your second store will be:
    • cd public_html
    • mkdir shoes/
    • cd shoes/
  2. Copy the index.php and .htaccess file from the directory where Magento is installed, which would be in our root web directory:
    • cp ../public_html/index.php ../public_html/.htaccess .
  3. Open up the index.php file that we just copied over and replace the following line of code:
    1
    
    $mageFilename = 'app/Mage.php';

    …with the following:

    1
    
    $mageFilename = '../public_html/app/Mage.php';
  4. With the index.php file still open, replace the following line of code:

    …with the following:

    1
    
    Mage::run('shoes', 'website');

· · · ·

Adding Another Store In Magento

The first thing we need to do is setup our second store in Magento.

We’re going to do a hypothetical here for the naming conventions, and assume we own shirts.com. Adjust the values accordingly for your own store.

  1. Login to the Magento admin.
  2. Go to the Catalog tab, and select Manage Categories.
  3. Click on the Add Root Category button on the left.
  4. On the right, for the Name, we’ll enter Shoes.com. Set the dropdown to Yes for both Is Active and Is Anchor.
  5. Click the Save Category button.
  6. (more…)

· · ·

As I mentioned before, I am doing a multi-language and multi-currency website at that moment. So I found a lots information about how to setup the multiple store from internet. Here is a good one:

From crucialwebhost.com

———————————————————————————————————

There are numerous ways to setup multiple Magento stores that all share the same codebase and backend, but what method you use depends on your needs.

This article is written with cPanel in mind, though the methodologies listed below apply no matter what control panel you’re using.

There are numerous ways to setup multiple Magento stores that all share the same codebase and backend, but what method you use depends on your needs.
This article is written with cPanel in mind, though the methodologies listed below apply no matter what control panel you’re using.

(more…)

· · · ·

Some Methods to Speed up Magento – a Guide to Making Magento Faster
1. Install Fooman Speedster
This one made a massive difference to page loads for the first site I am testing.
http://www.magentocommerce.com/extension/457/fooman-speedster
2. Enable Gzip Compression in .htaccess
http://www.magentocommerce.com/boards/viewthread/7100/
To do this, uncomment this part in the .htacess: (Line 52)
#php_flag zlib.output_compression on
(ie Remove the # save and reupload)
(Next are from – http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/)
3. Install APC or Xcache
APC – http://pecl.php.net/package/APC
Xcache – http://xcache.lighttpd.net/
Looking at benchmarks and folks comments, it seems to be a toss of coin which one to go for.
I will probably go for APC on balance.
Will be asking my host to install this.
Ok. My host installed it. And further to Discovery posting below, thought I would add that in here to the main body. Discovery pointed out that thread here had extra tips once APC had been installed: http://www.magentocommerce.com/boards/viewthread/9882/
Essentially, after APC has been installed, you locate the local.xml file in the install. (Mine was here – /home/yoursitename/public_html/app/etc/local.xml
You then add the following code to just below:
<global>
<cache>
<backend>apc</backend>
<prefix>alphanumeric</prefix>
</cache>
I have to say that I actually have installed APC, and then tried this, but that it actually slowed down my server. Response times went up from about 2 seconds to 3 seconds.
Your mileage may however vary, so give it a go
4.”Modify the configuration for your MySQL server to take better advantage of your server’s RAM. Most Linux distributions provide a conservative MySQL package out of the box to ensure it will run on a wide array of hardware configurations. If you have ample RAM (eg, 1gb or more), then you may want to try tweaking the configuration. An example my.cnf is below, though you will want to consult the MySQL documentation for a complete list of configuration directives and recommended settings.”
They have a list of settings there for my.cnf as follows:
key_buffer = 512M
max_allowed_packet = 64M
table_cache = 512
sort_buffer_size = 4m
read_buffer_size = 4m
read_rnd_buffer_size = 2m
myisam_sort_buffer_size = 64m
tmp_table_size = 128m
query_cache_size = 96m
query_cache_type = 1
thread_cache_size = 8
max_connections = 400
wait_timeout = 300
Again, get your host to do it, (which is what I will be doing  ) or figure it out.
5. This thread here – http://www.magentocommerce.com/boards/viewthread/5366/P60/ – Includes a post from a Server Admin at Rackspace who had experience optimizing for Magento
The two that jumped out at me were:
a/ First off, I made some changes to your system, I increased the APC.shm.size to 128 This will allow more data to be cached by apc, in theory it’ll store more data.
(This sounds like it is linked to APC above – So maybe install APC first before doing this  )
6. From thread above:
“I also made some changes to the vhost.conf file for the shop site, historically disabling open_basedir allows magento to work slightly better.”
No idea what this is. Any guru’s care to comment? A step by step would be useful from someone if you know how to do it.

Some Methods to Speed up Magento – a Guide to Making Magento Faster

1. Install Fooman Speedster

This one made a massive difference to page loads for the first site I am testing.

http://www.magentocommerce.com/extension/457/fooman-speedster

2. Enable Gzip Compression in .htaccess

http://www.magentocommerce.com/boards/viewthread/7100/

To do this, uncomment this part in the .htacess: (Line 52)

#php_flag zlib.output_compression on

(ie Remove the # save and reupload)

(Next are from – http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/)

(more…)

·

You’ll probably know by now that the transactional email templates in Magento are a bit, with respect, “naff”. To edit through the admin will take forever and a day so here’s a couple of useful solutions to help make things easier.

1. Locate the email templates

The Magento email templates are located in (note: “en_US” may change depending on language).
magento\app\locale\en_US\template\email\account_new.html”:
magento\app\locale\en_US\template\email\admin_password_new.html”:
magento\app\locale\en_US\template\email\newsletter_subscr_confirm.html”:
magento\app\locale\en_US\template\email\order_creditmemo.html”:
magento\app\locale\en_US\template\email\order_creditmemo.html”:
magento\app\locale\en_US\template\email\order_invoice.html”:
magento\app\locale\en_US\template\email\order_invoice.html”:
magento\app\locale\en_US\template\email\order_new.html”:
magento\app\locale\en_US\template\email\order_new.html”:
magento\app\locale\en_US\template\email\order_shipment.html”:
magento\app\locale\en_US\template\email\order_shipment.html”:
magento\app\locale\en_US\template\email\order_update.html”:
magento\app\locale\en_US\template\email\password_new.html”:
magento\app\locale\en_US\template\email\wishlist_share.html”:
(more…)

· ·

If we don’t want our customer can add the TAG on the product page, here is a quickly solution:

On the Admin page, go to System>Configuration>Advanced

Then switching ‘Mage_Tag’ to Disable and clicking the ‘Save Configuration’ button.

All done.

· ·

Older posts >>

Theme Design by devolux.nh2.me