More than a simple commercial cart, the "cart" of lbCartPlugin will receive any object with behavior (actAs) Cartable. Thus, it can be used for the user to reference contacts, books, movies, and any object present on the site, whether commercial or not!

In addition, this plugin recording the data added to the cart in a table will help you make an analysis of products typically associated and thus be able to do cross marketing and so provide items of interest to the user, whether commercial or not.

The several configuration settings will allow you to adjust the cart just as you want, as design as feature.
You will soon have access to a video tutorial to see a quick overview of what happens on the site http://leny-bernard.com/fr/afficher/article/lbcartplugin. !
Enjoy ;)

Developers

License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Changelog for release 1.0.12 - 01/02/2011

Other releases

Release 1.0.12 - 01/02/2011

Release 1.0.11 - 01/02/2011

Release 1.0.0 - 28/01/2011

More than a simple commercial cart, the "cart" of lbCartPlugin will receive any object with behavior (actAs) Cartable. Thus, it can be used for the user to reference contacts, books, movies, and any object present on the site, whether commercial or not!

In addition, this plugin recording the data added to the cart in a table will help you make an analysis of products typically associated and thus be able to do cross marketing and so provide items of interest to the user, whether commercial or not.

The several configuration settings will allow you to adjust the cart just as you want, as design as feature.
You will soon have access to a video tutorial to see a quick overview of what happens on the site http://leny-bernard.com/fr/afficher/article/lbcartplugin.

Requirements and advices

You have to install the sfJqueryReloadedPlugin to be able to have the jquery helper for ajax functions

The cart get all the functionnalities when binded with users. For now, the first version just support the sfGuardUser model, so i suggest you to install sfDoctrineGuardPlugin

This Cartable behaviour will automatically create a TITLE, a DESCRIPTION, an AMOUNT, a PHOTO and a CURRENCY linked to the currency table which store the whole world's devises
Just set a user_id with (or not) the correct relation

*user_class

The user_class_configuration define the kind of users used in your application.
For this first version, you can use sfGuardUser or Member.
If you choose Member, you just have to set a user attribute (in session) named as you mentioned in the login_field configuration item.
Thus, if the user is connected (if not, define this function : $user->isAuthenticated()), we have to get the login by this function $user->getAttribute('login');

Then Build all and load for the currencies :

symfony build --all --and-load --no-confirmation

=== HOW TO USE ===

Now, you will have to include the buttons in the view.
You can add the component by adding those lines :