Monthly Archives: February 2014

Magento cron run in window xamp and wamp

Recently face the issues running cron in windows for magento in xamp and wamp. so found the solution which will help other to work.How to use CRON in xampp or wamp windows simple step will help you

Start the Cron
To create the batch file

Open Notepad
Paste the line “C:\Program Files (x86)\Mozilla Firefox\firefox.exe” http://localhost/yourfile.php
Click “File” -> “Save As”
Ensure “Save as type:” is set to “All Files”
Save the file as “cron.bat” to your C drive

To schedule the batch file to run

Open Command Prompt
Paste the following schtasks /create /sc minute /mo 10 /tn “PHP Cron Job” /tr C:\wamp\www\cron.bat
Press Enter
this script will allow to run the cron for every 10 mins

STOP the Cron
Command : SchTasks /Delete /TN “My Task”

Than press enter and follow the instruction.

Note: please replace “your Task Name” with “My Task”

schtasks /create /sc minute /mo 10 /tn “php cron job” /tr C:\wamp\www\cron.bat

hope this will help you

Magento set base Image Programmatically

Magento with vast extendable functionality help developer to reach the as per the Client Requirement

Recently need to set the base,thumbnail,small image Pro-grammatically.so after lot of R & D found the solution.Just we need to set the current  in the current code

<?php $setbaseimage=Mage::getModel('catalog/product')->load($objProduct);
$setbaseimage->addImageToMediaGallery($imagepath,array('image','small_image','thumbnail'),true,false);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$setbaseimage->save();
?>

and once store is set images will get saved

Hope this will help you

Magento 1.6 version Paypal Express checkout issues

emailid

 

 

 

 

Recently face issues in Magento 1.6 version that PayPal Express checkout issues don’t save customer Email id when customer checkout as Guest.so thought to share how we can fix that.For that i Have created a small module which will overwrite the place function in PayPal express checkout…

You can easily Download the module Stech_Overridepaypalexpress.zip (255 downloads)

You can say it is a bug in Magento earlier version as that issues had been fixed in Magento version 1.7 +.

Hope it will help you.