Skip to content

Commit f72c708

Browse files
author
Dipu Raj
committed
v3 first release
1 parent 16cd669 commit f72c708

File tree

10 files changed

+239
-16
lines changed

10 files changed

+239
-16
lines changed

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Contributing
2+
3+
## What can I contribute?
4+
- Fix a bug you found or already reported on the [GitHub Issues Tracker](https://github.com/techlab/SmartCart/issues/).
5+
- Add new features to the project.
6+
- Add new test cases.
7+
- Add documentation
8+
- Add a demo page
9+
- [Donate](https://www.paypal.me/dipuraj) money for the project on [Paypal](https://www.paypal.me/dipuraj)
10+
11+
## How to contribute code
12+
Here are the basic steps to get started contributing:
13+
14+
1. Fork the [repo](https://github.com/techlab/SmartCart/) and get development running on your computer.
15+
2. Replicate the issue you're trying to fix or spec out the feature you're trying to add.
16+
3. Change the code to fix the bug or add the feature. All changes should happen in the relevant `src/js/*.js` and `src/css/*.css` files.
17+
4. Build the code by running `npm run build` or `gulp build`
18+
5. Run the test cases by running `npm test` or `gulp test`, you can also add more test cases based on your new change.
19+
6. Verify that your fix or feature works.
20+
7. Commit your changes with an informative description
21+
8. Open a pull request to the [repo](https://github.com/techlab/SmartCart/) with your new commit and a descriptive message about what the PR does.
22+
23+
## Reporting bugs
24+
### Make sure it is a bug related to this project
25+
Before reporting the bug, please make sure that the bug is in the project and not from your own code or any other library used.
26+
27+
### Try the latest version
28+
Bugs in the older versions of the project may have already been fixed.
29+
In order to avoid reporting known issues, make sure you are always testing against the latest release.
30+
Also make sure the problem hasn't already been reported on the [GitHub Issues Tracker](https://github.com/techlab/SmartCart/issues/).
31+
If not, create a new issue there and include your test case.
32+
33+
### Notes for pull request
34+
- Follow the same code style as the library.
35+
- Run the test suites in the `test` directory first by running `npm test` or `gulp test`.
36+
- Don't modify any files in the `dist` directory.

README.md

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,72 @@
1-
# jQuery SmartCart 3
1+
# jQuery Smart Cart 3
22
#### The smart interactive jQuery Shopping Cart plugin with PayPal payment support.
33

4-
[GitHub Issues](https://github.com/techlab/SmartCart/issues/)
4+
jQuery Smart Cart is the smart interactive *jQuery Shopping Cart plugin* with *PayPal* payment support. It can create an interactive and user friendly shopping cart with minimal code. It has built-in support for *Form* submit, *Ajax* submit and *PayPal* submit of the cart items. A lot of customization options and custom events makes it easy to implement your requirements. It can integrate with your existing shopping list very easily and you can use your own css or use the default *Bootstrap*.
55

6-
+ [First Look Demo](http://techlaboratory.net/demos/jquery-SmartCartv3Alpha/examples/index.html)
6+
The new version *jQuery Smart Cart 3* is completely rewritten from scratch and adopted the modern patterns. It is more powerful, robust, scalable and customizable. A lot of features is added like Bootstrap support, theme support, customizable toolbars, customization options, public methods, event support and a lot more.
7+
See the list of [features](http://techlaboratory.net/smartcart#features), [demos](http://techlaboratory.net/smartcart/demo) and [documentation](http://techlaboratory.net/smartcart/documentation) for more details.
78

9+
+ [Homepage](http://techlaboratory.net/smartcart)
10+
+ [Documentation](http://techlaboratory.net/smartcart/documentation)
11+
+ [Demos](http://techlaboratory.net/smartcart/demo)
812

9-
![First shot](http://techlaboratory.net/assets/media/products/SmartCartv3.0.1-alpha.png)
13+
Demos
14+
-----
15+
+ [Basic Example](http://techlaboratory.net/smartcart/demo/basic)
16+
+ [PayPal Cart Example](http://techlaboratory.net/smartcart/demo/paypal)
17+
18+
Screenshots
19+
-----
20+
![Smart Cart Screenshot1](http://techlaboratory.net/assets/media/products/SmartCart3-Normal.png?v1)
21+
![Smart Cart Screenshot2](http://techlaboratory.net/assets/media/products/SmartCart3-PayPal.png?v1)
22+
![Smart Cart Screenshot3](http://techlaboratory.net/assets/media/products/SmartCart3-Cart.png?v1)
1023

1124
Requirements
1225
-----
1326
+ [Bootstrap 3+](http://getbootstrap.com/getting-started/#download)
14-
+ [jQuery](http://jquery.com/)
27+
+ [jQuery](http://jquery.com/) (supports jQuery 1.9+, jQuery 2+, jQuery 3+)
28+
29+
Installation and usage
30+
-----
31+
32+
### [NPM](https://www.npmjs.com/package/jquery-smartcart)
33+
npm install jquery-smartcart
34+
35+
### Bower
36+
bower install jquery-smartcart
37+
38+
### [Composer](https://packagist.org/packages/techlab/jquery-smartcart)
39+
composer require techlab/jquery-smartcart
40+
41+
### Download
42+
#### [Download from GitHub](https://github.com/techlab/SmartCart/archive/master.zip)
43+
###
44+
Please see the [documentation](http://techlaboratory.net/smartcart/documentation) for more deatils on implementation and usage.
45+
46+
Features
47+
-----
48+
+ In-built PayPal, Ajax and form submit methods
49+
+ Bootstrap support
50+
+ Heavily customizable toolbar, option to add extra buttons
51+
+ Theme support
52+
+ Customizable css styles
53+
+ Public methods for external function call
54+
+ Enhanced event support
55+
+ Compatible with latest jQuery versions (jQuery 1.9+, jQuery 2+, jQuery 3+)
56+
+ Easy to implement, Minimal HTML required
57+
+ Clean and compact design
58+
+ Automatically calculates subtotal
59+
+ Quantity is editable from the cart list
60+
+ Product Image display
61+
+ Customizable cart templates
62+
+ Customizable currency formatting option
63+
+ Pre-populate products on cart on load
64+
+ and a lot more...
1565

1666
Version
1767
-----
18-
**SmartCart v3-Beta1**
68+
**SmartCart v3.0.1**
1969

2070
License
2171
----
22-
[MIT License](https://github.com/techlab/SmartCart/blob/v3-beta/LICENSE)
72+
[MIT License](https://github.com/techlab/SmartCart/blob/master/LICENSE)

bower.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "jquery-smartcart",
3+
"version": "v3.0.1",
4+
"homepage": "http://techlaboratory.net/smartcart",
5+
"authors": [
6+
"Dipu Raj <[email protected]>"
7+
],
8+
"description": "The smart interactive jQuery Shopping Cart plugin with PayPal payment support",
9+
"main": [
10+
"./dist/css/smart_cart.css",
11+
"./dist/js/jquery.smartCart.js"
12+
],
13+
"keywords": [
14+
"jquery",
15+
"cart",
16+
"paypal",
17+
"shopping",
18+
"bootstrap",
19+
"ui",
20+
"jquery-plugin"
21+
],
22+
"dependencies": {
23+
"jquery": ">= 1.9.0",
24+
"bootstrap": ">= 3.0.0"
25+
},
26+
"license": "MIT",
27+
"ignore": [
28+
"**/.*",
29+
"node_modules",
30+
"composer.json",
31+
"examples",
32+
"bower_components",
33+
".git*",
34+
".travis*",
35+
"*bower.json",
36+
"*jquery.json",
37+
"test"
38+
]
39+
}

composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "techlab/jquery-smartcart",
3+
"description": "The smart interactive jQuery Shopping Cart plugin with PayPal payment support",
4+
"homepage": "http://techlaboratory.net/smartcart",
5+
"license": "MIT",
6+
"support": {
7+
"source": "https://github.com/techlab/SmartCart",
8+
"issues": "https://github.com/techlab/SmartCart/issues",
9+
"docs": "http://techlaboratory.net/smartcart/documentation"
10+
},
11+
"keywords": [
12+
"jquery",
13+
"cart",
14+
"paypal",
15+
"shopping",
16+
"bootstrap",
17+
"ui",
18+
"jquery-plugin"
19+
],
20+
"authors": [
21+
{
22+
"name": "Dipu Raj",
23+
"email": "[email protected]",
24+
"homepage": "http://dipuraj.me"
25+
}
26+
],
27+
"require": {
28+
"components/jquery": ">=1.9",
29+
"components/bootstrap": ">=3.0.0"
30+
}
31+
}

dist/js/jquery.smartCart.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// Default options
1616

1717
var defaults = {
18-
cart: [], // initial products in cart
19-
resultName: 'cart_list',
18+
cart: [], // initial products on cart
19+
resultName: 'cart_list', // Submit name of the cart parameter
2020
theme: 'default', // theme for the cart, related css need to include for other than default theme
2121
combineProducts: true, // combine similar products on cart
2222
highlightEffect: true, // highlight effect on adding/updating product in cart
@@ -315,7 +315,7 @@
315315
}
316316
mi._addUpdateCartItem(mi.cart[i]);
317317
// Trigger "quantityUpdate" event
318-
this._triggerEvent("quantityUpdate", [mi.cart[i], qty]);
318+
this._triggerEvent("quantityUpdated", [mi.cart[i], qty]);
319319
return false;
320320
}
321321
});

0 commit comments

Comments
 (0)