Miva Merchant Development by Scot's Scripts

MvASYNC: How to Use In a Module

Miva Knowledge Base
MvASYNC: How to Use In a Module
Important Notice: This information is for internal reference only. Use at your own risk.
Does Google actually understand your Miva Merchant store? Our JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

MvASYNC: How to Use In a Module

Scot Ranney • April 10, 2024


MvASYNC creates a process in the background that is immune to timeouts for the most part. It runs a process that lasts 60 minutes according to miva.

Using it in a module is pretty easy - just make sure open_store() is at or near the top. For my modules I also call my module settings.

<MvASYNCHRONOUS>	
		<MvASSIGN NAME = "l.settings" VALUE = "{ config(l.module_settings) }" />		
		<MvASSIGN NAME = "l.ok" VALUE = "{ open_store() }" />
</MvASYNCHRONOUS>

https://www.scotsscripts.com/mvblog/mvasync-how-to-use-in-a-module.html

mvkb_async