Announcement

Collapse
No announcement yet.

Attribute Pricing Not Working?

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

    #16
    Originally posted by Matt Zimmermann View Post
    The mini-basket can be modified to show the combined pricing if you want that. Otherwise, that is the standard way the pricing would display. If you have a base product and attributes add to its price, then you would see the individual amounts. If you are using variant pricing, then you are per-calulating the products price.
    What if we want both - to show the price dynamically - but also see each attribute as a line item in the basket and know what the total is.

    Comment


      #17
      Originally posted by afiumano View Post
      Bruce, do you happen to have an example of a site that does it that way? The client likes to have the radio as Yes No to require a response because they have had issues in the past with customers saying they had wanted the gift message, etc.
      Its offline at the moment. Fixing something

      https://www.redrivercatalog.com/red-...rtificate.html
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #18
        I have managed to 'style' a checkbox to look like the radio button selectors so they can still check "yes" or "no". But the value of the checkbox isn't passing through. I tried this on my test store as well, and it doesn't pass the value to the basket: https://dts2290.mivamerchantdev.com/...-memorial-tree. Is there a way to have the basket display "Yes" or "No" for the value of the checkbox like it does for the radio buttons?

        Comment


          #19
          The value passed for a checkbox is the prompt you enter in the admin.
          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


            #20
            But ideally the 'value' of the checkbox comes through to be consistent with the other attributes. Is this possible?
            See image.
            Attached Files

            Comment


              #21
              To the best of my knowledge, if the attribute is checked, it will pass to the options loop so there should be no reason to have "Yes" appended to it as having it there confirms what option you selected. If you want "Yes" to be part of that, you could put a conditional in the loop to check for that option and append "Yes" to 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


                #22
                Originally posted by afiumano View Post
                But ideally the 'value' of the checkbox comes through to be consistent with the other attributes. Is this possible?
                See image.
                You would control the display but looking for the affirmative:

                <mvt:if expr="l.settings:this:attribute:option:code"> Yes <mvt:else> No </mvt:if>

                (note, not actual option variable. depends where you are using it.
                Bruce Golub
                Phosphor Media - "Your Success is our Business"

                Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                phosphormedia.com

                Comment


                  #23
                  I am not quite sure what this conditional is checking? I am using tokenlist but no value is displayed for the opt_code so I am sorta lost.

                  <mvt:if expr="l.settings:option:opt_code EQ 'Yes'">Yes<mvt:elseif expr="l.settings:option:opt_code EQ 'No'">No</mvt:if>

                  This only works on radio buttons.

                  Comment


                    #24
                    try
                    Code:
                    <mvt:if expr="l.settings:option:opt_code">Yes<mvt:else>No</mvt:if>
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment

                    Working...
                    X