Results 1 to 10 of 30

Thread: Simple shopping cart for Sencha Touch 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    176
    Vote Rating
    20
      2  

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    124
    Vote Rating
    3
      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
    176
    Vote Rating
    20
      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
    124
    Vote Rating
    3
      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
    176
    Vote Rating
    20
      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,149
    Vote Rating
    100
      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
    Join Date
    Oct 2014
    Posts
    5
    Vote Rating
    0
      0  

    Default

    hi, does anyhone has an actual 2.4 Cart-Version for Architect please ? thx

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •