1. #1
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      2  

    Default Simple shopping cart for Sencha Touch 2


  2. #2
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    118
    Vote Rating
    3
    clifficious is on a distinguished road

      0  

    Default


    wow....looks fantastic. I'll have a closer look into it later on! Thanks a lot!

    EDIT: Unfortunately I can't get it running. I dropped the src folder into my app folder. Additionally I have
    Code:
    Ext.Loader.setConfig({
        enabled: true,
        paths: {
            CS: 'src'
        }
    });
    But when I try
    Code:
    CS.Cart.setProductsStore('myStore');
    in the launch function it always says that CS is undefined. Did I miss anything important?

  3. #3
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    Quote Originally Posted by clifficious View Post
    CS is undefined. Did I miss anything important?
    Of course CS is undefined because it is wrong namespace.
    Code:
    Ext.Loader.setPath({
            'Cs': 'src'
    });
    Simply download and copy initialization code from example source.
    And do not forget about controllers and css (please see updated README on Github)

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    118
    Vote Rating
    3
    clifficious is on a distinguished road

      0  

    Default


    Hey, thanks a lot. Just found it out myself. I was trying to integrate it in my project which I am currently doing in SenchaArchitect. Therefore I had to write the code by myself. Most of the code is "Read only" so you have to edit things in the config panel.

    Thanks a lot again!

  5. #5
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    If you find any errors or you will be able to improve or add new features to cart - please let me know.

  6. #6
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,134
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    When you decrement an item past 1, you show an confirmation asking to remove it. If you select "no" the spinner's value is still set to 0 and the item remains in the list. I don't know if that is the proper behavior or not.

    Also, I found an issue:

    Steps:
    1)Add an Apple to the cart.
    2)Open the cart page
    3)Decrement the Apple's count to 0.
    4)Refresh the page and then go back into the Cart. (The apple will still be there)
    5)Try to increment the count of the Apple to 1, but it gives an error: Cannot call method 'get' of null

  7. #7
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      1  

    Default


    Quote Originally Posted by jerome76 View Post
    When you decrement an item past 1, you show an confirmation asking to remove it. If you select "no" the spinner's value is still set to 0 and the item remains in the list. I don't know if that is the proper behavior or not.

    Also, I found an issue:

    Steps:
    1)Add an Apple to the cart.
    2)Open the cart page
    3)Decrement the Apple's count to 0.
    4)Refresh the page and then go back into the Cart. (The apple will still be there)
    5)Try to increment the count of the Apple to 1, but it gives an error: Cannot call method 'get' of null
    '0' value of qty in cart is feature, but 5) looks like a bug. Will be fixed soon
    UPD: Fixed, source on GitHub is updated

  8. #8
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    118
    Vote Rating
    3
    clifficious is on a distinguished road

      0  

    Default


    Hi kostysh,

    I found another possible bug.

    -> add apple to cart
    -> add cheese to cart
    -> go to cart
    -> decrease the amount of apple to 0
    -> keep it in cart
    -> decrease the amount of cheese to 0
    -> keep it in cart
    -> decrease the amount of apple to 0 (again)
    -> remove from cart
    -> decrease the amount of cheese to 0

    ==> now the apple should show up again in cart, although removed earlier.

  9. #9
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    Quote Originally Posted by clifficious View Post
    ==> now the apple should show up again in cart, although removed earlier.
    Thanks, it is a bug. I will fix it soon
    UPD: Fixed, demo and source on GitHub updated

  10. #10
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    386
    Vote Rating
    16
    digeridoopoo will become famous soon enough

      0  

    Default Ultimate add-on?

    Ultimate add-on?


    I just thought of the ultimate add-on for this, have you seen this?

    http://titouanvanbelle.fr/GitHub/Sen...hreeSixtyView/

    Would be awesome to have products that could be rotated with your finger....I wonder how taxing on resources it would be though, especially for low-end devices and several images? Might not be too bad as that image is very detailed and large...

    :-)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar