Announcement

Collapse
No announcement yet.

Marketing > Specific Sale Price

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

    #16
    Re: Marketing > Specific Sale Price

    I have one set up and it shows correctly discounted on the basket page but getting the calculated/line/sale to show on the PROD page does not work.
    Mark Hood
    Vermont Gear

    Comment


      #17
      Re: Marketing > Specific Sale Price

      This is what I mean by elements which I assumed may have something to do with something here.
      Last edited by Mark Hood; 11-25-14, 01:58 PM.
      Mark Hood
      Vermont Gear

      Comment


        #18
        Re: Marketing > Specific Sale Price

        Never mind I got it... stupid little checkbox

        Mark Hood
        Vermont Gear

        Comment


          #19
          Re: Marketing > Specific Sale Price

          Just found this thread as I was trying to update templates on a dev store that was upgraded from 5.5 to 9.

          Seems the template changes page:
          http://www.miva.com/version9-template-changes

          Is different from what Brennan lists. Brennan's code seems to be working to do the strikethrough pricing .

          However, I still can't get it to show that product-discounts field where you can say something like: Savings of XXXX

          Any ideas?

          -Kevin
          Web Design and Development, Internet Marketing
          Lancer Media, Inc.

          Comment


            #20
            Re: Marketing > Specific Sale Price

            Hi Kevin -

            Yes those are the correct page template changes. The that logic is contained in this foreach loop:

            Code:
             <mvt:foreach iterator="discount" array="group:discounts">
            	<mvt:if expr="l.settings:discount:display">
            		<div class="order-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
            	</mvt:if>
            </mvt:foreach>
            This goes on the BASK page in the Basket Layout.

            It will only output code if you have a product level discount.
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #21
              Re: Marketing &gt; Specific Sale Price

              Originally posted by Brennan View Post
              Hi Kevin -

              Yes those are the correct page template changes. The that logic is contained in this foreach loop:

              Code:
               <mvt:foreach iterator="discount" array="group:discounts">
                  <mvt:if expr="l.settings:discount:display">
                      <div class="order-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
                  </mvt:if>
              </mvt:foreach>
              This goes on the BASK page in the Basket Layout.

              It will only output code if you have a product level discount.
              Brennan,

              I'm looking for code to use on the PROD page.

              I'm using the code you pasted before, but no matter what I can't get anything into the <div id="product-discounts"></div>

              -Kevin
              Web Design and Development, Internet Marketing
              Lancer Media, Inc.

              Comment


                #22
                Re: Marketing &gt; Specific Sale Price

                ahh got it.

                The default page template changes don't include this. You have to turn them on from point and click mode.

                On your product page below the price add this:

                Code:
                <div id="product-discounts">
                	<mvt:foreach iterator="discount" array="product:discounts">
                		<div class="product-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
                	</mvt:foreach>
                	</div>
                Then make sure you have "Calculate Predicted Discounts and Sale Price" checked.
                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment


                  #23
                  Re: Marketing &gt; Specific Sale Price

                  Originally posted by Brennan View Post
                  ahh got it.

                  The default page template changes don't include this. You have to turn them on from point and click mode.

                  On your product page below the price add this:

                  Code:
                  <div id="product-discounts">
                      <mvt:foreach iterator="discount" array="product:discounts">
                          <div class="product-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
                      </mvt:foreach>
                      </div>
                  Then make sure you have "Calculate Predicted Discounts and Sale Price" checked.

                  Brennan,

                  You rock as usual! Worked perfectly.

                  I'm assuming that for someone who has upgraded from 5.5 and likely has custom modification on most pages (so we aren't in Point and Click mode), that we really have 2 options for getting the correct code:

                  1) Open a dev store from Miva to use as a playground
                  2) Copy our custom code, then switch back to point and click and enable options, copy new options, then switch back to advanced to implement?

                  -Kevin
                  Web Design and Development, Internet Marketing
                  Lancer Media, Inc.

                  Comment


                    #24
                    Re: Marketing &gt; Specific Sale Price

                    Yeah, it does make it kinda of difficult to add, but those are the best options.

                    I'll see if we can modify the page template changes to describe how to implement some of the optional features like this
                    Brennan Heyde
                    VP Product
                    Miva, Inc.
                    [email protected]
                    https://www.miva.com

                    Comment


                      #25
                      Re: Marketing &gt; Specific Sale Price

                      So I'm digging into this - gosh is was so much easier to use the cost field / price field to do sale pricing. Why wasn't a third price option just built into the PROD screen? I guess I could go and assign all of the products to the price group I had to create to get this working the Sale Pricing field added to a product screen so it will always be available.
                      Leslie Kirk
                      Miva Certified Developer
                      Miva Merchant Specialist since 1997
                      Previously of Webs Your Way
                      (aka Leslie Nord leslienord)

                      Email me: [email protected]
                      www.lesliekirk.com

                      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                      Comment


                        #26
                        Re: Marketing &gt; Specific Sale Price

                        Hey Leslie -

                        It was implemented this way mostly for flexibility. Instead of having a single price field, you can have as many additional sale price fields as you want and turn then on and off as needed or even chain then with other discounts.
                        Brennan Heyde
                        VP Product
                        Miva, Inc.
                        [email protected]
                        https://www.miva.com

                        Comment


                          #27
                          This thread is pretty old, but maybe someone can shed some light on our issue.

                          We too used the Cost/Retail field to show sale pricing for products. I've now done it the intended way, using a price group for product-specific sale pricing in our dev store, but I cannot get it to display correctly on the category or basket pages to save my life.

                          My "Sale" price group is All Shoppers, specific sale price, 0 priority (but allows combination). We have a wholesale price group, specific customers, with priority 1, and it is legacy (50% from retail), but still allows combination with the sale price group (maybe this is the culprit, but wait, it gets better..).

                          The frustrating part is that the setup is working perfectly on the PROD pages, and logically how I would assume it should work. If wholesale customer and wholesale product, shows wholesale pricing. If wholesale customer and not wholesale product, but is product on sale, shows sale price. If not wholesale customer, shows sale price. Perfect!

                          But the category pages and basket pages are totally fubar. CTGY seem to be working in this way: if wholesale customer and wholesale product, shows wholesale price (good!). If wholesale customer and not wholesale product, but is product on sale, shows full retail price (not good). If all other shoppers, and product on sale, shows full retail price (whyyyy).

                          I haven’t even really delved into the BASK page but it seems to be: if wholesale customer and wholesale product, shows wholesale price in BASK line items (good) but incorrect basket_subtotal with full retail prices (bad!). If wholesale customer and not wholesale product, but is product on sale, shows full retail price in BASK line items, correct subtotal with on sale prices (whaaat). If all other shoppers, but is product on sale, shows full retail price in BASK line items, correct subtotal with on sale prices (double whaaat).

                          The “all shoppers” customers who are not even part of another price group and products that are ONLY in the Sale price group problems are really throwing me for a loop, because they shouldn’t have ANY problems displaying the on-sale price, but the BASK and CTGY screens are still having major issues with it. Wildly, the MINI basket shows the on-sale prices to “all shoppers” correctly, but shows the on-sale prices crossing out the wholesale prices to wholesale price group customers. Sigh.

                          I have copied and pasted from this thread, from the prod pages, template updates, anywhere I can find, mimicking every point and click option, and still the CTGY pages will not display the product-specific sale prices to anyone!


                          This is the coding I have tried on the CTGY page (neither works to display product-specific sale pricing):
                          Code:
                          <div class="product-price">
                            Price: 
                                <mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
                                    <span style="text-decoration: line-through">&mvt:product:formatted_base_price;</span>
                                </mvt:if>
                                <span class="bold">&mvt:product:formatted_price;</span>
                            </div> 
                                               <mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
                                                    <p><div class="hide strike">&mvt:product:formatted_base_price;</div><div class="red">&mvt:product:formatted_retail;</div></p>
                                                <mvt:else>
                                                    <mvt:if expr="g.customer:pgrpcount GT 0 and NOT ISNULL l.settings:product:customfield_values:customfields:WLSALE">
                                                        <div id="js-price-value" class="purple" data-base-price="&mvt:product:price;">&mvt:product:formatted_price;</div>
                                                    <mvt:else>
                                                        <div id="js-price-value" data-base-price="&mvt:product:price;">&mvt:product:formatted_price;</div>
                                                    </mvt:if>
                                                </mvt:if>
                          Here is my PROD page code (and yes, I have tried putting this coding on the CTGY pages too—no dice):
                          Code:
                                                <div class="column half align-center">
                                                    <mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
                                                        <span><small>Normally: <s id="js-additional-price">&mvt:product:formatted_base_price;</s></small></span>
                                                        <div id="js-price-value" class="h2 red nm" data-base-price="&mvt:product:price;">&mvt:product:formatted_retail;</div>
                                                    <mvt:elseif expr="l.settings:product:price GT 0">
                                                        <mvt:if expr="g.customer:pgrpcount GT 0 AND NOT ISNULL l.settings:product:customfield_values:customfields:WLSALE">
                                                            <div id="js-price-value" class="h2 purple nm" data-base-price="&mvt:product:price;">&mvt:product:formatted_price;</div>
                                                        <mvt:else>
                                                            <div id="js-price-value" class="h2 charcoal nm" data-base-price="&mvt:product:price;">&mvt:product:formatted_price;</div>
                                                        </mvt:if>
                                                    <mvt:else>
                                                        <div id="js-price-value" class="all-hidden" data-base-price="&mvt:product:price;"></div>
                                                    </mvt:if>
                                                    <div id="js-product-discounts">
                                                        <mvt:foreach iterator="discount" array="product:discounts">
                                                            <div class="product-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
                                                        </mvt:foreach>
                                                    </div>
                                                </div>
                          Calculate Predicted Discounts and Sale Price is checked. In Point and Click, I have Displayed Price: Sale, Additional Price: Retail, Display Predicted Discounts. None of the products have a "Cost", so the only prices these products have set manually are Retail and Sale price.

                          When looking through the token list, it really looks like the "formatted_base_price" and the "formatted_price" for every product is all wrong, so I’m not even sure how the engine is calculating all of this, but I’m wondering if having more than one price group is just completely unattainable with how it’s (not) working. But, the gold star in all this is how the PROD pages are working. So, if anyone knows at all how I can get the PROD page functionality everywhere else, please let me know.

                          Or, even better, is there just a shortcut way to detect if a product has a value in that "Sale" price field? Because if so, that will solve the CTGY pages for me and I can just bash it with conditionals and force it to display the correct pricing. Any help would be GREATLY appreciated! Thanks!

                          Comment


                            #28
                            Eureka! I think I found the core of all my woes: toolkit category pagination and sorting. Once I removed that element from my category pages, price group pricing is displaying correctly. I also changed the wholesale price group from legacy to Product Discount, and now it is playing very nicely with the sale price group.

                            Comment

                            Working...
                            X