Miva Merchant Modules and Development
Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

CUSTOM FIELDS: Manual Load Product Field SMT

Scot Ranney • January 12, 2024


Load a product then manually load a custom field:

<mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code('PRODUCT_CODE', l.settings:product)" />

<mvt:assign name="l.fieldcode" value="'some_code'" />

<mvt:do 
	file="g.Module_Root $ '/modules/util/customfld.mvc'" 
	name="l.success" 
	value="ProductFieldValue_Load_CodeAndProduct(l.fieldcode, l.settings:product:id, l.field, l.settings:data)" />


Custom field value: &mvt:data:value;

https://www.scotsscripts.com/mvblog/custom-fields-manual-load-product-field-smt.html

mvkb_customfields mvkb_smt