Announcement

Collapse
No announcement yet.

More Waitlist by Tess questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    More Waitlist by Tess questions

    Tess has been super about sending me a snippet of code to use for my particular situation - sending the back in stock email when the inventory is back at 5 or more (instead of at 1). I've gone back through the Waitlist Documentation PDF https://apps.miva.com/mm5/graphics/t...umentation.pdf to see if I can figure it out. I did notice that there were changes to page codes that needed to be made. (The site I'm trying to get this working for didn't have those updates made). I've made those changes (and also updated the module to the latest version 1.009). The update mentions "WaitlistEmailLogic ​(if you were using this)" but there is no example template (Tess let me know that there never was one). This is where I get confused. The snippet that Tess sent me makes perfect sense to me but where I'm supposed to put it doesn't.

    Does anyone have an example of the WaitlistEmailLogic Page?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Circling back to this. Tess sent me this snippet but where do I add it to? Do I create a Page called WaitlistEmailLogic?
    Code:
    <mvt:if expr="l.settings:waitlist:variant_id GT 0">
    
    <mvt:comment>Get the variant data</mvt:comment>
    <mvt:do file="g.Module_Library_DB" name="l.success" value="ProductList_Load_Variant(l.settings:waitlis t:product:id, l.settings:waitlist:variant_id, l.settings:waitlist:product:variants)" />
    
    <mvt:comment>Check the variant inventory level</mvt:comment>
    <mvt:foreach iterator="variant" array="waitlist:product:variants">
    
    <mvt:if expr="l.settings:variant:inv_available LT 5">
    
    <mvt:comment>Set the flag to stop the email</mvt:comment>
    <mvt:assign name="g.Waitlist_Email_Continue" value="0" />
    
    <mvt:comment>we can stop now.</mvt:comment>
    <mvt:foreachstop />
    
    </mvt:if>
    
    </mvt:foreach>
    
    <mvt:comment>
    If, not a variant and we're tracking inventory check the master product
    inventory level and if below the `Inventory` stop the email.
    </mvt:comment>
    <mvt:elseif expr="l.settings:waitlist:product:inv_available LT 5 AND l.settings:waitlist:product:inv_active NE 0">
    <mvt:comment>Set the flag to stop the email</mvt:comment>
    <mvt:assign name="g.Waitlist_Email_Continue" value="0" />
    </mvt:if>
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment

    Working...
    X