Giter Site home page Giter Site logo

unmergedcart's Introduction

UnmergedCart

Facts

Version: 1.1.0 Developed and tested on Magento CE v 1.9.2.0

Introduction

This module adds an observer to the sales_quote_merge_before event to change the way the saved customer quote is merged with current session quote.

To configure the desired behaviour change the value in System > Configuration > SALES > Checkout > Shopping Cart > Merge cart upon log in; you can choose between:

  • Yes: default behavior - the module doesn't change the Magento default behavior that is merging session and customer cart after log in
  • No: use session cart - customer saved cart items are discarded, only items in session cart are maintained after log in
  • No: use customer cart - session cart items are discarded, only items in customer cart are maintained after log in

Installation

You can install this extension in several ways; they are described below. Not that by {{magento_basedir}} I refer to the path where Magento is installed, where you usually find the index.php file.

Download

Download the full package, extract it and copy the app directory in {{magento_basedir}}.

Attention: don't overwrite the native Magento app folder but simply merge its contents into existing directory.

Modman

Install modman Module Manager from: https://github.com/colinmollenhour/modman

After having installed modman on your system, you can clone this module on your Magento base directory by typing the following command from {{magento_basedir}}:

$ modman init
$ modman clone [email protected]:aleron75/unmergedcart.git

Composer

Install composer: http://getcomposer.org/download/

Install Magento Composer Installer: https://github.com/magento-hackathon/magento-composer-installer

Type the following command from {{magento_basedir}}:

$ php composer.phar require aleron75/unmergedcart:v1.1.0

or

$ composer require aleron75/unmergedcart:v1.1.0

Post install

After installation:

  • if you have Magento cache enabled, disable or refresh it;
  • if you have Magento compilation enabled, disable it or recompile the code base.

Uninstall

Remove the following:

  • {{magento_basedir}}/app/code/community/Aleron75/UnmergedCart folder
  • {{magento_basedir}}/app/etc/modules/Aleron75_UnmergedCart.xml file

Closing words

Any feedback is appreciated.

If you want to contribute, fork this repository, perform your changes and submit a pull request.

This extension is published under the Open Software License (OSL 3.0).

unmergedcart's People

Contributors

aleron75 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.