netlify / gocommerce-js Goto Github PK
View Code? Open in Web Editor NEWA gocommerce client library
Home Page: https://www.npmjs.com/package/gocommerce-js
License: MIT License
A gocommerce client library
Home Page: https://www.npmjs.com/package/gocommerce-js
License: MIT License
The usage in the README is great for basic things, and for getting started, but there's a lot more in the API client that could be used. Currently (afaik) those methods are undocumented. However, I would suggest adding ESDoc tags to allow IDEs such as Visual Studio Code to offer documentation for required parameters and a quick description on each method when you're writing your code. ESDoc tags is a great way to improve understanding when you're writing code for me, and I think this library should totally use it (manually reading code to see what it does and how to use it is boring).
- Do you want to request a feature or report a bug?
Bug.
- What is the current behavior?
The total tax stays the same even if a discount code is applied
(while it actually should be based to the final price, including the
discount)
- What is the expected behavior?
Tax calculation should be based to the final price, including the
discount
Corresponding client method for bulk delete api call: netlify/gocommerce#136
Now only the total discount is calculated but sometimes it is handy to show a per item discount, since there could be a fixed amount discount for one item and a percentage for all because of a coupon used.
Create corresponding client method for negative filtering: netlify/gocommerce#152
Promise.reject is used throughout the API but rejecting with plain strings. Wrapping with an Error object will allow the use of libraries that will detect errors by type (such as redux-actions).
Well,
I`m using the gocommerce in an static gen e-commerce with Hugo. But this library is with lack of functions like remove item from cart.
That`s anyway to update the cart removing some item from there?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.