<?php echo Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'attribute_code', $storeId); ?>
<?php echo Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'attribute_code', $storeId); ?>
<?php echo $this->getLayout()->getBlock(‘breadcrumbs’)->toHtml(); ?>
<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘static-clock-identifier’)->toHtml() ?>
Set session
=========
$myData = ‘PHPCodez’;
Mage::getSingleton(‘core/session’)->setMydata($myData);
get session value
=========
$myData = ”;
$myData=Mage::getSingleton(‘core/session’)->getMyData();
Unset session
=========
Mage::getSingleton(‘core/session’)->unsMyData();
1) cd /usr/local/src
2) Download apache solr
sudo wget http://mirrors.gigenet.com/apache/lucene/solr/3.6.2/apache-solr-3.6.2.tgz
3) Decompress sudo tar xfz apache-solr-3.6.2.tgz
4) Stop jetty server sudo /etc/init.d/jetty stop
5) Move the files to Jetty’s webapps directory cp apache-solr-3.6.2/example/webapps/solr.war /opt/jetty/webapps/solr.war
6) cp -R apache-solr-3.6.2/example/solr /opt/jetty/solr
7) Create data directory cd /opt/jetty/solr
sudo mkdir data
sudo chown -R jetty:jetty data
8) Modify Jetty Configuration File
sudo vi /opt/jetty/etc/jetty.conf and copy the below given code at the end of the file
-Dsolr.solr.home=/opt/jetty/solr
-Dsolr.data.dir=/opt/jetty/solr/data
10) strt jetty sudo /etc/init.d/jetty start
11) Make sure that jetty is installed http://localhost:8080/solr
1) cd /usr/local/src
2) sudo wget http://mirrors.xmission.com/eclipse/jetty/stable-9/dist/jetty-distribution-9.0.3.RC1.tar.gz
3) sudo tar xfz jetty-distribution-9.0.3.v20130506.tar.gz
4) sudo mv jetty-distribution-9.0.0.RC1 /opt/jetty
5) sudo cp /opt/jetty/bin/jetty.sh /etc/init.d/jetty
6) We should have jetty user and group .First check if user is avaiable using teh command
cat /etc/passwd else run the below given command to add user
sudo useradd jetty -U -s /bin/false
7 Make sure jetty is the owner of the /opt/jetty directory
sudo chown -R jetty:jetty /opt/jetty
8) Now we must create jetty configuration file run the command sudo vim /etc/default/jetty
and paste the below code
JETTY_USER=jetty
JETTY_PORT=8080
Make sure that port 8080 is not listening any other service
9) The start the start the server sudo /etc/init.d/jetty start . The following should be shown when we run the command
Starting Jetty: OK .
10)Check it by loading the url http://localhost:8080
11) If the status is Starting Jetty: failed.
a) Make sure that the port assigned to jetty does not listen any other service
b) Run the following command to check this netstat -antp
c) Make sure the jetty version is works fine with the installed java version
java -version
d) Install the latest version of java if required and use the appropriate alternative’
sudo update-alternatives –config java
1) Make sure that the port assigned to jetty does not listen any other service
2) Run the following command to check this netstat -antp
3) Make sure the jetty version is works fine with the installed java version
java -version
4) Install the latest version of java if required and use the appropriate alternative’
sudo update-alternatives –config java
I have fixed this issue by commenting the constructor and destructor in the file lib/Zend/Pdf/FileParserDataSource.php .
abstract public function __construct();
abstract public function __destruct();
1) Add a new class “over_all_fit_required_entry”
<input type=”hidden” name=”over_all_fit_selected” id=”over_all_fit_selected” class=”over_all_fit_required_entry”>
2) Add the below given code
<script type=’text/javascript’>
//< ![CDATA[
Validation.add(‘over_all_fit_required_entry’, ‘ Please select option’, function(v) {
return !Validation.get(‘IsEmpty’).test(v);
});
//]]>
</script>
<?php $order = Mage::getModel(‘sales/order’)->load($this->getOrderId()); ?>
<?php $orderData = $order->getData(); ?>
<?php echo $orderData[‘customer_firstname’]; ?>
<?php echo $orderData[‘customer_email’]; ?>