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?
Announcement
Collapse
No announcement yet.
View Custom Product Field Based on Selected Variant on Product Page
Collapse
X
-
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
-
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
-
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
-
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
-
Originally posted by greggc View PostI 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?
ScottNeed to offer Shipping Insurance?
Interactive Design Solutions https://www.myids.net
MivaMerchant Business Partner | Certified MivaMerchant Web Developer
Competitive Rates, Custom Modules and Integrations, Store Integration
AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
My T-shirt Collection is mostly MivaCon T-shirts!!
Comment
-
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
Comment