Tags » Magento

Few Tips For Magento SEO Optimization

Magento is one of the widely used and search engine friendly systems and to make online shopping website more visible to potential prospects, different techniques have been invented by webmasters that can surely help attaining a good ranking in search engines. 188 more words

Internet Marketing Services

How to get actual price and special price of a product in Magento?

It is very simple.

// without currency
$actualPrice = $product->getPrice();

// with currency
$actualPrice = Mage::helper(‘core’)->currency($product->getPrice(),true,false);

Get Special Price
// without currency
$specialPrice = $product->getFinalPrice(); 15 more words

Magento

contact.phtml

<form method=”post” action=”<?php echo $this->getUrl(‘contact/’) ?>index/saveform”>

<table border=”0″>
<tr>
<td>Name: </td>
<td><input id=”ename” name=”ename” type=”text”><br><br></td></tr>
<tr>
<td>Address: </td>
<td><textarea name=”eaddress” id=”eaddress” rows=”3″ cols=”22″></textarea><br><br></td></tr>
<tr>
<td>Gender: </td> 568 more words

Magento

layout.xml - contact.xml

<?xml version=”1.0″?>
<layout version=”0.1.0″>
<contact_index_index>
<reference name=”content”>
<block type=”contact/contact” name=”contact” template=”contact/contact.phtml”/>
</reference>
</contact_index_index>
</layout>

Magento

Collection.php

class Tom_Contact_Model_Mysql4_Stateadmin_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
{

public function _construct()
{
parent::_construct();
$this->_init(‘contact/stateadmin’);
}

}

class Tom_Contact_Model_Mysql4_Contactadmin_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
{

public function _construct()
{
parent::_construct();
$this->_init(‘contact/Contactadmin’);
} 116 more words

Magento

Stateadmin.php

class Tom_Contact_Model_Stateadmin extends Mage_Core_Model_Abstract
{

public function _construct()
{
parent::_construct();
$this->_init(‘contact/stateadmin’);          // mysql4 folder file names    modulename/mysql4-filename
}

}

Magento