PHP SOLUTIONS

This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Thursday 23 August 2012

Magento : Get order detail on checkout success page


You can get Order Detail using this,

File Location = frontend/base/default/template/checkout/success.phtml

<?php

echo $order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
$items = $order->getAllItems();
foreach ($items as $item){
$product = $item->getProduct();
$proids = $item->getProductId();
$name = $item->getName();
$storeId = 1;
echo "<br/>";
}
?>

Reference

http://developerafroz.blogspot.in/2012_01_01_archive.html

http://store.redstage.com/blog/2012/05/31/magento-1-5-fedex-shipping

http://smashingspy.com/32-best-jquery-popup-window-dialog-box-example/

http://xhtmlandcsshelp.blogspot.in/2010_10_01_archive.html

http://spenserbaldwin.com/magento/show-product-review-on-product-page

http://www.desv.us/how-to-use-select-update-delete-and-insert-queries-in-magento.html

http://www.desv.us/category/magento-tutorials/page/3

http://www.imagedia.com/2010/02/how-to-change-order-status-in-magento/

skype = boy-named-sue

//For the Admin Part

http://www.excellencemagentoblog.com/magento-admin-form-field

http://magentools.com/blog/magento-certification-preparation-study-guide-answers/ // Magento Exam


http://tim-bezhashvyly.github.io/media/four-ways-to-customize-a-cart-item.pdf  

Tuesday 21 August 2012

Magento : Enable / Disable magento admin debug mode

Just run this query:


==> INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);


To disable them again, run this query

==> UPDATE core_config_data set value = 0 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'\


To enable again run this query

==> UPDATE core_config_data set value = 1 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'

Thursday 16 August 2012

Magento : After logout redirect on home directly

Put This on Customer/logout.phtml

In script

comment setTimeout(function(){ location.href = '<?php //echo $this->getUrl()?>'}5000);

replace with this

setTimeout(function(){ location.href = '<?php //echo $this->getUrl()

    $customerLoginURL = Mage::getBaseUrl();

    Mage::app()->getFrontController()->getResponse()->setRedirect

    ($customerLoginURL)->sendResponse();

     ?>'},5000);