Announcement

Collapse
No announcement yet.

View Custom Product Field Based on Selected Variant on Product Page

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

    View Custom Product Field Based on Selected Variant on Product Page

    I have some products that have multiple variants. Of these some qualify for free shipping and some do not. I would like to be able to show a custom product field on the product page that indicates the shipping message based on the variant selected. Can this be done?

    #2
    This should work

    Code:
    <mvt:do file="g.Module_Library_DB" name="g.loadID" value="ProductList_Load_Variant(l.settings:group:p roduct:id, l.settings:group:variant_id, l.settings:variant)" />
    
    <mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code(l.settings:variant[1]:code, l.settings:variant_product)" />
    <mvt:item name="customfields" param="Read_Product_Code(l.settings:variant_produc t:code,'custom_field_name', l.settings:variant_product:custom_field_name)" />
    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


      #3
      Thanks Bruce. I appreciate the attempt. You have helped me many times in the past. But honestly, I don't know what to do with this. I know this is probably a small job, but is important I have this functionality. If anybody wants to do this for me just send me a quote.

      Greg

      Comment


        #4
        Gregg, do you want the free-shipping message to appear and disappear as the customer makes different attribute selections on the product page? That will require some Javascript.
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment


          #5
          Kent, that is correct. The message would change from free shipping to shipping charges apply or whatever I input into the custom variant field. Here is a link to one of the products I'm talking about. As you can see it is not very pretty.

          https://www.horseandkennel.com/farna...ncentrate.html

          Comment


            #6
            Also, I would need it wrapped in a conditional

            Comment


              #7
              I can do this, but not right away; my schedule is full for most of June. If you don't mind waiting, you can email me to discuss the project: Kent "at" TheMagicM "dot" com.
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment


                #8
                Originally posted by greggc View Post
                I have some products that have multiple variants. Of these some qualify for free shipping and some do not. I would like to be able to show a custom product field on the product page that indicates the shipping message based on the variant selected. Can this be done?
                Yes, this can be done. Probably not a trivial task. I've done it using some Javascript/JQuery as customization in my Waitlist Integration. I'd send you a quote as you requested, but I also have a full plate. Let me know your urgency and I'll see if I can help.

                Scott
                What help do you need today!
                Interactive Design Solutions http://www.southbound.com
                MivaMerchant Business Partner | Certified MivaMerchant Web Developer
                My T-shirt Collection is mostly MivaCon T-shirts!!
                Competitive Rates, Popular Modules, and Integrations:
                Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

                Comment


                  #9
                  Sorry to talk you out of job guys :), but, looking at your site. I don't think "hiding" that message is the right way to go. Instead, I'd use a custom field to just apply text like

                  1 Gallon Size Ships Free

                  Right above the dropdown.

                  Reason being, the way you described it, they won't see the message until they select that option. You want to PROMOTE them selecting that option.
                  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