22
How To Setup Google Adwords Conversion Tracking On Magento
No comments · Posted by leo in administration, development, magento
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:
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&label=KFKFKFKFKFKF&guid=ON&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).
adwords · conversion · magento
15
Creating Magento Landing Pages – Video Guide
No comments · Posted by leo in administration, design, development, magento, video
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.
15
Template Path Hints – Video Guide
No comments · Posted by leo in administration, development, magento, video
The first thing for you develop the magento is turning on the Template Path Hints!
15
Magento Admin System – Video Guide
No comments · Posted by leo in administration, magento, video
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!
5
How to add Magento form validation on custom form
No comments · Posted by leo in cms, development, magento
Here is an example for how to add magento form validation to a custom form:
1 2 3 4 5 6 7 8 9 10 | <form action="samepage.php" method="post" id="form_to_validate">
<input id="name" name="name" type="text" class="input-text required-entry"/>
<input id="email" name="email" type="text" class="input-text required-entry validate-email"/>
</form>
<script type="text/javascript">
//< ![CDATA[
var form_to_validate = new VarienForm('form_to_validate',true);
//]]>
</script> |
Notes:
– For the form to be validate you need to add the appropriate classes to your input fields.
You will notice all of the input fields have one common class name, required-entry.
To find available class names, try going to One page checkout page, where you have checkout form, then simply view source and look for class names next to input, radio select and other fields.
– Also you must add the Javascript code at the bottom of your custom form. It is quite important!
form · magento · validation
29
Custom shipping method in Magento
3 Comments · Posted by leo in development, magento, 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…)
If you need to change the footer copyright notification use the next instruction:
1. Open the Magento admin panel
2. Select the “System” tab
3. Click the “Configuration” menu item
4. Select the “Design” menu item
5. Click the “Footer” tab. Here you can change the copyright notification
6. With that done, click the “Save Configure” button.
Sorry guys, I know that is a long long time ago, but we are so busy for some large projects now, we will update this blog as soon as we can.
thanks for everyone support us.
Magento.cc
No tags
Hello:
After the big big holiday, we have moved on the new server now. And we will publish more tips for you on the next week.
Our new project for Magento: Wall-London.com
Magento.cc
9
How to remove “My Downloadable Products” on Customer Account Dashboard?
No comments · Posted by leo in cms, development, magento
Here is a quickly reference for how to remove the “My Downloadable Products” on Customer Account Dashboard.
In app/design/frontend/default/default/layout/downloadable.xml, remove this in the beginning of the file:
1 2 3 4 5 6 7 8 9 | <customer_account> <reference name="customer_account_navigation"> <action method="addLink" translate="label" module="downloadable"> <name>downloadable_products</name> <path>downloadable/customer/products</path> <label>My Downloadable Products</label> </action> </reference> </customer_account> |
OK, We done it.
