View miva-product-volume-pricing-provisioning.xml
<PriceGroupProduct_Assign group_name="GROUP_NAME" product_code="PRODUCT_CODE" />
<Module code="discount_volume" feature="discount">
<ProductPricingTable product_code="PRODUCT_CODE" group_name="GROUP_NAME">
<Entry quantity="NUMBER" type="fixed,percent,absolute" amount="FLOAT" />
</ProductPricingTable>
<ProductPricingTable product_code="abc-123" group_name="Volume Pricing">
<Entry quantity="100" type="absolute" amount="99.99" />
View miva-mivascript-formatted-date-timestamp.xml
<mvt:comment>
| Format Date
| /lib/util_soap.mv
| <MvFUNCTION NAME = "Format_SOAP_DateTime" PARAMETERS = "time_t" STANDARDOUTPUTLEVEL = "">
</mvt:comment>
<mvt:do file="g.Module_Library_Utilities" name="l.settings:group:dt_start_formatted" value="Format_SOAP_DateTime( l.settings:group:dt_start )" />
<!--
View miva-tokenlist-in-smt.xml
token<mvt:assign name="l.settings:scopes" value="miva_array_deserialize( 'l,g,s' )" />
<table border="1">
<mvt:foreach iterator="scope" array="scopes">
<tr>
<td colspan="2"><h1>&mvt:scope;</h1></td>
</tr>
<tr>
<td>Variable Name</td>
<td>Value</td>
</tr>
View miva--get-part-of-string-after-occurrence-of-another-string.xml
<mvt:assign name="g.string" value="'something.com/goes-here.html'" />
<mvt:assign name="g.split" value="'.com'" />
<mvt:assign name="g.after_index" value="(g.split CIN g.string) + len(g.split)" />
<mvt:assign name="g.after" value="substring( g.string, g.after_index , len(g.string) )" />
&mvte:global:after;
View miva--uri-add-delete-delete-all-xml-provisioning.xml
<!--
================================
<URI_Add />
Description:
Adds a new URI to a page, category, product, or feed.
Rules:
Requires `uri` attribute with a value starting with "/"
For canonical URIs, add `canonical="yes"` attribute and ommit the `status` attribute.
View miva-smart-breadcrumbs-http_referer-adjustment-global-pre-render.xml
<mvt:comment>
|---------------------------------------------------------------------
| SMART-BREADCRUMBS S.HTTP_REFERER ADJUSTMENT
|---------------------------------------------------------------------
| Alters Smart-Breadcrumbs & Category-Tree behavior that always
| loads breadcrumb hierarchies based on s.http_referer; even when
| the refering category is not in the product's hierarchy.
|---------------------------------------------------------------------
| 1.) Check Referring Category
| 2.) Check Current Request's Product
View TERMS.html
Please carefully review the <a href="#">Software License Agreement</a> and click the I accept button below to download the file(s) ordered.
If you have questions about the license agreement, please email <a href="mailto:legal@example.com">legal@example.com</a>.
<mvt:if expr="g.DigitalDownload">
<button type="button" onclick="window.location = 'https://&mvte:global:domain:name;/mm5/download.mvc?Store_Code=&mvte:global:Store_Code;&DigitalDownload=&mvte:global:DigitalDownload;'" class="button">I accept the License Agreement</button>
</mvt:if>
<mvt:if expr="g.DownloadUrl">
<button type="button" onclick="window.location = '&mvte:global:DownloadUrl;'" class="button">I accept the License Agreement</button>
View .htaccess
# ######################################################################
# # WEB PERFORMANCE #
# https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess #
# ######################################################################
# ----------------------------------------------------------------------
# | Compression |
# ----------------------------------------------------------------------
<IfModule mod_deflate.c>
View wholesale-customer-upload-form.php
<?php
header('Content-Type: text/plain; charset=utf-8');
try {
// Undefined | Multiple Files | $_FILES Corruption Attack
// If this request falls under any of them, treat it invalid.
if (
!isset($_FILES['file']['error']) ||
View maxmind-geoip.htaccess
.htaccess to set MM_Country_Code HTTP Header or Cookie
=====================================================
### Begin - MaxMind Country Detection
MaxMindDBEnable On
MaxMindDBFile DB /var/www/vhosts/example.com/private/GeoIP2-Country.mmdb
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code
Header add X-MM-Country-Code "%{MM_COUNTRY_CODE}e"
RequestHeader set X-MM-Country-Code "%{MM_COUNTRY_CODE}e"