Announcement

Collapse
No announcement yet.

Showing Option Inventory Quantity and level

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

    Showing Option Inventory Quantity and level

    Hi,

    I'm using the level ReadyTheme in a dev store.

    I'm trying to display inventory for each option in a list. I do not want the customer to have to select the variant to then see the qoh.

    I'm trying to replicate what I have working in 5.5 with Viking Inventory manager:

    for example: http://www.facewest.co.uk/Arcteryx-F...SL-Jacket.html

    So I want a list:

    Attribute Name
    Option1 3 instock
    Option2 5 in stock
    etc

    Is this possible? What variable/ token can I put in the attribute template to pull that information?

    I hate having to select options only then to see it's not available.

    Thanks

    Jake Herbert
    facewest.co.uk
    Facewest- UK Adventure sports Equipment
    www.facewest.co.uk

    #2
    Hi Jake,

    I'm not sure that the function you are looking for is intrinsic to the built-in inventory management. I will investigate this and get back to you.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Hi Jake,

      I have been able to confirm that the functionality you are looking for is not built into the software. It is possible to create a function to replicate what you are looking for. I would recommend contacting Professional Services [[email protected]] to get a quote on it.
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #4
        OK so I really didn't like not having this working.

        Customers have to select the option before they can tell if it's in stock. I think that's another barrier in our way from purchase.

        So I found a fix:


        This works on shadows readytheme: Should work everywhere?

        Requires toolkit for the waitlist function.

        It's a bit messy but does the job:


        Inside the Attribute template on PROD:

        FIND &mvte:option:prompt;

        After that:

        CODE START




        <mvt:item name="toolkit" param="vassign|OptiontoFind|l.all_settings:option: code" />


        <mvt:item name="toolkit" param="waitlist|outcount|g.product_code|0" />
        <mvt:foreach iterator="choice" array="tk_inventory">

        <mvt:if expr="OptiontoFind CIN l.settings:choice:option ">

        <mvt:if expr="l.settings:choice:count_onhand GT 0">
        (In Stock)
        <mvt:else>
        (Out of Stock)
        </mvt:if>
        </mvt:if>

        </mvt:foreach>

        CODE END


        Alternately use &mvt:choice:count_onhand; if you want the actual quantity available.


        Hope that helps someone else. If there is a better way please let me know.


        I'd say that should be built into the core product as that's the question customers want to know on arrival on the page. Do we have option X in stock?

        In action here:

        https://www.facewest.co.uk/Rab-Women...on-Jacket.html


        By the way love the new readytheme!


        Thanks





        Facewest- UK Adventure sports Equipment
        www.facewest.co.uk

        Comment


          #5
          OK So realised the above didn't work when option names were very similar.

          Following seems to work:


          &mvte:option:prompt;



          <mvt:item name="toolkit" param="vassign|OptiontoFind|l.all_settings:option: code" />


          <mvt:item name="toolkit" param="waitlist|outcount|g.product_code|0" />


          <mvt:foreach iterator="choice" array="tk_inventory">

          <mvt:item name="toolkit" param="vassign|MatchingOptionCode|l.all_settings:c hoice:option" />



          <mvt:item name="toolkit" param="gettoken|MatchingOptionCode,:,2|StrippedMat chingOptionCode" />


          <mvt:if expr="OptiontoFind EQ StrippedMatchingOptionCode">

          <mvt:if expr="l.settings:choice:count_onhand GT 0"><span class="inventory-display-instock">&nbsp;
          (&mvt:choice:count_onhand; in stock)
          <mvt:else><span class="inventory-display-notinstock">
          &nbsp;(Out of Stock)
          </mvt:if>
          <span>
          </mvt:if>

          </mvt:foreach>
          Facewest- UK Adventure sports Equipment
          www.facewest.co.uk

          Comment

          Working...
          X