{"id":16368951,"url":"https://github.com/apsdehal/jcart","last_synced_at":"2025-10-14T19:04:12.024Z","repository":{"id":13652191,"uuid":"16345680","full_name":"apsdehal/jCart","owner":"apsdehal","description":"Plugin for shopping cart simplification","archived":false,"fork":false,"pushed_at":"2014-02-27T20:47:44.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-14T19:03:30.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apsdehal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-29T13:39:02.000Z","updated_at":"2014-02-27T20:47:44.000Z","dependencies_parsed_at":"2022-09-23T14:02:44.746Z","dependency_job_id":null,"html_url":"https://github.com/apsdehal/jCart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/apsdehal/jCart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FjCart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FjCart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FjCart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FjCart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apsdehal","download_url":"https://codeload.github.com/apsdehal/jCart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FjCart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020411,"owners_count":26086895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T02:54:15.459Z","updated_at":"2025-10-14T19:04:11.990Z","avatar_url":"https://github.com/apsdehal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Shopping Cart jQuery Plugin\n\nShopping Cart simplified\n\n###About\n\nShopping Cart plugin has been created with essence to simplify the process of making shopping carts for the websites that need a proper interface for customers. With number of functions available, it all works as a breeze.\nCode is heavily commented for easy understanding.\n\n###Usage\n\nInclude the plugin as follows:-\n\n```html\n\u003cscript type=\"text/javascript\" src=\"jquery.js\"/\u003e\n\u003c!-- Must include jQuery before including plugin --\u003e\n\u003cscript type=\"text/javascript\" src=\"jquery.cart.js\"\u003e\n```\n\nAll the methods for the cart are available through `$.cart` variable.\n\nThere is an orderid defined for each item along with its quantity.\n\nFunctions available are as documentated below:\n\n```javascript\n\n$.cart.set( orderId, count );\n//To set an order with quantity = count in the cart.\n//Important: If item is already present this count will be added to current quantity\n\n$.cart.get();\n//Get an object containing orders with attributes id and count\n\n$.cart.getJSON();\n//Get a JSON string of the orders.\n\n$.cart.total();\n//Get total number of types of items in cart.\n\n$.cart.totalQty();\n//Get total nuber of items in cart.\n\n/* For example:- If you have bought 2 Lays' and 1 Uncle Chipps\n   $.cart.total() will be 2 and $.cart.totalQty() will be 3\n*/\n\n$.cart.remove( orderId, count );\n//To remove a certain amount of count from item with id = orderId.\n\n$.cart.removeItem ( orderId );\n//To remove whole quantity of a particular item.\n\n$.cart.clear();\n//To clear the whole cart\n\n$.cart.change( orderId, count );\n//To change the quantity of the orderId to count.\n\n$.cart.removeCookie();\n//To remove the cookie in which all the data of cart is stored.\n```\n\nBy default orders are stored in cookie named 'orders'.\n\nYou can override it by setting $.cookie.defaults.\n\n$.cookie object is also available to play with cookies all over.\n\n###License\nMIT License\n\nCopyright (c) 2014 Amanpreet Singh","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fjcart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsdehal%2Fjcart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fjcart/lists"}