Announcement

Collapse
No announcement yet.

"Where did you hear from us?" on checkout screen

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

    "Where did you hear from us?" on checkout screen

    Has anyone implemented a "Where did you hear from us?" drop down box on their check out page? We'd like to do something like to hear from our customer's where they learned about our brand, but aren't sure if a feature like his is included in Miva or not. Thank you!
    Mark

    #2
    I used this a while back:

    Code:
    OPAY:
    
    <mvt:if expr="g.howHear">
    <mvt:item name="customfields" param="Write_Basket( 'howHear', g.howHear)" />
    </mvt:if>
    
    INVC:
    
    <mvt:item name="customfields" param="Read_Order( l.settings:order:id, 'howHear', g.thisData)" />
    <mvt:assign name="g.thisData" value="l.settings:order:id $'|'$ g.thisData $'|'$ asciiChar(10)" />
    <mvt:assign name="l.doit" value="file_append('/howHear.log', 'script', g.thisData)" />
    
    MERCHANT ORDER CONFIRMATION EMAIL:
    
    <p style="font-weight: bold;">How Heard About:
    <mvt:item name="customfields" param="Read_Order(l.settings:order:id,'howHear')" />
    <mvt:if expr="NOT ISNULL l.settings:customfields:howHear">
    &mvt:customfields;
    </mvt:if>
    </p>
    Its from a 2021, but maybe you can make it work. Good luck.

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    Comment

    Working...
    X