Announcement

Collapse
No announcement yet.

Minimum and Maximum Module

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

    Minimum and Maximum Module

    We are converting a site from MMUI to CSSUI and installing the levels framework. One module that is being utilized in the store is the Emporium Plus Min/Max module. But it seems the Level's default code doesn't really support that module. Is there a way to make the levels framework play nice with that module? Or is there another way to do minimums and maximums without the module that is easier?

    #2
    What issues are you seeing with the module in regards to the Levels framework?
    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
      If we replace the quantity field with the module's default
      Code:
      <mvt:item name="cim_qmin" param="prod" />
      it will mess up the toggle feature. (the plus and minus ability. I tried doing the same on the Basket page and then you can't update the quantities at all: http://dev.tiedyedirect.com/product/JACK6.html

      Comment


        #4
        You should be able to replace the default inputs with this modified module token which, hypothetically, should work; I have not tested it.
        Code:
        Product Page:
        <mvt:item name="cim_qmin" param="prod|align-center float-left increase-decrease-input" />
        Code:
        Basket Page:
        <mvt:item name="cim_qmin" param="bask|align-center float-left increase-decrease-input" />
        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


          #5
          Nothing displayed on the page when I used it.

          Comment


            #6
            What is the version number of your module?
            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


              #7
              5.0100

              Comment


                #8
                Looks like you will need to update the module to 5.0110 to get the tokens I posted to work.
                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


                  #9
                  The one listed on the website is 5.001? http://apps.miva.com/category-minimu...-maximums.html. Is there an alternate way of doing the minimums without the module? If not, how much would it be to upgrade the module?

                  Comment


                    #10
                    I would recommend clicking the Get Support link and making a request for the most recent version.
                    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


                      #11
                      I am confused because support said that the module hasn't been updated to work? I tried changing 'group' to 'item' throughout the Basket page to utilize the module's input field as mentioned from support, but now items don't appear at all in the basket. Someone on the forum mentioned a version 5.012 of the module. Does that exist and will it help to fix my issue?

                      Comment


                        #12
                        Just to clarify, you are referring to the Minimum and Maximum Quantity module available in the Emporium Plus Bundle and not the Category Minimums and Maximums module correct? If that is the case, there is an updated version available, however it does not work with basket groups. To implement it, you would need to update your basket page to use items instead of groups.
                        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


                          #13
                          Yes, I am referring to the Emporium Plus Minimum and Maximum Quantity Module. I tried changing all reference of 'group' to 'item' on the basket page but now the basket page doesn't display the items in it. Do you have any instructions on exactly how to change the basket page?

                          Comment


                            #14
                            You will need to change all references to 'groups' to 'items' and 'group' to 'item'. Unfortunately, out of the box, the module is no longer compatible with the current version of Miva.
                            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


                              #15
                              I did that, as well as changing the actions on the "remove" and "update" button. The items are appearing in the basket now, but the update and remove buttons do not work properly. Here is my Basket Contents code:
                              Code:
                              <mvt:comment><mvt:if expr="g.Action EQ 'RGRP'"></mvt:comment>
                              <mvt:if expr="g.Action EQ 'RPRD'">
                                  <mvt:assign name="g.Quantity" value="miva_variable_value('Quantity' $ g.Restore_Counter)" />
                                  <mvt:assign name="g.Restore_Name" value="miva_variable_value('Restore_Name' $ g.Restore_Counter)" />
                                  <mvt:assign name="g.Restore_Link" value="miva_variable_value('Restore_Link' $ g.Restore_Counter)" />
                                  <div class="message message-info">
                                      <b>&mvte:global:Restore_Name;</b> has been removed from your cart. <a href="&mvte:global:Restore_Link;">Undo?</a>
                                  </div>
                                  <mvt:assign name="g.Restore_Counter" value="g.Restore_Counter + 1" />
                              </mvt:if>
                              <mvt:item name="cim_qmin" param="minmax_error_message" /> 
                              <mvt:if expr="l.settings:basket:empty">
                                  <h5 class="column whole message message-info">Your shopping cart is currently empty.</h5>
                                  <p class="column whole">
                                      <a href="&mvte:urls:SFNT:auto;" class="button button-square">Start Shopping</a>
                                  </p>
                                  <mvt:exit />
                              </mvt:if>
                              <div class="column whole medium-all-hidden cart-summary">
                                  <span class="column half"><strong>Cart Subtotal:</strong></span>
                                  <span class="column half align-right"><strong>&mvt:basket:formatted_total;</strong></span>
                                  <br class="clear" />
                                  <hr noshade />
                                  <p class="align-center"><a href="&mvt:global:secure_sessionurl;Screen=OINF&Store_Code=&mvte:store:code;" title="Proceed to Secure Checkout" class="button button-block button-square button-medium bg-green white uppercase">Checkout</a></p>
                                  <div class="basket-header-row align-center">Cart Summary</div>
                              </div>
                              <div class="column whole cart-contents">
                                  <div class="row hide medium-show basket-header-row">
                                      <div class="column five-eighths">Product</div>
                                      <div class="column one-eighth align-center">Quantity</div>
                                      <div class="column one-eighth align-right">Price</div>
                                      <div class="column one-eighth align-right">Subtotal</div>
                                  </div>
                                  <mvt:foreach iterator="item" array="basket:items">
                                      <mvt:assign name="l.settings:item:restore:link" value="l.settings:urls:BASK:auto_sep $ 'Action=ADPR&Product_Code=' $ l.settings:item:product:code $ '&Quantity=' $ l.settings:item:quantity" />
                                      <div class="row basket-product-row">
                                          <div class="column one-fourth align-center">
                                              <mvt:if expr="l.settings:item:imagetypes:image1">
                                                  <img src="&mvte:item:imagetypes:image1;" alt="&mvt:item:name;">
                                              <mvt:else>
                                                  &nbsp;
                                              </mvt:if>
                                          </div>
                                          <div class="column three-fourths medium-three-eighths">
                                              <h4 class="nm">
                                                  <a href="&mvte:item:link;" title="&mvt:item:name;">
                                                      &mvt:item:name;
                                                      <mvt:if expr="l.settings:item:upsold">&nbsp;(Special Offer)</mvt:if>
                                                  </a>
                                              </h4>
                                              <div class="basket-product-details">
                                                  <p>Code: &mvt:item:code;</p>
                                                  <mvt:foreach iterator="option" array="item:options">
                                                      <mvt:assign name="l.settings:item:option_counter" value="l.settings:item:option_counter + 1" />
                                                      <p>
                                                          <mvt:if expr="l.settings:option:option_id">
                                                              <mvt:assign name="l.settings:item:restore:link" value="l.settings:item:restore:link $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:code=' $ l.settings:option:attr_code $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:value=' $ l.settings:option:opt_code" />
                                                              &mvt:option:attr_prompt;: &mvt:option:opt_prompt;
                                                          <mvt:elseif expr="NOT ISNULL l.settings:option:data">
                                                              <mvt:assign name="l.settings:item:restore:link" value="l.settings:item:restore:link $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:code=' $ l.settings:option:attr_code $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:value=' $ l.settings:option:data" />
                                                              &mvt:option:attr_prompt;: &mvt:option:data;
                                                          <mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
                                                              <mvt:assign name="l.settings:item:restore:link" value="l.settings:item:restore:link $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:code=' $ l.settings:option:attr_code $ '&Product_Attributes[' $ l.settings:item:option_counter $ ']:value=' $ l.settings:option:data_long" />
                                                              &mvt:option:attr_prompt;: &mvt:option:data_long;
                                                          <mvt:else>
                                                              &mvt:option:attr_prompt;
                                                          </mvt:if>
                                                      </p>
                                                  </mvt:foreach>
                                                  <mvt:foreach iterator="discount" array="item:discounts">
                                                      <mvt:if expr="l.settings:discount:display">
                                                          <p>&mvt:discount:descrip;: &mvt:discount:formatted_discount;</p>
                                                      </mvt:if>
                                                  </mvt:foreach>
                                                  <mvt:foreach iterator="discount" array="option:discounts">
                                                      <mvt:if expr="l.settings:discount:display">
                                                          <p>&mvt:discount:descrip;: &mvt:discount:formatted_discount;</p>
                                                      </mvt:if>
                                                  </mvt:foreach>
                                                  <mvt:comment><mvt:if expr="l.settings:item:product:id">
                                                      <p><a href="&mvte:urls:WISH:secure_sep;Action=MPWL&Item_ID=&mvta:item:item_id;">+ Add To Wishlist</a></p>
                                                  </mvt:if></mvt:comment>
                                              </div>
                                          </div>
                                          <div class="breaker clear medium-all-hidden"></div>
                                          <div class="column half x-small-offset-one-fourth x-small-one-fourth medium-offset-none medium-one-eighth">
                                              <mvt:if expr="l.settings:item:upsold">
                                                  <p class="align-center">&mvt:item:quantity;</p>
                                              <mvt:else>
                                                  <form method="post" action="&mvte:urls:BASK:rr;" class="nm">
                                                      <input type="hidden" name="Action" value="QNTY" />
                                                      <input type="hidden" name="Basket_Item" value="&mvte:item:item_id;" />
                                                      <input type="hidden" name="Old_Screen" value="BASK" />
                                                      <input type="hidden" name="Offset" value="&mvte:global:Offset;" />
                                                      <input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
                                                      <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
                                                      <input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
                                                      <input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
                                                      <input type="hidden" name="Restore_Name" value="&mvt:item:name;">
                                                      <input type="hidden" name="Restore_Link" value="&mvte:item:restore:link;">
                                                      <mvt:comment><input type="tel" name="Quantity" value="&mvt:item:quantity;" class="align-center" /></mvt:comment>
                                                      <mvt:comment><input type="tel" name="Quantity" value="&mvt:item:quantity;" class="align-center float-left increase-decrease-input" data-min="0">
                                                      <div class="increase-decrease-wrap float-left">
                                                          <span class="button increase-quantity js-increase-quantity" unselectable="on" data-icon="&#x4c;"></span>
                                                          <span class="button decrease-quantity js-decrease-quantity" unselectable="on" data-icon="&#x4b;"></span>
                                                      </div></mvt:comment>
                              <mvt:item name="cim_qmin" param="bask" />
                                                      <button type="submit" class="button button-small button-small-font js-update-quantity"><span data-icon="&#xe02a;" class="medium-inline"></span>Update</button>
                                                  </form>
                                                  <form method="post" action="&mvte:urls:BASK:rr;" class="nm" class="">
                                                      <input type="hidden" name="Action" value="RPRD" />
                                                      <input type="hidden" name="Restore_Name" value="&mvt:item:name;">
                                                      <input type="hidden" name="Restore_Link" value="&mvte:item:restore:link;">
                                                      <input type="hidden" name="Basket_Item" value="&mvte:item:item_id;" />
                                                      <input type="hidden" name="Offset" value="&mvte:global:Offset;" />
                                                      <input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
                                                      <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
                                                      <input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
                                                      <input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
                                                      <button type="submit" class="button button-mini button-block bg-transparent remove-item"><strong class="medium-inline">&times;</strong> Remove</button>
                                                  </form>
                                              </mvt:if>
                                          </div>
                                          <div class="column hide medium-show medium-one-eighth align-right">
                                              <mvt:if expr="l.settings:item:price EQ '0' OR l.settings:item:price EQ '0.00' OR l.settings:item:price EQ 0.00 OR l.settings:item:price EQ 0">
                                                  <p>&nbsp;</p>
                                              <mvt:else>
                                                  <p>&mvt:item:formatted_base_price;</p>
                                              </mvt:if>
                                              <br>
                                              <mvt:foreach iterator="option" array="item:options">
                                                  <mvt:if expr="l.settings:option:base_price">
                                                      <p><small>&mvt:option:formatted_base_price;</small></p>
                                                  </mvt:if>
                                              </mvt:foreach>
                                          </div>
                                          <div class="column half medium-one-eighth medium-align-right">
                                              <p class="medium-all-hidden"><strong>Item Subtotal</strong></p>
                                              <mvt:if expr="l.settings:item:subtotal_base_price NE l.settings:item:subtotal">
                                                  <s>&mvt:item:formatted_subtotal_base_price;</s><br>
                                              </mvt:if>
                                              <p>&mvt:item:formatted_subtotal;</p>
                                              <mvt:if expr="l.settings:option:subtotal_base_price OR l.settings:option:subtotal">
                                                  <mvt:if expr="l.settings:option:subtotal_base_price NE l.settings:option:subtotal">
                                                      <s><small>&mvt:option:formatted_subtotal_base_price;</small></s><br>
                                                  </mvt:if>
                                                  <p><small>&mvt:option:formatted_subtotal;</small></p>
                                              </mvt:if>
                                          </div>
                                      </div>
                                  </mvt:foreach>
                                  <mvt:foreach iterator="coupon" array="basket:coupons">
                                      <div class="row basket-product-row">
                                          <div class="column whole">
                                              <form method="post" action="&mvte:urls:BASK:rr;" class="nm">
                                                  <input type="hidden" name="Action" value="RCPN" />
                                                  <input type="hidden" name="Coupon_Code" value="&mvte:coupon:code;" />
                                                  <mvt:if expr="NOT ISNULL l.settings:coupon:descrip">
                                                      Coupon - &mvt:coupon:code;: &mvt:coupon:descrip;
                                                  <mvt:else>
                                                      Coupon - &mvt:coupon:code;
                                                  </mvt:if>
                                                  <button type="submit" class="button button-mini bg-transparent red align-baseline">Remove</button>
                                              </form>
                                          </div>
                                      </div>
                                  </mvt:foreach>
                              </div>
                              <div>
                                  <div class="column whole medium-two-thirds np">
                                      <mvt:item name="customfields" param="Read_Basket('continue_shopping', l.settings:urls:continue_shopping)" />
                                      <mvt:if expr="l.settings:urls:continue_shopping">
                                          <a href="&mvte:urls:continue_shopping;" class="button button-medium button-small-font bg-transparent blue uppercase">Continue Shopping</a>
                                      <mvt:else>
                                          <a href="&mvte:urls:SFNT:auto;" class="button button-medium button-small-font bg-transparent blue uppercase">Continue Shopping</a>
                                      </mvt:if>
                                      <mvt:comment><a href="&mvte:urls:WISH:secure_sep;Action=MAWL" class="button button-medium button-small-font bg-transparent blue uppercase">Move All to Wish List</a></mvt:comment>
                                      <button type="button" class="button button-medium button-small-font bg-transparent blue uppercase js-slide-toggle" data-target="#js-coupon-form">Redeem Coupon</button>
                                      <form method="post" action="&mvte:urls:BASK:rr;" class="nm <mvt:if expr="g.Action NE 'ACPN'">js-hide</mvt:if>" id="js-coupon-form">
                                          <input type="hidden" name="Action" value="ACPN" />
                                          <br>
                                          <div class="column half large-one-fourth nlp">
                                              <input type="text" name="Coupon_Code" id="l-coupon-code" class="input" placeholder="Enter coupon code.." value="&mvte:global:Coupon_Code;">
                                          </div>
                                          <div class="column one-fourth large-one-eighth np">
                                              <button class="button button-medium button-small-font bg-transparent blue uppercase">Redeem</button>
                                          </div>
                                          <div class="breaker clear clearfix"></div>
                                      </form>
                                  </div>
                                  <div class="column whole medium-one-third np">
                                      <mvt:comment><div class="all-hidden medium-all-shown basket-header-row align-center">Cart Summary</div></mvt:comment>
                                      <mvt:foreach iterator="charge" array="basket:charges">
                                          <div class="row basket-charge-row">
                                              <div class="column half"><em>&mvt:charge:descrip;:</em></div>
                                              <div class="column half align-right">&mvt:charge:formatted_disp_amt;</div>
                                          </div>
                                      </mvt:foreach>
                                      <mvt:item name="shipestimate" />
                                      <div class="row basket-charge-row">
                                          <div class="column half"><strong>TOTAL:</strong></div>
                                          <div class="column half align-right"><strong>&mvt:basket:formatted_total;</strong></div>
                                      </div>
                                      <div class="breaker"></div>
                                      <hr noshade />
                                      <a href="&mvte:urls:OINF:secure;" title="Proceed to Secure Checkout" class="button button-block button-square button-medium bg-green white uppercase">Checkout</a>
                                  </div>
                              </div>

                              Comment

                              Working...
                              X