A complete X-cart Development company – theweblogix.com

Need a complete solutions for X-cart web application development, theweblogix will provide you a complete solutions for your requirement by our expert highly experienced X-cart developers.

X-cart is template based online shopping cart in open source development and give a best ability to modify design and functionality as per the custom requirement. X-cart is one of the powerful e commence shopping cart platform

Theweblogix offers quality X-cart programming and custom business solutions including X-cart customization, installation, web design/theme design, integration, module integration, gateway integration, maintenance and X-cart consulting services by our highly experienced X-cart development.

Theweblogix offer the following X-cart web application development

  • X-cart customization
  • X-cart installation
  • X-cart web design/theme design
  • X-cart integration
  • X-cart module integration
  • X-cart migration
  • X-cart payment gateway integration
  • X-cart maintenance
  • X-cart consulting services

Contact Us

 

Magento upgrade guide: Magento upgrade from 1.4.x / 1.3.x version to Magento 1.5.x / 1.6.x / 1.7.x | Magento Design and Magento Development

I have upgraded many website 1.3.x to 1.7x, if any one is intrested, contact me com.maansari@gmail.com

This is the most comprehensive description of the Magento 1.3.x, 1.4.x, 1.5.x, 1.6.x and 1.7.x upgrade process. It contains step-by-step instructions and troubleshooting information.

 

Prepare for Magento upgrade (for 1.3.x / 1.4.x version only)

 

Lets imaging that you have old Magento 1.3.x / 1.4.x store and you need to upgrade it to latest Magento 1.6.x or 1.7.x version. First of all it is highly recommended to backup your live store files / database and disable Magento compiler cache.

 

Next you need to get SSH access from your hosting provider and connect to your server via SSH protocol (using Linux command shell or Putty program for Windows). After connection via SSH, go to your store folder and execute these commands:

 

1 – Change permissions on lib/pear folder to writable (recursively):

 

chmod -R 777 lib/PEAR

 

2 – Execute this command to prepare Magento for upgrade:

 

./pear mage-setup

 

Most likely you will see this result after command execution:

 

Channel “connect.magentocommerce.com/core” is already initialized

 

 

 

Upgrade from Magento 1.3.x / Magento 1.4.x to Magento 1.4.2.0

 

This step is necessary even if you upgrade your Magento store to 1.6 or 1.7 versions.

 

3 – Execute Magento upgrade command:

 

./pear upgrade -f magento-core/Mage_All_Latest-stable

 

Output of the command will show you what core packages were upgraded:

 


upgrade ok: channel://connect.magentocommerce.com/core/Mage_Centinel-1.4.2.0
upgrade ok: channel://connect.magentocommerce.com/core/Interface_Frontend_Base_Default-1.4.2.0
upgrade ok: channel://connect.magentocommerce.com/core/Phoenix_Moneybookers-1.2.3
upgrade ok: channel://connect.magentocommerce.com/core/Find_Feed-1.0.7
upgrade ok: channel://connect.magentocommerce.com/core/Interface_Adminhtml_Default-1.4.2.0

 

4 – When this part of the upgrade will be complete, enter these commands:

 

chmod 550 ./mage
./mage mage-setup .

 

You will see this result after command execution:

 

Successfully added: http://connect20.magentocommerce.com/community

 

It means that Magento connect 2.0 channel was added to the channels list successfully.

 

5 – Next, enter this command:

 

./mage sync

 

The result will be:

 


Successfully added: community/Mage_Locale_en_US-1.4.2.0
Successfully added: community/Interface_Install_Default-1.4.2.0
Successfully added: community/Phoenix_Moneybookers-1.2.3
Successfully added: community/Mage_Downloader-1.5.0.0
Successfully added: community/Lib_Google_Checkout-1.4.2.0

 

Upgrade to Magento 1.4.2.0 is complete and now you can proceed with upgrade to Magento 1.6.x or 1.7.x version.

 

 

 

Upgrade from Magento 1.4.x / Magento 1.5.x to Magento 1.6.x or Magento 1.7.x

 

Now you can upgrade your store to version 1.6 or 1.7.

 

Before proceeding with this part of Magento upgrade, it is very important to see to what version Magento upgrade scripts will upgrade your store. Enter this command to check this:

 

./mage list-upgrades

 

If you will see this result:

 

Updates for community:
Mage_All_Latest: 1.4.2.1 => 1.6.2.0
Lib_Js_Mage: 1.4.2.0 => 1.6.2.0
Lib_Varien: 1.4.2.0 => 1.6.2.0

 

It means that your Magento will be upgraded to version 1.6.2.0. If it is not what you need you can change upgrade channel to “beta” and upgrade your Magento to version 1.7.0.0 RC1.

 

6 – Enter this command to change the upgrade channel to stable (remember, “stable” channel will upgrade your Magento to 1.6.2.0 version):

 

./mage config-set preferred_state stable

 

After this the “./mage list-upgrades” command will show you this result:

 

Updates for community:
Mage_All_Latest: 1.4.2.1 => 1.6.2.0.
Lib_Js_Mage: 1.4.2.0 => 1.6.2.0
Lib_Varien: 1.4.2.0 => 1.6.2.0
Lib_Phpseclib: 1.4.2.0 => 1.6.2.0
Mage_Core_Adminhtml: 1.4.2.0 => 1.6.2.0
Mage_Core_Modules: 1.4.2.0 => 1.6.2.0

 

7 – After channel selection you can upgrade your Magento to 1.6.2.0 (or to Magento 1.7.0.0 RC1) using this command:

 

./mage upgrade-all –force

 

You will see upgraded packages on your screen:

 


Package upgraded: community/Mage_Locale_en_US 1.6.2.0
Package upgraded: community/Lib_Mage 1.6.2.0
Package upgraded: community/Lib_ZF 1.11.1.0
Package upgraded: community/Lib_Js_Prototype 1.7.0.0.1
Package upgraded: community/Lib_ZF_Locale 1.11.1.0

 

Now the upgrade is complete and you can execute database upgrade visiting your Magento store in your browser, this process will take several minutes, so be patient. If everything was upgraded correctly, you will see upgraded store in your browser.

 

You can check version of your store in the footer of Magento administration panel.

 

How to upgrade magento to latest version

 

Magento is vast eCommerce online shopping cart development tool, and magento community and official peoples are keep upgrading with the new version of magento in eCommerce market with new structured development, and everybody wants their should be upgraded with the latest version of magento, and i can say this is not a big job to upgrade if everything is professionally installed.

But you need to aware of few things before upgrading your online store with latest one.

1. Backup your source files.

2. Go to magento backend – Systems >> Tools >> Backup and create backup.

3. You can also create backup using phpmyadmin but it is often getting failed due to time limit in php.ini so just go with System >> tools >> Backup only or else you can dump the magento database using ssh command.

4. Verify the code.

5. You need to confirm if you have done any core hacks in php files of magento MVC structure because on upgradation it will override all the core files of magento and clear your changes and will override with new code.

6. Download all the source code via FTP or control panel.

7. Truncate(remove) cache from /var/cache.

8. Truncate(remove) session from /var/session.

After clearing all above steps just follow below steps to upgrade your magento web store.

1. Just go to you browser and open http://www.yourwebstorename.com/downloader/
2. Access above URL with the user who have all the access over store in nutshell use Administrator.
3. Then just paste the “magento-core/Mage_All_Latest” in the extension install box and just press enter.
4. It will upgrade all the magento core modules automatically.
5. After successfully upgradation just clear your cache and session again.
6. hurrey you are done, :)

Now what if somebody wants to upgrade specific core modules with the latest code.

just use below commands in the extension installation box in http://www.yourmagentostore.com/downloader

>> magento-core/Interface_Adminhtml_Default
>> magento-core/Interface_Frontend_Default
>> magento-core/Interface_Install_Default
>> magento-core/Mage_Core_Adminhtml
>> magento-core/Mage_Core_Modules

Feel free to contact us.

Magento API V2 Soap unit testing

In previous article, I wrote about setting up environment for Magento unit testing. Let’s expand our tests to test some Magento’s API calls with soap.

Let’s add first tests in our Tests/customerCustomerTest.php

<?php

require_once 'PHPUnit/Autoload.php';
require_once '../app/Mage.php';

class customerCustomerTest extends PHPUnit_Framework_TestCase {

private $local_url_v1 = "http://192.168.1.91/api/soap/?wsdl=1";
private $local_url_v2 = "http://192.168.1.91/api/v2_soap/?wsdl=1";
private $api_url_v1;
private $api_url_v2;

public function setUp() {
    Mage::app('default');
    $this->setApiUrlV2($this->local_url_v2);
}

public function getApiUrlV2() {
    return $this->api_url_v2;
}

public function setApiUrlV2($api_url_v2) {
    $this->api_url_v2 = $api_url_v2;
}

public function testLogin() {

   $cli = new SoapClient($this->api_url_v2);

   $username = 'mobile';
   $password = 'mobile123';

   $result = $cli->login($username, $password);
   $session_id = isset($result) ? $result : null;

   $this->assertNotNull($session_id);
   return $session_id;
}

public function testCoreCustomerList_V2() {

   $session_id = $this->testLogin();
   $cli = new SoapClient($this->api_url_v2);
   $result = $cli->customerCustomerList($session_id);

   $this->assertTrue(is_array($result));
   foreach ($result as $res) {
      $this->assertObjectHasAttribute('customer_id', $res);
   }
 }

}

Here we added two test methods: first one id login and it’s neccesary to return session Id for using in other API calls. Also it is neccesary to add mobile user with appropiate roles in administration of your Magento installation.

Hope that this article was useful to you.

Cheers.

Magento Enterprise – Discount for specific Customer segments group

In previous post we create Customer group based on company emails. Now when we have few customers registered with company emails we will create campaign and give them 50% discount for purchasing Laptops.

In Magento admin area open  Promotions -> Shopping Cart Price Rules

Now we will create a new rule

Fill up information regarding new rule

Using conditions we will use our previously created Customer Segment “Company Discount”

Under Action we will give 50% of discount on product price from Category “Laptops”

Now we will go to store and login using Company email.

Browse Category “Laptops” and choose one of the products, in my case it will be Apple MacBook Pro, normal price is displayed, continue to checkout.

And now we have finally applied our Company discount 50% off

This is only example you can create may other rules based on Customer Segments under Shopping Cart Price Rules, discount, free shipping, add reward points, etc.