Giter Site home page Giter Site logo

meteor-shop's People

Contributors

andersquist avatar garrypolley avatar pcorey avatar robconery avatar waynethewizard avatar wykhuh avatar

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-shop's Issues

Stripe_handles.js unexpected token

After i follow all your steps that you just mention on the description, but it still error.
it's all the snippets, idk why..
first it's the HTML of the snippets, then i tried to adapt it to a meteor template and the error solved.
but one thing that is still and astill stuck is ..
Stripe_handles.js always got an error..
it says that "Stripe_Handler.js:1:33 unexpected token :"

can you help me?

Demo would be nice

Hi there,

Demo would be awesome if you had on repo documentation. I think that every repo should have it by default, cause it's give users faster and better insight what is in there.

Peace,

Total not updateing in cart

Hi im following you guide and im haveing some trouble.
My global variable currentCart does not work the same as yours does.
I dont send a new currentCart to save when i update the values in the textinput in the cart

Template.cartShow.helpers({
    cart: function () {
        currentCart = Carts.getCart(userKey);
        return currentCart;
    },
    thereAreNo: function (items) {
        return items.length == 0;
    }
});

Template.cartShow.events({
    "click .remove-from-cart": function (ev) {
        ev.preventDefault();
        removeFromCart(this.sku, function (err, res) {
            if (err) {
                console.log(err);
            } else {
                //any items left?
                currentCart = res; //Have to save over currentCart <<<<<<<<<<<<<<<<<
                if (currentCart.items.length === 0) {
                    Router.go("homeIndex");
                }
            }
        });
    },
    "change .item-qty": function (ev) {
        var newQty = parseInt($(ev.currentTarget).val());
        var name = this.name;
        if (newQty === 0) {
            removeFromCart(this.sku)
        } else {
            this.quantity = parseInt(newQty); // does not change currentCart <<<<<<<<<<<<<
            console.log(this.quantity); // updated to new value
            console.log(currentCart); // not changed
            saveCart(currentCart, function (err, res) {
                if (err) {
                    console.log(err)
                }
                else {
                    console.log("changed data");
                    //alert(name + " updated");
                }
            });
            $(ev.currentTarget).val(newQty);
        }
    }
});

No data directory/examples from early in course

In the "Test Data" module, you mention dragging in some test data from js files, but those js files do not appear to be included anywhere in this project. It's a little difficult to see the same results on our pages without recreating that test data, by hand. Any chance we can get these data files included in the repo?

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.