Pull Out Specific Quantity Price in EP's Volume Discount

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

    • Oct 2007
    • 106

    #1

    Pull Out Specific Quantity Price in EP's Volume Discount

    I sell products that have a 1 price, 2-10 price, 11-25 price and a 26+. I know I can show the lowest price on the category page, but that is a tad misleading as most people will not buy 26+, however I would like to be able to post the 2-10 pricing since there is a large break between 1 and 2 mats.

    1 mat might cost you $169 whereas 2 mats will cost you $188. That is a difference I would like to highlight so I can up-sell to 2 mats easier.

    I could then put text on the product page that says "Buy 2 mats for only $19 more!"

    Can that be done?
    Alan Mecca
    President
    8:30-5:00 M-Th, 8:30-4:30 F
    T: 800-899-0620
    E: [email protected]
    www.personalizeddoormats.com

  • wcw
    Developer Partner

    • Mar 2006
    • 11329

    #2
    Re: Pull Out Specific Quantity Price in EP's Volume Discount

    You could use the table code on the category page. Then in the code you would only show the second entry.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment

    • amecca
      Mivite

      • Oct 2007
      • 106

      #3
      Re: Pull Out Specific Quantity Price in EP's Volume Discount

      I will need specific code, not sure how to do that.
      Alan Mecca
      President
      8:30-5:00 M-Th, 8:30-4:30 F
      T: 800-899-0620
      E: [email protected]
      www.personalizeddoormats.com

      Comment

      • wcw
        Developer Partner

        • Mar 2006
        • 11329

        #4
        Re: Pull Out Specific Quantity Price in EP's Volume Discount

        I don't have a code example for that specific thing you are trying to do.
        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
        Facebook http://www.facebook.com/EmporiumPlus
        Twitter http://twitter.com/emporiumplus

        Comment

        • wcw
          Developer Partner

          • Mar 2006
          • 11329

          #5
          Re: Pull Out Specific Quantity Price in EP's Volume Discount

          Maybe something like this on the CTGY page.

          <mvt:item name="cim_vol" param="tablearray" />
          <mvt:if expr="l.settings:volprice_rows GT 0">
          <mvt:foreach iterator="volume" array="volprice">
          <mvt:if expr="pos2 EQ 2">
          &mvt:volume:price;
          </mvt:if>
          </mvt:foreach>
          </mvt:if>
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment

          • amecca
            Mivite

            • Oct 2007
            • 106

            #6
            Re: Pull Out Specific Quantity Price in EP's Volume Discount

            Bill,

            Thank you so much. It works great on the search page. I know I am asking a lot, but can I get the code that would make this work on the product page?

            Alan
            Alan Mecca
            President
            8:30-5:00 M-Th, 8:30-4:30 F
            T: 800-899-0620
            E: [email protected]
            www.personalizeddoormats.com

            Comment

            • wcw
              Developer Partner

              • Mar 2006
              • 11329

              #7
              Re: Pull Out Specific Quantity Price in EP's Volume Discount

              On the product page change
              <mvt:if expr="pos2 EQ 2">
              to
              <mvt:if expr="pos1 EQ 2">

              On the ctgy, srch, etc you have a foreach loop inside another foreach loop so you use pos2. But on the product page there is just one product so there is not the bigger foreach loop. There is just the foreach for the vol price table, so you use pos1
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment

              • amecca
                Mivite

                • Oct 2007
                • 106

                #8
                Re: Pull Out Specific Quantity Price in EP's Volume Discount

                Worked great. I would now like to subtract <mvt:if expr="pos1 EQ 2"> from <mvt:if expr="pos1 EQ 1">. I am trying to assign variables to the different positions then use math_subtract, but I it doesn't appear to be working very well (or at all). I'm trying to get to the point where I can say "Buy 2 for only $26 more!"
                Alan Mecca
                President
                8:30-5:00 M-Th, 8:30-4:30 F
                T: 800-899-0620
                E: [email protected]
                www.personalizeddoormats.com

                Comment

                • wcw
                  Developer Partner

                  • Mar 2006
                  • 11329

                  #9
                  Re: Pull Out Specific Quantity Price in EP's Volume Discount

                  You would use the math functions in the Emporium Plus Tool Kit module. You probably already have that module but it you don't, here's the link http://www.emporiumplus.com/1AA00223.html
                  Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                  Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                  Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                  Facebook http://www.facebook.com/EmporiumPlus
                  Twitter http://twitter.com/emporiumplus

                  Comment

                  • amecca
                    Mivite

                    • Oct 2007
                    • 106

                    #10
                    Re: Pull Out Specific Quantity Price in EP's Volume Discount

                    Yes I have it already and tried to use it but am having trouble pulling the variables out.

                    Would you use the vassign or sassign function to turn the values into variables? Then use math_subtract to find the difference in the variables. Just not sure how to put the different functions together.
                    Alan Mecca
                    President
                    8:30-5:00 M-Th, 8:30-4:30 F
                    T: 800-899-0620
                    E: [email protected]
                    www.personalizeddoormats.com

                    Comment

                    • wcw
                      Developer Partner

                      • Mar 2006
                      • 11329

                      #11
                      Re: Pull Out Specific Quantity Price in EP's Volume Discount

                      You already have the variables if you are displaying them, e.g. l.all_settings:volume:price You could use vassign to save them to variables like first and second. Use math_subtract to get the difference and currencyformat to make it look like $.
                      Last edited by wcw; 04-10-12, 08:04 AM.
                      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                      Facebook http://www.facebook.com/EmporiumPlus
                      Twitter http://twitter.com/emporiumplus

                      Comment

                      • amecca
                        Mivite

                        • Oct 2007
                        • 106

                        #12
                        Re: Pull Out Specific Quantity Price in EP's Volume Discount

                        Here is the code I used, I know its not right but I can't figure out how to make it work. It is only returning 0.
                        (BTW I know I am SUMMING the numbers. Figured I would get this working and the subtraction would be simple change.)


                        <mvt:item name="cim_vol" param="tablearray" />
                        <mvt:if expr="l.settings:volprice_rows GT 0">
                        <mvt:foreach iterator="volume" array="volprice">
                        <mvt:if expr="pos1 EQ 2">
                        &mvt:volume:price;
                        <mvt:item name="toolkit" param="vassign|qnty1|l.all_settings:volume:price" />
                        </mvt:if>
                        </mvt:foreach>
                        </mvt:if>
                        each
                        <mvt:item name="cim_vol" param="tablearray" />
                        <mvt:if expr="l.settings:volprice_rows GT 0">
                        <mvt:foreach iterator="volume2" array="volprice">
                        <mvt:if expr="pos1 EQ 1">
                        &mvt:volume2:price;
                        <mvt:item name="toolkit" param="vassign|qnty1|l.all_settings:volume2:price" />
                        </mvt:if>
                        </mvt:foreach>
                        </mvt:if>
                        <mvt:item name="toolkit" param="math_add|add|qnty1|qnty2" /><br>
                        &mvte:global:add;
                        Alan Mecca
                        President
                        8:30-5:00 M-Th, 8:30-4:30 F
                        T: 800-899-0620
                        E: [email protected]
                        www.personalizeddoormats.com

                        Comment

                        • wcw
                          Developer Partner

                          • Mar 2006
                          • 11329

                          #13
                          Re: Pull Out Specific Quantity Price in EP's Volume Discount

                          You did not save a value to qnty2. You put qnty1 in both lines.
                          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                          Facebook http://www.facebook.com/EmporiumPlus
                          Twitter http://twitter.com/emporiumplus

                          Comment

                          • amecca
                            Mivite

                            • Oct 2007
                            • 106

                            #14
                            Re: Pull Out Specific Quantity Price in EP's Volume Discount

                            I sure did. I changed it and still only get $0.00. This time I added the formatting, which works, but I can't get it to add the values.

                            <mvt:item name="cim_vol" param="tablearray" />
                            <mvt:if expr="l.settings:volprice_rows GT 0">
                            <mvt:foreach iterator="volume" array="volprice">
                            <mvt:if expr="pos1 EQ 2">
                            &mvt:volume:price;
                            <mvt:item name="toolkit" param="vassign|qnty2|l.settings:volume:price" />
                            </mvt:if>
                            </mvt:foreach>
                            </mvt:if>
                            +
                            <mvt:item name="cim_vol" param="tablearray" />
                            <mvt:if expr="l.settings:volprice_rows GT 0">
                            <mvt:foreach iterator="volume2" array="volprice">
                            <mvt:if expr="pos1 EQ 1">
                            &mvt:volume2:price;
                            <mvt:item name="toolkit" param="vassign|qnty1|l.settings:volume2:price" />
                            </mvt:if>
                            </mvt:foreach>
                            </mvt:if>
                            <mvt:item name="toolkit" param="math_add|add|qnty1|qnty2" />
                            <mvt:item name="toolkit" param="currencyformat|formatted_volume|add" />
                            =
                            &mvt:global:formatted_volume;
                            </H3>
                            Alan Mecca
                            President
                            8:30-5:00 M-Th, 8:30-4:30 F
                            T: 800-899-0620
                            E: [email protected]
                            www.personalizeddoormats.com

                            Comment

                            • nottheusual1
                              Mega Mivite


                              • Jul 2008
                              • 1124

                              #15
                              Re: Pull Out Specific Quantity Price in EP's Volume Discount

                              You took out the "all_" in your local variables names.

                              Comment

                              Working...
                              X