{"id":16971577,"url":"https://github.com/thomastjdev/nimwc_basket","last_synced_at":"2025-03-21T20:16:19.724Z","repository":{"id":87657164,"uuid":"230308018","full_name":"ThomasTJdev/nimwc_basket","owner":"ThomasTJdev","description":"NimWC plugin to enable an ecommerce webshop, where user can buy products and get a receipt.","archived":false,"fork":false,"pushed_at":"2020-02-25T19:54:08.000Z","size":1111,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T14:48:37.886Z","etag":null,"topics":["ecommerce","nim","nimwc","webshop"],"latest_commit_sha":null,"homepage":null,"language":"Nim","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/ThomasTJdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-26T18:11:45.000Z","updated_at":"2020-02-25T19:54:10.000Z","dependencies_parsed_at":"2023-03-13T18:40:21.653Z","dependency_job_id":null,"html_url":"https://github.com/ThomasTJdev/nimwc_basket","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasTJdev%2Fnimwc_basket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasTJdev%2Fnimwc_basket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasTJdev%2Fnimwc_basket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasTJdev%2Fnimwc_basket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasTJdev","download_url":"https://codeload.github.com/ThomasTJdev/nimwc_basket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244860611,"owners_count":20522466,"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","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":["ecommerce","nim","nimwc","webshop"],"created_at":"2024-10-14T00:52:44.495Z","updated_at":"2025-03-21T20:16:19.712Z","avatar_url":"https://github.com/ThomasTJdev.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nim Website Creator - Basket\n[Nim Website Creator](https://github.com/ThomasTJdev/nim_websitecreator) plugin to enable an ecommerce webshop, where user can buy products and get a receipt.\n\n## Requirement\nThis is a plugin for [Nim Website Creator](https://github.com/ThomasTJdev/nim_websitecreator) and can not be compiled individually.\n\n### Dependencies\n\n* [nimPdf](https://github.com/jangko/nimpdf) - `nimble install nimpdf`\n* [mime](https://github.com/enthus1ast/nimMime) - Clone the repo and run `nimble install`\n\n\n## TODO\n* Credit note\n* Full translation of nimf-files\n* API integration to payment solutions\n\n\n## Changelog\n### v1.0\n* Final CSS and JS adjustments\n\n### v0.10\n* Parsing price values with 2 decimals\n\n### v0.9\n* Changed prices from int to float\n* Redesign checkout - better overview and include valuta\n\n### v0.8\n* More translations.\n* Do not allow change an order, which has been cancelled (e.g. reactive it).\n* Implement quantity for each product. Check for item in stock.\n* Reduce stock when buying, increase stock when cancelling an order.\n* Implement weight for products.\n* Base shipping criteria on product weight.\n```sql\nALTER TABLE basket_products ADD COLUMN quantity INTEGER;\nALTER TABLE basket_products ADD COLUMN weight INTEGER;\nALTER TABLE basket_shipping ADD COLUMN maxWeight INTEGER;\nALTER TABLE basket_shipping ADD COLUMN minWeight INTEGER;\n```\n\n\n### v0.7\n* Allow spaces in phone number\n* When changing settings in account return to accounting after changes\n* Implement a sub table for products, so the purchase references the bought products for better history.\n```sql\nALTER TABLE basket_purchase ADD COLUMN shippingPrice VARCHAR(100);\nALTER TABLE basket_purchase ADD COLUMN shippingVat VARCHAR(100);\n```\n* Set a min and max items on shipping products.\n```sql\nALTER TABLE basket_shipping ADD COLUMN maxItems INTEGER;\nALTER TABLE basket_shipping ADD COLUMN minItems INTEGER;\n```\n\n### v0.6\n* Fix bug with parseInt(), when mixing single and multple product buy\n* Correct filename when user downloads receipt\n* Fix CSS bug with width\n* PDF receipt - use smaller font\n* Add company ID field (optional)\n```sql\nALTER TABLE basket_purchase ADD COLUMN companyid VARCHAR(300);\n```\n\n\n### v0.5\n* Create receipts for private products\n* Allow for buying multiple products (`/basket/buynow/multiple?products=1,2`)\n\n```sql\nALTER TABLE basket_purchase ADD COLUMN multiple_product_count VARCHAR(100);\n```\n\n\n### v0.4\n* Remove cutoff of description of products and shipping.\n* Send an email to the admin, when product is bought (activate in settings)\n```\nALTER TABLE basket_settings ADD COLUMN mailAdminBought VARCHAR(10);\n```\n* Deactivate/activate a product\n```\nALTER TABLE basket_products ADD COLUMN active INTEGER;\n```\n* New DB column to store custom shipping details (disabled by default in css `.wipshippingdetails`)\n```\nALTER TABLE basket_purchase ADD COLUMN shippingDetails VARCHAR(1000);\n```\n\n### v0.3\n* Minor design\n* Full JS translation\n* Setting page for translations\n\n### v0.2\n* New DB columns:\n```\nALTER TABLE basket_settings ADD COLUMN languages TEXT;\nALTER TABLE basket_settings ADD COLUMN language VARCHAR(10);\nALTER TABLE basket_settings ADD COLUMN translation TEXT;\n```\n* Support for translations\n\n## Features\n\n### Admin\n\n* Create multiple products with specific prices and vats\n* Create multiple shipping options\n* Keep track and update status on payments, awaiting payments, shipped orders etc. (manually)\n* Set company data in one place\n* Enable mails to customer on order and shipping\n* Make a buying conditions page\n* Full translation - use your own language, customize all language variables from the browser\n\n### Customer\n\n* Buy products with an online form. Choose number of products and shipping method.\n* Make profile where all receipts can be accessed\n* Download PDF receipts\n* Access old receipts\n* Receive mail on placing order and when order is shipped\n\n## Start\n\n1) Open the main settings and specify your company data\n2) Add a product\n3) Add a shipping method\n4) Launch\n\nIf you prefer another language than Danish or English:\n1) Add you language in the language settings\n2) Edit the JS file to include your language\n3) Make a PR or issue containing your language, so the repo can be updated :)\n\n## Use\n\n* Plugin settings `/basket/settings`\n* Access all the products on `/basket/products`\n* Buy a single product with `/basket/products/@identifier`. You can design your own product page, and just insert links to the products.\n\n## Todo\n\n* Let user add multiple products to basket.\n* Clear up proc names - it's mixed with buy and basket.\n\n# Screenshots\n\n**Stats**\n\n![stats](screenshots/stats.png)\n\n___\n\n**Products**\n\n![products](screenshots/products.png)\n\n___\n\n**Shipping**\n\n![shipping](screenshots/shipping.png)\n\n___\n\n**Accounting 1**\n\n![accounting1](screenshots/accounting1.png)\n\n___\n\n**Accounting 2**\n\n![accounting2](screenshots/accounting2.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomastjdev%2Fnimwc_basket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomastjdev%2Fnimwc_basket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomastjdev%2Fnimwc_basket/lists"}