Magento 1.5 Good V/s Bad

Recently magento 1.5 is in available stable in market so i try this and find out some advantages and disadvantages of new magento 1.5
Magento 1.5 has some 10 important points to choose it
1) You may now export your customers and product from Magento backend with an advanced attribute filter feature.
The good old dataflow profile feature is still available.
2) Now you don’t have to edit XML files to modify order state and status as this can be done from the backend.
3) This will be very useful to customer services: you may now edit an address without having to create another order.
Be careful though: this will not recalculate order amount or shipping fees.
4) The 1.5 Magento Commerce comes with a new Magento Connect Manager Upgrade. The new version is 2.0 of the Magento Connect Manager

Disadvantages
1) Still heavily layered and overly complicated coding style and thousands of files requires a lot of time to learn and do customizations
4) Still runs fairly slow
5) Still requires a good high end server

Advertisements

Free Shipping with Coupon Code in Magento

Step: – 1 Go to Admin panel of your Magento site.

Step: – 2 Go to Promotions -> Shopping Cart Price Rules

Step: – 3 Press “Add New Rule” Button.

Step : – 4 Rule Information Tab will open and Fill up all the details
       Rule Name:- Free Shipping

       Rule Description :- Free Shipping with Coupon Code.

       Status :- Active

       Websites: – Main Website

       Customer Groups: – Select all the groups if you want to give free shipping to all the Customer Groups otherwise select individual Customer Group.

       Coupon: – you must Select “Specific Coupon” Option.

       Coupon Code:- Write here your Coupon Code. Like, MACD01020

       Uses per Coupon: – 0

       Uses per Customer: – 0

       Priority: – 0

       Public in RSS Feed: – NO.

Step: – 5 Don’t use “Conditions” tab when you want to give Free Shipping .

Step: – 6 Go to “Actions” tab and fill up all the details as per below.

      Apply: – Select “percent of product price discount” option.

      Discount Amount: – 0

      Maximum Qty Discount is Applied To: – 0

      Discount Qty Step (Buy X): – 0

      Apply to Shipping Amount: – NO

      Free Shipping: – Always Select “For Matching items only” option.

      Stop Further Rules Processing: – Always Select “NO” but If you want to stop processing the rules then select “YES”.

Step: – 7 Press “Save and Continue Edit” button for saving the Free Shipping Rule with Coupon code.

      

Follow all the steps you can definitely add Free shipping with Coupon code in you Magento site. If any  error occurred Comment I definitely give you answer.

$HTTP_GET_VARS and $HTTP_SERVER and other php variable start with $HTTP is not work in php newever version

so if you application requires this type of variable then change in php.ini

The change is need at two place in php.ini

register_globals = On

register_long_arrays = On

and this function will be working properly

How to upgrade oscommerce-2.2rc2a to oscommerce-3.0a5 and oscommerce-2.3.1?

It is important to upgrade your oscommerce store to newer version.

So if your store is in oscommerce-2.2rc2a or oscommerce-3.0a5 then we providing an upgrade guide to upgrade your store to oscommerce-3.0a5 or oscommerce-2.3.1 respectively.

To get an upgrade guide follow the under given link.

Get upgrade guide….

I hope this will help you….!!

How to Restore A large database Using php script in just a second ?

This is the magical script which help you to restore a large dump of data into your database …


<?php





ini_set('memory_limit','128M');
$db = mysql_connect ( 'Your Host', 'Your Username', 'Your password' ) or die('not connected');  
mysql_select_db( 'Your database', $db) or die('Not found'); 
$FP = fopen ( 'backup.sql', 'r' ); 
$READ = fread ( $FP, filesize ( 'backup.sql') ); 
$READ = explode ( ";\n", $READ ); 
echo "<pre>";

foreach ( $READ AS $RED ) 
{ 
	echo 'Helo' . '<br>' ;
    mysql_query ( $RED ) or die('Query not executed'); 
} 

echo 'Done'; 



?>

Hope this will help you a lot

Posted in PHP. 1 Comment »

Solution for Oscommerce PayPal Express Checkout ERRORCODE: 10736

Question:How to solve Oscommerce PayPal Express Checkout ERRORCODE: 10736?
ERROR:
TIMESTAMP: 2010-01-13T08:34:06Z
ACK: FAILURE
SHORTMESSAGE: SHIPPING ADDRESS INVALID CITY STATE POSTAL CODE
LONGMESSAGE: A MATCH OF THE SHIPPING ADDRESS CITY, STATE, AND POSTAL CODE FAILED.
ERRORCODE: 10736

Answer:
it solved to change into ppeb.php file
find:

"<Address>".

change to:

"<ShipToAddress>".

find:

"</Address>".

change to:

"</ShipToAddress>".

Complete code before and after

Before:

$msg .="<cpp-header-image>".$url."/ppec/ppec_image/".LOGO."</cpp-header-image>".
"<cpp-header-border-color>"."</cpp-header-border-color>".
"<cpp-header-back-color>"."</cpp-header-back-color>".
"<cpp-payflow-color>"."</cpp-payflow-color>".
"<PaymentAction>"."Sale"."</PaymentAction>".
"<Address>".
"<Name>".$SHIPTONAME."</Name>".
"<Street1>".$SHIPTOSTREET."</Street1>".
"<Street2>".$SHIPTOSTREET2."</Street2>".
"<CityName>".$SHIPTOCITY."</CityName>".
"<StateOrProvince>".$SHIPTOSTATE."</StateOrProvince>".
"<PostalCode>".$SHIPTOZIP."</PostalCode>".
"<Country>".$SHIPTOCOUNTRYCODE."</Country>".
"</Address>".
"<SolutionType>"."Sole"."</SolutionType>".
"<LandingPage>"."Billing"."</LandingPage>".
"</SetExpressCheckoutRequestDetails>".
"</SetExpressCheckoutRequest>".
"</SetExpressCheckoutReq>".
"</soap:Body>".
"</soap:Envelope>";

After:

$msg .="<cpp-header-image>".$url."/ppec/ppec_image/".LOGO."</cpp-header-image>".
"<cpp-header-border-color>"."</cpp-header-border-color>".
"<cpp-header-back-color>"."</cpp-header-back-color>".
"<cpp-payflow-color>"."</cpp-payflow-color>".
"<PaymentAction>"."Sale"."</PaymentAction>".
"<ShipToAddress>".
"<Name>".$SHIPTONAME."</Name>".
"<Street1>".$SHIPTOSTREET."</Street1>".
"<Street2>".$SHIPTOSTREET2."</Street2>".
"<CityName>".$SHIPTOCITY."</CityName>".
"<StateOrProvince>".$SHIPTOSTATE."</StateOrProvince>".
"<PostalCode>".$SHIPTOZIP."</PostalCode>".
"<Country>".$SHIPTOCOUNTRYCODE."</Country>".
"</ShipToAddress>".
"<SolutionType>"."Sole"."</SolutionType>".
"<LandingPage>"."Billing"."</LandingPage>".
"</SetExpressCheckoutRequestDetails>".
"</SetExpressCheckoutRequest>".
"</SetExpressCheckoutReq>".
"</soap:Body>".
"</soap:Envelope>";

Now paypal Express checkout working fine…..

How to make downloadable product in CRE Loaded?

CRE Loaded makes it easy to sell or distribute downloadable files such as software, music, videos, or eBooks. The Download Controller lets you manage downloadable files, control access to them, and determine the methods by which customers can retrieve their files.

In order to allow downloadable files in your CRE Loaded store, go to Admin => Configuration => Download.

Admin => Configuration => Download.

Set Enable download to “True.”

Download by redirect will redirect your customer’s browser from your store’s download directory to a different directory. This must be set to false for non-Unix-based systems. If you are not sure about this setting, make sure all of your downloadable files are kept in your store’s /download directory and set this value to “false.”

Expiry delay determines how long after purchase a customer can wait to download the product before the download link for the order expires.

Maximum number of downloads controls how many times a customer can download the file he or she has ordered. We recommend that this value be set to “2” to give a customer a second chance to download the product if there is a problem with their first attempt.

Update Status Value is the Order Status Value that will cause Expiry delay and Maximum number of downloads to be reset. The default value is “4.”

Download on hold message is the message that will be displayed for a customer when a download is on hold pending payment confirmation. Note that you can add html codes to format your message, although they will not be applied here in your Admin.

Order Status Value: the default value is “2” — “processing.”

Once you have set the values for Download Configuration, add the Products to your store if you have not already done so. You add downloadable Products just like you do any others. However, make sure that the Product Weight is “0.”

Create a Product Option (Section 1.2) such as “Version,” and create the appropriate Option Values.

In the Product Attributes menu there is a section for downloadable products. You can set an Expiry Delay and Maximum Download Count for each product individually if you want. If you do not set a value here, the default values you specified above in the Configuration menu will be used.

Admin => Product Catalog => Product Attributes

In the “Filename:” box, type the EXACT name of the file that will be downloaded. Double-check what you type here, because if the filename is not an EXACT match, the download will not work.

If you have not already done so, upload the file to your store’s /download directory.

You must now set permissions on your /download and /pub directories. To set the permissions, enter your website ftp address in your FTP client. Go to the /download directory, double click the folder “Includes,” then right click on the file named “configure.php.” Select “Properties” from the drop-down menu and change the value listed for permissions to 0755. Click “Apply” and “OK.” Follow the same procedure to set Permissions of your /pub directory to 0777.

We recommend that you make a few test purchases to make sure that everything is working properly. (Temporarily set the price of one of your downloadable products to 0 so that you don’t have to pay for your own product — but remember to restore the price when you are done!)