Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Cart-Items

  1. #1
    MiBfinity is offline Member
    Join Date
    Jul 2008
    Posts
    64

    Default Cart-Items

    Hi Folks,

    When a User has a qty of 5 of one Product, and 10 of a different Product, should't this Token "<%$ Tokens:Num_Cart_Items %>" display "2" instead of "15"?

    Does anyone know how to tell the Num_Cart_Items to display the number of Products instead of the number of Items in the Cart?

    I'd really appreciate it,
    Thanks!

    Michael

  2. #2
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    That token goes into the parse.cs in the core when it pulls the shoppingcart.numitems

    The query does a SUM you could just change that to COUNT.
    However you risk breaking other parts of the cart so I would just recreate the method as numproducts and they create a token to match it.

    If you need help with any of that just ask!
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  3. #3
    MiBfinity is offline Member
    Join Date
    Jul 2008
    Posts
    64

    Default

    Hi!

    Thank you very much, it worked perfectly!

    Any Idea on this topic? http://forums.aspdotnetstorefront.co...playOrder-(WSI)

    Greetings!