Announcement

Collapse
No announcement yet.

Attribute Price Display - Remove Addition Price - Suivant Theme

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

    Attribute Price Display - Remove Addition Price - Suivant Theme

    Hi,

    I was wondering if there was a way to hide or remove the additional price that is displayed next to the attribute? Here's one of the pages on my dev site:

    http://dev.imagescienceassociates.co...et-family.html

    0.5X
    1X + $40.00
    2X + $115.00
    1X and 0.5X with Case + $765.00
    All 3 Targets with Case + $1315.00

    I want to remove the + $123 and replace that with the FULL price. Or like this...

    0.5X ($385)
    1X ($425)
    2X ($500)
    1X and 0.5X with Case ($1150)
    All 3 Targets with Case ($1700)

    Any help would be appreciated. Thanks!

    #2
    In your Product Attribute Template, you should be able to replace all instances of:
    Code:
    <mvt:eval expr="' +$' $ rnd(l.settings:option:price, 2)" />
    with:
    Code:
    <mvt:eval expr="' $' $ rnd(l.settings:product:price + l.settings:option:price, 2)" />
    and
    Code:
    <mvt:eval expr="' -$' $ rnd(l.settings:option:price, 2)" />
    with:
    Code:
    <mvt:eval expr="' $' $ rnd(l.settings:product:price - l.settings:option:price, 2)" />
    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 Matt,

      I did exactly what you said and it didn't work. I found 4 instances of each piece of code in the Product Attribute Template section, replaced them with the code you provided, and nothing happened. The page and options work exactly the same as before. Thoughts?

      Comment


        #4
        Looks like there might be a typo for the use in radio buttons which would cause a find/replace to not update it. Check that those are updated the same as the select ones.
        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
          Okay, I may have update the code on the wrong page. I used the search function to find the Product Attribute Template (PAT) and updated the section, however now I can't find it. I find the PAT section on the Missing and Missing Upsell pages but that's it for search.

          What's the path to the correct area to update?

          Comment


            #6
            You will want to edit this on the PROD page
            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
              Found the code and it was the page I updated earlier. Here's a few sections that didn't get updated. I don't understand what you mean by 'for use in radio buttons'. Do I need to update the sections of code below?

              Code:
                                      &mvte:option:prompt;
                                      <mvt:if expr="l.settings:option:price">
                                          <mvt:if expr="l.settings:option:price GT 0">
                                              &nbsp;<mvt:eval expr="'+ $' $ rnd(l.settings:option:price, 2)" />
                                          <mvt:else>
                                              &nbsp;<mvt:eval expr="'- $' $ rnd(l.settings:option:price, 2)" />
                                          </mvt:if>
              Code:
                                      &mvte:attribute:prompt;
                                      <mvt:if expr="l.settings:attribute:price">
                                          <mvt:if expr="l.settings:attribute:price GT 0">
                                              &nbsp;<mvt:eval expr="' +$' $ rnd(l.settings:attribute:price, 2)" />
                                          <mvt:else>
                                              &nbsp;<mvt:eval expr="' -$' $ rnd(l.settings:attribute:price, 2)" />
                                          </mvt:if>
              Code:
                                      &mvte:attribute:prompt;
                                      <mvt:if expr="l.settings:attribute:price">
                                          <mvt:if expr="l.settings:attribute:price GT 0">
                                              &nbsp;<mvt:eval expr="' +$' $ rnd(l.settings:attribute:price, 2)" />
                                          <mvt:else>
                                              &nbsp;<mvt:eval expr="' -$' $ rnd(l.settings:attribute:price, 2)" />
                                          </mvt:if>

              Comment


                #8
                Yes, update all those sections.
                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
                  Okay, that worked, thanks!! I'm just cutting and pasting items that I don't understand so it's a little nerve racking. I know HTML, CSS and a tiny bit of javascript but not miva code.

                  So I have one other question. I'll make a new CSS class to make the text a little smaller and a lighter grey but I'll need to place a span tag around some code. Do you know where that should go?

                  Comment


                    #10
                    You should be able to wrap the MVT:EVAL statements in the SPAN tags.
                    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
                      So put it like this?

                      Code:
                      <span><mvt:eval expr="' $' $ rnd(l.settings:product:price + l.settings:option:price, 2)" /></span>

                      Comment


                        #12
                        Yes, that should do 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

                        Working...
                        X