Announcement

Collapse
No announcement yet.

Price Group and Power Search

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

    Price Group and Power Search

    I have created a Sale Price group for the sales items in the dev store. Since the Sale field is not part of the custom field, how do I go about using/calling it on the SRCH page using power search? I also notice the price facet uses the regular price as well. Is it possible to have the price facet use the sale price?

    Thanks

    #2
    Re: Price Group and Power Search

    Is it displaying on the SRCH page without PowerSearch? If so, it should also display using PowerSearch unless you're using the custom template in that module.
    Best,
    Pamela

    Consultant / Developer / Trainer
    Contributing Editor to Practical Ecommerce
    Author of the Official Guides for Miva Merchant
    pamelahazelton.com

    Comment


      #3
      Re: Price Group and Power Search

      Hi Pamela,

      The SRCH page without power search has the search_result item which allow me to select custom fields and other fields such as sale price. Using Power Search, I have to go to the utility/power search page to modify the template. On the Power Search admin page, I can only see custom fields. Is there a work around for this that hasn't been shared? How do I call the sale price in miva template?

      Comment


        #4
        Re: Price Group and Power Search

        Power Search bases the price range on the base price field. There is no efficient way that it could search your entire inventory and convert each price to a price group price before satisfying the complete search query in a reasonable time frame. When you display a single PROD page or a handful of category based products on CTGY, that is a very small subset so running the price group code in the display is a minor resource issue. You are not showing CTGY products within a price range. Instead you are showing all of them and displaying the price group price. But running that code on your entire database would overwhelm the system and searches would go into the minutes rather than seconds.
        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


          #5
          Re: Price Group and Power Search

          Thanks Bill. I guess I can live with the base price for the price group when the facet is being clicked. I think that's what you mean in regards to resource.

          How about if the sale price exist, I like to show a strike through for the base price and display the sale price so it's consistent with my category page. I would assume this won't take a lot of resources since it's apart of the product For loop? Is there a variable or token I can use in the template to call the sale price for each product?

          Comment


            #6
            Re: Price Group and Power Search

            When the data is retrieved it should be using the base price for the query. But when it displays on the template page it should be using the price group adjusted price. So it IS showing the sale price for the price group.
            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


              #7
              Re: Price Group and Power Search

              Yes, that's correct. How should this be coded in the template? Here is what I have per Brennan's code on a different post.

              <div class="product-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><span class="bold red"> &mvt:product:formatted_price;</span>
              <mvt:else>
              <span class="bold">&mvt:product:formatted_price;</span>
              </mvt:if>


              </div>

              Comment


                #8
                Re: Price Group and Power Search

                I don't know if they have updated power search to have the variable product:formatted_base_price. Here are the variables that were in power search prior to the new discounting features.
                l.product:price the base price
                l.product:adjusted_price the price group adjusted price
                l.product:formatted_price the formatted adjusted price

                There is no variable for the formatted base price because that value is not normally shown. You could use the tool kit to format that variable or just stick a $ sign in front of it.
                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


                  #9
                  Re: Price Group and Power Search

                  Thanks Bill. I will try those over the weekend to see if it will reflect the sale price. Thanks

                  Comment


                    #10
                    Re: Price Group and Power Search

                    Rick/Brennan,

                    I tried Bill's variables and it doesn't seem to pull the Sale Price. Can you help provide the correct code to pull the Sale price for the new discount feature?

                    Thanks

                    Comment


                      #11
                      Re: Price Group and Power Search

                      Originally posted by wcw View Post
                      I don't know if they have updated power search to have the variable product:formatted_base_price. Here are the variables that were in power search prior to the new discounting features.
                      l.product:price the base price
                      l.product:adjusted_price the price group adjusted price
                      l.product:formatted_price the formatted adjusted price

                      There is no variable for the formatted base price because that value is not normally shown. You could use the tool kit to format that variable or just stick a $ sign in front of it.
                      Would this be the same if using the toolkit "simplesearch" function?
                      Highly caffeinated
                      http://www.coffeehouseexpress.com

                      Comment


                        #12
                        Re: Price Group and Power Search

                        No it is not currently supported in any 3rd party module. We have some code you can add to calculate it yourself. Here is just an example, you'll need to modify it to fit your needs:

                        https://gist.github.com/ghassani/21b..._discounts-mvt
                        Brennan Heyde
                        VP Product
                        Miva, Inc.
                        [email protected]
                        https://www.miva.com

                        Comment


                          #13
                          Re: Price Group and Power Search

                          Brennan,

                          I don't have toolbelt. Is there an example using toolkit?

                          Comment


                            #14
                            Re: Price Group and Power Search

                            Any update on this or should I revert back to use a custom field for the sale price

                            Comment


                              #15
                              Re: Price Group and Power Search

                              I would also like to be able to display sale prices in Power search results. Anything?
                              Thanks

                              Comment

                              Working...
                              X