Instantly share code, notes, and snippets.

View miva-action-descriptions.md

Miva Action Descriptions

Here is a table that lists out the actions found within the merchant.mv file of the 9.12.00 LSK

Action Description
LOGN Customer Login
LOGO Customer Logout
EMPW Customer Email Password
CPWD Customer Change Password
View pixiedust_python_nodebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View miva-xml-provisioning-combination-facet-product-import.xml
<Module code="combofacets" feature="util">
<CombinationFacet_Add>
<Code>year_make_model</Code>
<Name>Year/Make/Model</Name>
<Enabled>1</Enabled>
<IncludeOtherProducts>0</IncludeOtherProducts>
</CombinationFacet_Add>
<CombinationFacetField_Add facet_code="year_make_model">
<Code>year</Code>
View miva-json-api-mvt-call-example-with-hmac-signature.xml
<mvt:comment>
Replace Access token and signature
</mvt:comment>
<mvt:assign name="g.endpoint" value ="'https://version9.mivamerchant.net/mm5/json.mvc'" />
<mvt:assign name="g.access_token" value ="''" />
<mvt:assign name="g.signature" value ="crypto_base64_decode('')" />
<mvt:assign name="g.timestamp" value="' \"Miva_Request_Timestamp\" : ' $ '\"' $ s.time_t $ '\",' " />
View master_provide.xml
<Provision oncomplete="archive|delete">
<Domain>
<Store_Create>
<Code>GES</Code>
<Name>Garth's Equipment Shoppe</Name>
<Manager>admin</Manager>
<LicenseNumber>mvsup-3NMBCP01101</LicenseNumber>
<Owner>McCollough Enterprises</Owner>
<Email>noreply@miva.com</Email>
<Company>miva test</Company>
View miva-basket-order-item-price-descriptions.md

Single-Item Values

  • item:base_price = Product's Price Before Discounts
  • item:price = Product's Price With Discounts
  • item:quantity = Quantity Of Product That Is Purchased

Quantity-Based Values

  • item:subtotal = item:price × item:quantity
  • item:subtotal_base_price = item:base_price × item:quantity
  • item:subtotal_comprehensive = item:subtotal + (sum Of The item:options[]:subtotals)
View miva-variant_id-variant-parts-fix.xml
<mvt:foreach iterator="item" array="order:items">
<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductVariant_Load_Attributes( l.settings:item:product:id, l.settings:item:options, l.settings:item:option_count, l.settings:item:productvariant )" />
<mvt:if expr="l.settings:item:productvariant:variant_id NE l.settings:item:variant_id">
<mvt:assign name="l.settings:item:parts" value="''" />
<mvt:do file="g.Module_Library_DB" name="l.success" value="ProductList_Load_Variant( l.settings:item:product:id, l.settings:item:productvariant:variant_id, l.settings:item:parts )" />
<mvt:foreach iterator="part" array="item:parts">
<mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_ID( l.settings:part:id, l.settings:part )" />
</mvt:foreach>
</mvt:if>
</mvt:foreach>
View miva-xml-provisioning-to-add-a-note-to-customer-business-account-or-order.xml
<!--
<Note_Add />
One of the following attributes is required:
customer: customer login
business: Business Title
order: Order ID
Examples:
-->
View miva-css-and-js-cache-busting-with-modification-time.xml
<mvt:comment>
Style Sheet Cache Busting on Modification Time
</mvt:comment>
<mvt:assign name="l.settings:css_file:path" value="'/mm5/' g.theme_path $ '/css/pages.css'" />
<mvt:assign name="l.settings:css_file:modified_time" value="stime( l.settings:css_file:path )" />
<mvt:assign name="l.settings:css_file:path_with_cache_buster" value="l.settings:css_file:path $ '?v=' $ l.settings:css_file:modified_time" />
<link rel="stylesheet" href="&mvt:css_file:path_with_cache_buster;">
<mvt:comment>
JavaScript Cache Busting on Modification Time
View miva-generate-301-redirects-for-short-link-pattern.xml