Submit a request

List of Available Merge Codes

Follow

Feature Request

Need an integration or feature that doesn't exist?

Our experienced development team is always looking to add new capabilities to the platform. Let us know what you are looking for!


Enterprise Support

Is your company in need of full time 24/7 AmeriCommerce support?

Our Enterprise support plan is the perfect fit for large operations needing the commitment of our team outside of standard operating hours.

Comments

42 comments

  • Avatar
    Jason

    Missing 

    $$ROOTCATEGORYIMAGE$$

    $$SUBCATEGORIES$$

    $$CATPRODUCTCOUNT$$ 

    0
    Comment actions Permalink
  • Avatar
    Brandon Young

    What if I want to call the category that the item is in. I have tried a few things but cant get this to work. Or even being able to call a certain category instead of an item would be fine

    0
    Comment actions Permalink
  • Avatar
    Paul Component Engineering

    The new design of this page with the collapsing sections makes it hard to find merge codes by using CMD+F.

    0
    Comment actions Permalink
  • Avatar
    Joshua Artman

    Per AmeriCommerce Support:

    ##CURRENTDATE## merge formatting that is was not fully documented but works:

    Examples:

    ##CURRENTDATE[yyyy/MM/dd hh:mm]##
    

    This will give the date and time down to the seconds.

    ##CURRENTDATE[hh:mm]##
    

    This will only give the hours and minutes.

    ##CURRENTDATE[hh:mm’:’ss.fffffff]##
    

    This will give the hours and minutes and include fractions of a second.

    ##CURRENTDATE[fffffff]##
    

    This will only output the fractions of a second to 7 places. This would function almost like a random number.

     

    0
    Comment actions Permalink
  • Avatar
    Paul Ackley

    Is there a merge code to show the $$ of the discount when reward points are used as a partial payment so it shows up on the customers invoice as a discount - currently when they apply points it doesn't show its been applied anywhere except on the admin screen as loyalty payment- the customers think the points weren't applied at all because they don't see it.

    0
    Comment actions Permalink
  • Avatar
    Brandon Young

    Is it possible to call an item on a content page and how would I do this. For example I am trying to make a page that shows items based on the industry they are in. I would like to call a specific item and use merge codes to show the items ##SHORTDESCRIPTION## and other things.

    0
    Comment actions Permalink
  • Avatar
    Юлия

    Can you copy here email merges from old admin? There was long list of email merges on page for email templates editor. For example ##STORETECHCONTACTEMAIL##. http://releasehistory.sparkpay.com/release-history/feature-new-store-merges

    0
    Comment actions Permalink
  • Avatar
    tnovak

    Is there a merge code for the abandoned cart that is a link back to the users cart with their items and information still in it? I see this in a lot of other store abandoned cart emails and it's a definite help for the user to be able to just click the link and have everything there still to complete the purchase.

    0
    Comment actions Permalink
  • Avatar
    Jeremy Roberts

    Is it possible to see a changelog for this document?

    You guys appear to be adding mergecodes (thank you) but store admins can't be expected to memorize every mergecode available.
    How will we know when you add something?
    This is not super-secret sauce -- how about adding the added-on date to new mergecode entries?
    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Blake Petersen

    Paul, click "Expand All" and you're good to go.

    0
    Comment actions Permalink
  • Avatar
    Reblin, Teri

    How do you format a conditional statement with a custom order field?

    0
    Comment actions Permalink
  • Avatar
    Implementation

    @Brandon, you can use the SETITEMBYID mergecode. For example:

    ##SETITEMBYID[123]##

    ##ITEMNAME## is the best product.

    ##LONGDESCRIPTION1##

    ##ENDSETITEM##

    0
    Comment actions Permalink
  • Avatar
    Agnes Doue

    Blake thank you a lot for the &; wrapper (worked fine) and the link (W3 schools tab is usually open in my browser).

    Ryan, thank you. I have that If statement working. However, I don't know how to get rid of the comma when a customer is not logged in, i.e., I need an ELSE statement... I can't figure out what "language" this is in to look up how to code it, nor do I know what the condition would be labeled (NotLoggedIn, LogggedOut, etc.) Will you help?

    Thanks, Aggie

    0
    Comment actions Permalink
  • Avatar
    Brandon Young

    Wow I didn't even notice that above. Thank you

    0
    Comment actions Permalink
  • Avatar
    Blake Petersen

    Hi Aggie,

    "#44" needs to be wrapped in "&" and ";" in order to be recognized as an entity code. So if you use "," instead of "#44", you should be good to go. You can see additional entity codes at  http://www.w3schools.com/tags/ref_entities.asp

    -Blake

    0
    Comment actions Permalink
  • Avatar
    AmeriCommerce Developer

    You can do 

    ##IF[LoggedIn]## Something ##ELSE## Something else ##ENDIF##

     

    These are called conditional merges and actually are covered in this article.

     

    What exactly are you trying to do? It sounds like you could just put the comma inside the conditional too.

    0
    Comment actions Permalink
  • Avatar
    Agnes Doue

    " ##LOGINMESSAGE[message=Welcome ##CUSTOMERFIRSTNAME##!]## - Notice this is a merge within a merge. To get a comma, use the character entity code for it: #44 (without the space after the ","). "

    I have tried this, and I get "#44" rather than "," in my display. Please explain a little more.

    Thanks. --Aggie

    0
    Comment actions Permalink
  • Avatar
    Brandon Young

    You can also use ##EXPIRINGREWARDPOINTS##

    0
    Comment actions Permalink
  • Avatar
    Ryan Olson

    You can also get more control over what you show with the 

    ##IF[LoggedIn]##

    Put content here, ##CUSTOMERFIRSTNAME##, and here.

    ##ENDIF##

     

    Conditional Merge.

    0
    Comment actions Permalink
  • Avatar
    Agnes Doue

    I tried both of these two:

    1.

          ##IF[LoggedIn]##

          <li>Welcome, ##CUSTOMERFIRSTNAME##</li>

          ##ENDIF##

    2.

          ##IF[LoggedIn]##

          <li>Welcome, ##CUSTOMERFIRSTNAME##</li>

          ##ELSE##

          <li>Welcome</li>

          ##ENDIF##

    Either way, what I see when logged out is "Welcome," and when logged in, "Welcome, Lou" ... Ideas? Thanks.

    0
    Comment actions Permalink
  • Avatar
    AmeriCommerce Developer

    Hi Agnes,

    What you have looks correct. I think you are probably logged into the admin. If that is the case the LoggedIn condition is considered true no matter what.

    Try viewing it in a different browser where you aren't logged in to the admin or in an Incognito/Private window.

     

    Ryan

    0
    Comment actions Permalink
  • Avatar
    Jeremy Roberts

    It would be great if conditionals could be nested AND/OR basic boolean logic... AND NOT (or !) added to conditionals...

    There are times when I want to serve content ONLY to customers that are NOT logged in AND if not logged in AND cart is not empty, then serve content.
    BUT if logged in, don't serve.

    But we can't nest or combine conditionals.

    A perfect use of this logic would be for an exit-intent popup.

    IF customer is logged in: don't do anything
    IF customer is not logged in:
    (if cart is empty, serve content A)
    (if cart is not empty, serve content B)

    ##ENDIF##

    This is so incredibly powerful, adding nesting and boolean would take it to another level. Thanks for listening.

    0
    Comment actions Permalink
  • Avatar
    Agnes Doue

    OMG Thank you! I would never have guessed.  --Aggie

    0
    Comment actions Permalink
  • Avatar
    Kathy Sechrist

    I need a way to show different content in the left column of various category pages. I didn't see a way to do this in the category editor, so I thought CONDITIONAL MERGES! But I don't see anything here that would work - did I miss it or does this not exist?

    0
    Comment actions Permalink
  • Avatar
    Justin Murphy

    That's a good idea, but that would still not solve my problem I listed in Question Two:

    I want to reference the $$CATEGORYTRAIL$$ in multiple places on the page. I want the first one to be the standard version (Movies > DVDs > Drama > New Releases) and the second to be modified version:

    Movies

    DVDs

    Drama

    New Releases

    Let me know if you have any questions.

    Thanks,

    Justin

    0
    Comment actions Permalink
  • Avatar
    Lucas Lovett

    Teri,

    The conditional merge codes on this page are the only conditional merge codes supported, so if its not on this page then its not in the system.

    However, I think you'll want to look into our Generic Variable Merge code functionality, http://support.americommerce.com/hc/en-us/articles/201904650-How-do-you-use-Generic-Variable-Merges-. With this, you should be able to set a conditional variable merge, and run checks on it later.

    So something like this:

    ##SET[Variable=##CUSTOMORDERFIELDMERGECODE##]##
    ##IF[Variable=TRUE]##
    Content
    ##ELSE##
    Else content
    ##ENDIF##

    As always, let us know if you have any additional questions.

    Lucas

    0
    Comment actions Permalink
  • Avatar
    Trevia Baltimore

    Are there any other merge codes for gift certificates? I can't get any to show up on the front end in the customer's account dashboard.

    0
    Comment actions Permalink
  • Avatar
    Blake Petersen

    You can take the markup derived from the $$CATEGORYTRAIL$$ and use CSS and/or Javascript to style it to your liking. Examples: 

    CSS and jQuery:  http://jsfiddle.net/BlakePetersen/c2sF4/

    All jQuery:  http://jsfiddle.net/BlakePetersen/c2sF4/1/

    0
    Comment actions Permalink
  • Avatar
    Justin Murphy

    Hi, Blake. Thank you for your wonderful input. I have two questions:

    *Question One

    I have the ">" character where you put " " and I am having trouble modifying your script to remove the ">".

    I tried this...

    $(".ProductDetailsCategoryTrail").each(function () {

    $(this).children('a').css('display','block');

    $(this).html($(this).html().replace(/ > /g, ''));

    });

    But I could not get it to perform the way I want it to.

    *Question Two:

    We currently utilize the $$CATEGORYTRAIL$$ at the top of our page. I am inquiring about this for a secondary usage towards the middle of the page. This is part of the reason why I was initially hoping to find a merge code that lets me break the trail apart, so that there would be no conflicting scripts on the page. Do you know of a way that I can tell the script to ignore the top merge code and apply only to the one below?

    Thanks,

    Justin

     

     

    0
    Comment actions Permalink
  • Avatar
    AmeriCommerce Developer

    The ">" character is store text. The key is "Catalog_BreadcrumbSeperator_string".

    You could achieve what you want without javascript simply by making the store text value a break. "<br>"

    0
    Comment actions Permalink

Please sign in to leave a comment.

We're Here To Help


Standard Support Hours: Monday-Friday 8AM-6PM CST
Looking for Premium Support? Just ask!

Speak to a live person
1 (800) 936-9006
Submit A Support Ticket
Submit Your Ticket Here