Setting the order of Inventory Kits on invoice?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emdub
    Mivite

    • Apr 2010
    • 134

    #1

    Setting the order of Inventory Kits on invoice?

    We use inventory kits extensively in our store. Combined with a downloads module, they let us bundle many products together, or split up huge files into more manageable download sizes: each item in a kit shows up as a download link on the INVC page and customer receipt email.

    The problem our customers are having is that these items are completely jumbled together on the invoice page: they are not listed in any logical order, and I am unable to find any way of setting the order for them.

    For example, if a product comes in 4 download parts, it might be listed like this:
    Download Part 2
    Download Part 1
    Download Part 4
    Download Part 3

    Which is a minor annoyance, but still doesn't look good. A bigger issue is on our large bundles, where there might be 30 to 40 different links all together with no logic to them. Our downloads come in different formats, so Format A will be mixed with Format B, and maybe Format C will be in a different order than Format D.

    Is there anything I can do about this? I set up the contents of inventory kits all in alphabetical order in the Inventory Kit Builder, but that isn't reflected on the invoice pages.
  • nottheusual1
    Mega Mivite


    • Jul 2008
    • 1124

    #2
    Re: Setting the order of Inventory Kits on invoice?

    have you looked at Toolkit's #135 asortmulti?

    Here's a link to a thread discussing it's use on the basket:

    Comment

    • emdub
      Mivite

      • Apr 2010
      • 134

      #3
      Re: Setting the order of Inventory Kits on invoice?

      I will take a look, thanks.

      Ideally, they would be grouped by attribute, then alphabetically within that.

      Comment

      • KNewbrough
        Mivite

        • May 2013
        • 200

        #4
        Re: Setting the order of Inventory Kits on invoice?

        That would be possible but the code would be a little more complex. Can you provide the code the module is currently using to print the links to the page (more specifically, the foreach loop if possible)? And can you clarify whether your unique formats means unique file extensions or something else, and list what each of those individual formats are?
        Kyle Newbrough
        Technical Support / Web Developer
        Miva Merchant

        Comment

        • emdub
          Mivite

          • Apr 2010
          • 134

          #5
          Re: Setting the order of Inventory Kits on invoice?

          Here is the for loop, or at least the important parts. We are using emediasales softgoods module. All file extensions are the same (.7z), but because of the way the module works, the file extension isn't in the link, the module creates a unique download ID for each download which points to the file.
          Code:
            <mvt:foreach iterator="option" array="item:options">
              <mvt:if expr="l.settings:option:option_id">
                &mvt:option:attr_code;: &mvt:option:opt_code;
              <mvt:elseif expr="NOT ISNULL l.settings:option:data">
                <mvt:if expr="l.settings:option:attr_code EQ 'Download'">
                  <a href="&mvt:option:data;">Download &mvt:option:data_long;</a>
                <mvt:else>
                  &mvt:option:attr_prompt;: &mvt:option:data;
                </mvt:if>
              <mvt:else>
                &mvt:option:attr_code;
              </mvt:if>
            </mvt:foreach>
          We sell 3d models in various formats for different 3d packages. The attributes are set up like this:
          Checkbox attributes for each of the 11 formats: Maya, Max, Obj, 3ds, lwo, c4d, 3ds, modo, vue, tgo, micro.
          So if you check just "Maya", you'd get say, 5 links for the product in Maya format, but if you check Maya and c4d, you'd get the 5 maya links, and 5 more links for the same product but in C4d format.
          About 1/3 of our products also have Default attribute which is included regardless of what what checkbox is checked.

          Comment

          • KNewbrough
            Mivite

            • May 2013
            • 200

            #6
            Re: Setting the order of Inventory Kits on invoice?

            Is there anything about each link which denotes the format? The text for the link itself maybe, if not the URL?
            Kyle Newbrough
            Technical Support / Web Developer
            Miva Merchant

            Comment

            • emdub
              Mivite

              • Apr 2010
              • 134

              #7
              Re: Setting the order of Inventory Kits on invoice?

              Yes, the link text includes the format: The text of the links read "Download [Product]: [Format] [download size]", so it would be something like "Download Cacti: OBJ (200 MB)"

              Comment

              • KNewbrough
                Mivite

                • May 2013
                • 200

                #8
                Re: Setting the order of Inventory Kits on invoice?

                And where is the Part # mentioned in the link? Can you provide a full example list of exactly what this looks like to the customer so we can see exactly what needs to be parsed?

                Thanks!
                Kyle Newbrough
                Technical Support / Web Developer
                Miva Merchant

                Comment

                • emdub
                  Mivite

                  • Apr 2010
                  • 134

                  #9
                  Re: Setting the order of Inventory Kits on invoice?

                  This is the html generated for each link:

                  Code:
                  <a href="http://example.com/mm5/download.mvc?Store_Code=CODE&amp;Screen=DNLD&amp;ID=10f52235ebf3c834d522ef419c0fc1eb">Download Cacti: OBJ ( 200 MB )</a>
                  So the user sees this:

                  Download Cacti: OBJ ( 200 MB )

                  Comment

                  • KNewbrough
                    Mivite

                    • May 2013
                    • 200

                    #10
                    Re: Setting the order of Inventory Kits on invoice?

                    So the link doesn't include the part number for downloads which are multiple parts as mentioned in your first post?
                    Kyle Newbrough
                    Technical Support / Web Developer
                    Miva Merchant

                    Comment

                    • emdub
                      Mivite

                      • Apr 2010
                      • 134

                      #11
                      Re: Setting the order of Inventory Kits on invoice?

                      So for a product that is broken into parts it would be like this:
                      Download Cacti: OBJ DVD 1 (200 MB)
                      Download Cacti: OBJ DVD 3 (200 MB)
                      Download Cacti: OBJ DVD 2 (200 MB)

                      Someone could also get it in two formats, so it would be like this:
                      Download Cacti: OBJ DVD 1 (200 MB)
                      Download Cacti: OBJ DVD 3 (250 MB)
                      Download Cacti: OBJ DVD 2 (276 MB)
                      Download Cacti: MAYA DVD 1 (900 MB)
                      Download Cacti: MAYA DVD 2 (600 MB)

                      Not everything is split into parts, though, and a bundle of several products in several format results in this mess:
                      Download Agriculture: OBJ ( 421 MB )
                      Download Houesplants: OBJ ( 181 MB )
                      Download Landscaping: OBJ ( 1.22 GB )
                      Download Europe 3: OBJ ( 2.89 GB )
                      Download Flowers 2: OBJ ( 220 MB )
                      Download Oceania 1: OBJ ( 1.1 GB )
                      Download Shrubs: OBJ ( 212 MB )
                      Download Europe 1: OBJ ( 287 MB )
                      Download Asia: OBJ ( 1.0 GB )
                      Download Cacti: OBJ ( 348 MB )
                      Download Groundcover: OBJ ( 69.1 MB )
                      Download Oceania 3: OBJ ( 1.27 GB )
                      Download Flowers 1: OBJ ( 258 MB )
                      Download Home Garden: OBJ ( 311 MB )
                      Download Bonsai: OBJ ( 533 MB )
                      Download Japan: OBJ ( 273 MB )
                      Download Fruit: OBJ ( 326 MB )
                      Download Oceania 2: OBJ ( 982 MB )
                      Download Tropical: OBJ ( 413 MB )
                      Download Europe 2: OBJ ( 278 MB )
                      Download Asia: MAYA ( 1.21 GB )
                      Download Shrubs: MAYA ( 222 MB )
                      Download Europe 1: MAYA ( 333 MB )
                      Download Oceania 3: MAYA ( 1.3 GB )
                      Download Europe 3: MAYA DVD 3 ( 1.85 GB )
                      Download Cacti: MAYA ( 396 MB )
                      Download Groundcover: MAYA ( 69.3 MB )
                      Download Home Garden: Maya (454 MB)
                      Download Flowers 1: MAYA ( 261 MB )
                      Download Bonsai: MAYA ( 614 MB )
                      Download Japan: MAYA ( 337 MB )
                      Download Oceania 2: MAYA ( 1.21 GB )
                      Download Europe 3: MAYA DVD 2 ( 1.89 GB)
                      Download Fruit: MAYA ( 381 MB )
                      Download Agriculture: MAYA ( 439 MB )
                      Download Tropical: MAYA ( 438 MB )
                      Download Europe 2: MAYA ( 322 MB )
                      Download Landscaping: MAYA ( 1.82 GB )
                      Download Houesplants: OBJ ( 181 MB )
                      Download Landscaping: OBJ ( 1.22 GB )
                      Download Europe 3: OBJ ( 2.89 GB )
                      Download Europe 3: MAYA DVD 4 ( 2.66 GB )
                      Download Houesplants: MAYA ( 175 MB )
                      Download Oceania 1: MAYA ( 1.5 GB )
                      Download Europe 3: MAYA DVD 1 ( 2.55 GB )
                      Download Flowers 2: MAYA ( 254 MB )

                      "Flowers 1" and "Flowers 2", are separate products, but something like "Europe 3" is one product that comes in multiple parts (DVD 1, 2, 3, 4 in Maya), but is separate from Europe 1 and 2.
                      Last edited by emdub; 03-07-14, 03:03 PM.

                      Comment

                      Working...
                      X