Miva Merchant Development by Scot's Scripts

Miva Knowledge Base

Miva Random Code Trivia

This Miva knowledge base contains a bunch of random code that Scot Script's and other developers find useful as a reference tool. It is not intended for public use nor should it be used by the public in their Miva Merchant stores. It has not been checked for bugs or other problems.

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)
SEO Audit & Inquiries • News & Updates • SEO for Miva Merchant

Title Tags Author Published Updated
SITEMAP: A better sitemap.xml file for Miva Merchant sitemap feed Scot Ranney 20261022 20261022
Module Feature: Order Content, Width and Height ordercontents module Scot Ranney 20261012 20261012
STRING: Truncate a String/Product Description at a Space string mivascript Scot Ranney 20260910 20260910
SCREENSHOT: Get a Full Page Screen Shot Using Browser Inspector screenshot Scot Ranney 20260818 20260818
HTACCESS: Test htaccess Rules Without Browser Caching Hell mvck_caching htaccess Scot Ranney 20260814 20260814
ORDERITEMS: Load OrderItemsDiscounts for Entire Order discount mivascript Scot Ranney 20260812 20260812
ZOOMORA: My Top Rated Image Gallery/Lightbox Vanilla JS Plugin zoomora lightbox gallery images Scot Ranney 20260807 20260807
ReCAPTCHA: Hide ReCaptcha Icon From Print via CSS css google recaptcha Scot Ranney 20260724 20260724
COPY TABLE JS: Copy Table Contents on Click copy js select Scot Ranney 20260720 20260720
JS: No Right Click Based on Element Class js Scot Ranney 20260716 20260716
BOOTSTRAP 5: Form Input Width CSS Utilities bootstrap css Scot Ranney 20260715 20261006
COLLAPSE: Vanilla JS/CSS/HTML to Emulate BS5 Collapse Utility collapse js Scot Ranney 20260710 20260710
TIMEOUTS: Run Feed Template via Scheduled Task timeouts Scot Ranney 20260707 20260707
CSS: Width of Text Display Using CSS Character Max Width css Scot Ranney 20260601 20260601
CSS: CLAMP() Function css Scot Ranney 20260601 20260601
FONTS: Decent Modern Google Fonts fonts Scot Ranney 20260601 20260601
FRAGMENTS: Fragment Experiments and Claude's Wrap Up fragments Scot Ranney 20260519 20260530
READYTHEME: Literal Functions for Loading Images, Navsets, etc... readytheme smt Scot Ranney 20260519 20260723
SWIPER.JS: Horizontal Film Strip in Shadows PLUS Related Products swiper bxslider imagemachine images products slider Scot Ranney 20260515 20260909
ENCRYPTION: 2026 Miva Encryption Standards - sans Blowfish encrypt mivascript Scot Ranney 20260425 20260425
STATUS CODES: Miva Merchant Status Codes status order uri Scot Ranney 20260425 20260425
MySQL COUNT: Get Total Number of Records Without Loading mysql Scot Ranney 20260420 20260421
DIGITAL DOWNLOADS: Figure Out Expiration and Current Downloads download order smt Scot Ranney 20260416 20260416
SHARE: Cool Share Button, Uses Native Share UI if Available share js widget Scot Ranney 20260415 20260415
URL REFRESH: Meta Refresh in a Miva Template refresh redirect htaccess Scot Ranney 20260415 20260415
BRANCHES: Hide the Branch Toggle on the Front End branch css smt Scot Ranney 20260411 20260411
SVG / CSS: Icon Tricks svg icons css Scot Ranney 20260407 20260407
COUNT: Get Total Number Of Product, Categories, and More categories smt count totals products Scot Ranney 20260331 20260401
EMAILS: Load List of Template Based Emails email Scot Ranney 20260330 20260330
DISCOUNT: Get Discount State for Product or Product List discount smt Scot Ranney 20260319 20260319
JS: Confirm Click with Custom PopUp Message js Scot Ranney 20260220 20260807
SCHEDULED TASK: Module Development module mvbk_scheduled_task Scot Ranney 20260220 20260707
NAVIGATION SETS: How to Import to Miva Merchant import Scot Ranney 20260129 20260129
FONT AWESOME: USE IN A CSS CLASS fontawesome megamenu Scot Ranney 20260124 20260124
BOOTSTRAP 5: MEGA MENUS bootstrap megamenu Scot Ranney 20260123 20261014
PRODUCTS: Mass Delete Products provisioning import products Scot Ranney 20251017 20251017
SELECT: Refresh to URL Based on SELECT Option js select uri Scot Ranney 20251009 20251009
NOTES: Add to the Native Miva Notes Table notes smt Scot Ranney 20250924 20250924
BATCH REPORTS: Shipment Picklist reports batch Scot Ranney 20250909 20250909
FEED: Basic Google Shopping Feed Template for Miva Merchant feed google Scot Ranney 20250904 20261022
FILENAME: Get Base Filename from Path SMT filename smt Scot Ranney 20250806 20250806
# Web Services, SASS, and Other Resources websites Scot Ranney 20250723 20250812
FLAGS: CSS "Sale" and "Discount" etc Flags in Shadows flags categories css shadows Scot Ranney 20250501 20250501
CATEGORY: Cattitle Category Images categories Scot Ranney 20250428 20250428
SHIPPING COUPON: If a Shipping Coupon Doesn't Work coupons pricegroups Scot Ranney 20250423 20250423
QUOTES: Miva Quotes Module Notes quote Scot Ranney 20250418 20250418
FACETS: Basic Information facets Scot Ranney 20250402 20250402
FACETS: Workbench to Set Facet Values on Parsed Product Name facets Scot Ranney 20250402 20250402
BOX / DROP SHADOWS: Simple CSS for Drop Shadow Elements in Shadows dropshadow css shadows box_shadow Scot Ranney 20250320 20251211
CONTACT: SMT Contact Form and Processing email contact Scot Ranney 20250306 20250320
CHECKBOX: Toggle All Checkboxes Via Class checkbox jquery Scot Ranney 20250206 20250206
SWIPER.JS: How to Place Arrows Outside of Related Products Style Slide Content slider Scot Ranney 20250131 20260909
LINKS: Miva URI Dynamic Links smt uri Scot Ranney 20250128 20250128
MODALS: Easy Modals using Miva Merchant Shadows Native Code modal shadows Scot Ranney 20250123 20250528
BOOTSTRAP 5: Three Columns, Middle on Top for Mobile bootstrap html Scot Ranney 20250122 20250122
SANITIZING: Use miva_html_strip(...) for Easy User Input Safety security mivascript smt Scot Ranney 20241210 20241210
PRECISION PRICES: Fix Precision Price Bug precision price Scot Ranney 20241205 20241205
MIVAPAY: Submit Payment Once and Disable Button mivapay opay Scot Ranney 20241205 20250410
BASKET: Various Useful Variables, Functions, and Things basket Scot Ranney 20241202 20241202
JQUERY AJAX: Send Input Data Regardless of Form Tag and Input Names json ajax jquery Scot Ranney 20241114 20260608
CUSTOMER: Check If Customer is Logged In customer mivascript Scot Ranney 20241111 20241111
PHPMyAdmin: SQL Operations Misc Notes phpmyadmin Scot Ranney 20241110 20241110
JQUERY AJAX: Simple Click and Send Data Attributes ajax Scot Ranney 20241109 20241109
SCOTSBLOGGER: Load Posts Two Weeks Old and Display scotsblogger Scot Ranney 20241106 20241106
FACETS: Start With Facets Closed in Shadows facets Scot Ranney 20241015 20250203
INPUT: Enforce Min/Max As You Type input Scot Ranney 20240923 20241029
FAQ: Instapages Dynamic FAQ System shadows faqs instapages Scot Ranney 20240904 20240904
MIN-MAX: JS Auto Change min/max to Input Attribute input Scot Ranney 20240822 20240822
EMAIL: Send Email from Template or Module module email mivascript Scot Ranney 20240815 20260807
FORMS: Checkbox Check by Click on Text checkbox input Scot Ranney 20240815 20240815
STICKY: CSS AND META FOR STICKY ELEMENT sticky css Scot Ranney 20240806 20240806
YOUTUBE: Product Videos w/Custom Fields or Scot's Image Manager youtube products scotsimg Scot Ranney 20240710 20250312
JQUERY AJAX: Detecting Clicks on Ajax Content ajax jquery Scot Ranney 20240709 20240709
RECAPTCHA: Use Miva Recaptcha v3 on Any Form recaptcha Scot Ranney 20240701 20240701
SCHEMA JSON/LD: Automatic JSON/LD Schema Generator schema Scot Ranney 20240627 20240702
SHIPPING: Save Shipping Selection If Customer Edits Order From OPAY shadows shipping smt Scot Ranney 20240607 20240607
# Resources Scot Ranney 20240520 20240520
PRODUCT PRICES: Set Discounts in SMT Code for Random Groups of Products price pricegroups smt Scot Ranney 20240520 20240701
CATEGORIES: Render Header or Footer tui categories smt Scot Ranney 20240410 20240410
DROPZONE: Handle Admin Dropzone Uploads in a Module upload dropzone Scot Ranney 20240410 20241209
MvASYNC: How to Use In a Module async Scot Ranney 20240410 20240410
BOOTSTRAP 5: Dynamic Modal Content via Data Attributes dataattributes bootstrap modal Scot Ranney 20240409 20260608
VOLUME PRICING: Basic Info volumepricing Scot Ranney 20240313 20240313
ARRAYS: Using Miva_Array_Copy_Ref(...) array mivascript smt sort Scot Ranney 20240311 20240417
SHADOWS: 3 Columns on Desktop, Middle Column Top on Mobile shadows Scot Ranney 20240307 20240307
COOKIES: Cookie Privacy/Consent Message and Button and JS cookies js shadows privacy consent Scot Ranney 20240307 20250515
HEADERS: Download, display, open content header batch Scot Ranney 20240301 20240301
IMAGES: How to Get Current Miva Merchant Image Directory images mivascript smt Scot Ranney 20240224 20240224
TOTAL COMMANDER: Tricks for Scot tc Scot Ranney 20240222 20240222
BOOTSTRAP: Color Palette Usage bootstrap Scot Ranney 20240222 20240222
DEBUG: Manual SMT DebugArray / VarValues debug Scot Ranney 20240222 20240222
SHIPPING: Sort Shipping Methods From Low to High shipping sort Scot Ranney 20240222 20240222
HTML: Download Links html download Scot Ranney 20240222 20240222
CSS: Stop Flash of Unstyled Content With JQUERY css jquery Scot Ranney 20240222 20240222
CSS: Clear Placeholder On Click css Scot Ranney 20240222 20240222
CUSTOM FIELDS: General SMT Reference customfields Scot Ranney 20240222 20260108
SORT: QuickSortArray Trick for Complex Sorting With Miva_Array_Copy_Ref(...) smt sort array Scot Ranney 20240222 20260821
RESOURCES: Various Resources resources Scot Ranney 20240218 20240218
SHADOWS: Printing Problems print shadows Scot Ranney 20240216 20240217
LSK: Miva Actions List lsk _datatables_ Scot Ranney 20240215 20240215
BLOGGER: Required Information Before Installation blogger Scot Ranney 20240214 20240701
SHADOWS: How to enabled tabs on a page shadows Scot Ranney 20240208 20240208
CATEGORY: How to Detect Category Header/Footer Contents categories smt Bruce Golub 20240206 20240206
BOOTSTRAP 4: Dyanmic Modal Content bootstrap Scot Ranney 20240123 20250528
JQUERY: Collapse With Caret Icon Change (good) jquery collapse Scot Ranney 20240113 20250421
JQUERY: Data Attribute Magic jquery Scot Ranney 20240112 20241117
ANALYTICS: Conversion Resources ga4 Scot Ranney 20240106 20240313
SWIPER.JS: Modern BX Slider Replacement slider js Scot Ranney 20231228 20260909
FORMATTING: Auto Format with Commas Using FMT Operator operators mivascript Scot Ranney 20231222 20231222
BOOTSTRAP: Change Icons for Collapse Open/Closed bootstrap jquery Scot Ranney 20231222 20240222
SMT: Sort Shipping Code From Low to High Price shipping smt sort Scot Ranney 20231222 20260303
JQUERY: Add CSS Class to Body Tag css jquery Scot Ranney 20231222 20240116
SMT: Previous / Next Product Arrows/Links products smt Scot Ranney 20231222 20231222
SMT: Render a Template Based on Page Code smt Scot Ranney 20231222 20231222
BXSLIDER: Stop Flash of Unstyled Content (BXSLIDER) bxslider css slider Scot Ranney 20231222 20250131
CSS: Clear Placeholder on Click css Scot Ranney 20231222 20231222
JQUERY: Get and Set Form Input Values jquery Scot Ranney 20231222 20231222
URIS/URLS: Loading URI System with Legacy Fallback uri Scot Ranney 20231222 20231222
MIVASCRIPT: Assign Page Item to All Pages mivascript Scot Ranney 20231222 20231222
JQUERY: Timed Modal Popup modal jquery Scot Ranney 20231222 20231222
CUSTOM FIELDS: MivaScript Manipulation customfields mivascript Scot Ranney 20231222 20231222
SEARCH: Some Explanations about Search admin search Scot Ranney 20231222 20251125
CATEGORIES: Align Display Plus categories Scot Ranney 20231222 20231222
WIDGET: Recently Viewed Products widget products Scot Ranney 20231221 20231228
CUSTOM FIELDS: Basket / Order customfields Scot Ranney 20231219 20231220
MIVASCRIPT: Get any meta data from store items mivascript schema Scot Ranney 20231219 20231219
IMAGEMACHINE: Add classes to image machine images imagemachine Scot Ranney 20231219 20231219
JQUERY: Click in a TD to check a checkbox in the td jquery table Scot Ranney 20231219 20231219
HTACCESS: Better way to force HTTPS and WWW htaccess Scot Ranney 20231219 20231219
JS: Console.log View Form Data js Scot Ranney 20231219 20231219
FORM: Select/Options Function mivascript select Scot Ranney 20231219 20231219
SORT: Build in API Sort Function (mivascript) mivascript sort Scot Ranney 20231219 20231219
BREADCRUMBS: Fix Schema in Miva Merchant mvkb Scot Ranney 20231219 20231219
MIVASCRIPT: Parse Any Tag mvkb Scot Ranney 20231219 20231219
JQUERY: Number Stepper, Mouse inc/dec, max/min enforce, etc... mvkb Scot Ranney 20231219 20231219
CUSTOM FIELDS: Custom Function to Load All Fields for Store Item customfields mysql Scot Ranney 20231219 20231219
FORM: Minimum Quantity Check & Show Alert & Block Form mvkb products Scot Ranney 20231218 20231219
VARIANTS: Load Product Variant list products Scot Ranney 20231218 20231219
JQUERY: Check for Current jquery Version js Scot Ranney 20231218 20231219
JS: Pass Input Values to JS Functions js Scot Ranney 20231218 20231219
FORMATTING: Telephone Number Formatting input Scot Ranney 20231218 20231222
FORMATTING: Currency mvkb Scot Ranney 20231217 20240106
IFRAME: Responsive Video Aspect Ratio iframe Scot Ranney 20231217 20231219
# Miva Store Knowledge: To Do's, Problems, Etc mvkb Scot Ranney 20231217 20250418
JQUERY: Scrolling js scroll jquery Scot Ranney 20231217 20240222
SHADOWS: Centered Smaller column on Desktop, Full on Mobile shadows grid Scot Ranney 20231217 20231219
INPUT: Total Price Counter for One or More Quantity Inputs js Scot Ranney 20231217 20240409