Announcement

Collapse
No announcement yet.

suviant theme Product price and attributes id="js-price-value"

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

    suviant theme Product price and attributes id="js-price-value"

    I notice when a number is entered into an attribute the actual price of the product changes.

    if the attribute cost is $1 and you enter in 1 the product price updates automatically by $1

    But if the product attribute cost is $1 and you enter 5 the product price only updates automatically by $1
    Shouldn't it update by $5? 5x$1=$5

    How Do you fix it to register the price correctly?

    #2
    Re: suviant theme Product price and attributes id="js-price-value"

    Do you have a link to a product where this is happening? When I test this process in the demo site (http://suivant-theme.mivamerchantdev...-lipstick.html) it appears to be working as expected.
    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
      Re: suviant theme Product price and attributes id="js-price-value"

      Thanks Marc for the Reply.

      In the example you are showing the attribute is a drop down menu.

      An Attribute with an text input is what I am using

      Thanks again

      Comment


        #4
        Re: suviant theme Product price and attributes id="js-price-value"

        Do you have a link to an example product? If you are using a text input or textarea as a quantity value, you will need to add JavaScript to the function to verify that the input is a number and then use that value as part of the multiplier.
        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
          Re: suviant theme Product price and attributes id="js-price-value"

          Thanks Matt,

          I am using text area, Is there information anywhere I can read up to accomplish this task?

          Comment


            #6
            Re: suviant theme Product price and attributes id="js-price-value"

            It's not a default behavior I believe, so unless you provide a link where exactly this is happening, it is going to be very difficult to give any solution.
            Rajnish Sinha
            ---------------------
            https://twitter.com/rajnishsi

            Comment


              #7
              Re: suviant theme Product price and attributes id="js-price-value"

              @field - For using a text input or a text area, you would need to create a function either onblur or on keyup of that field which would qualify the content, evaluate the field for the content you are pricing by, and then adjust the price. @rajnishshi is correct, this behavior is not default, so it will require custom coding to accomplish.
              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