Announcement

Collapse
No announcement yet.

Is this a Mini-Basket bug?? Shadows 10.07

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is this a Mini-Basket bug?? Shadows 10.07

    I noticed in the Mini-Basket it uses this foreach:
    Code:
    <mvt:foreach iterator="item" array="global_minibasket:groups">
    I thought there were only 2 options for the iterator.
    Code:
    <mvt:foreach iterator="item" array="global_minibasket:items">
    OR
    Code:
    <mvt:foreach iterator="group" array="global_minibasket:groups">
    Is this a bug or am I the one who is buggin?
    Nick Harkins
    www.loveisarose.com
    *Web Developer
    *Miva
    *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

    #2
    The iterator can be any value you want. It is essentially adding each instance to the iterator that you create.

    Here is some more information about the iterator: https://docs.miva.com/code-standards...rraysiterators
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Ah okay. Understood, thank you.

      Curious as to why the Mini-Basket image wasn't showing for lesliekirk on this thread here: https://www.miva.com/forums/forum/de...-product-image
      Nick Harkins
      www.loveisarose.com
      *Web Developer
      *Miva
      *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

      Comment


        #4
        SidFeyDesigns

        The groups array will group multiple items in the cart as a single line item when using buy x get 1 free promotions you can modify the basket page to use the basket:items array if that feature is not used in Miva.
        Nicholas Adkins
        Technical Training Specialist / Miva, Inc.
        [email protected]
        https://www.miva.com/mivalearn

        Comment

        Working...
        X