Giter Club home page Giter Club logo

cartkit's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cartkit's Issues

Documentation

Hi! documentation is down. I really need to read it.

Best regards, amazing plugin!

CartKit Status

Few questions here:

  • What's the current status of cartkit? any roadmap?
  • Can you add the status to the top of the README.md file?
  • How likely you are to discuss new features? (here's where the roadmap comes in handy).

V3

Will you update this one for Kirby v3?

BTW good job with this one, love the simplicity

Wrong calculation of net price from TTC

Maybe I'm getting this all wrong, but there seems to be something wrong with the ht, tax etc. calculations:

Calculation of net price from ttc should be:

function cart_ht($ttc, $vat) {
	$ht = $ttc / (1 + $vat/100);
	return $ht;
}

Calculation of vat value to be added to a net price (this is probably what you need in your plugin if tax is set to true, but then the product prices should be net prices, because this value is added when I click the Paypal submit button; even though the text says "TVA incluse"):

function cart_vat($net, $vat) {
	$tax = $net * $vat/100;
	return $tax;
}

Calculate amount of tax included in a given TTC price:

function cart_vat_incl ($ttc, $vat) {
  $ht = $ttc / (1 + $vat/100);
  $tax_incl = $ttc - $ht;
  return $tax_incl;
}

Product Sold-out

To make "sold-out" function working, you should change :

if($product->soldout() != ''):
by
if( (string)$product->soldout() ):
in snippets/products.php, line 21

otherwise '0' is consider as true.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.