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
    AmeriCommerce Developer

    oops. Didn't see that part. In that case you would need to use the javascript Blake provided. 

    This line should work in place of the original:

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

    0
    Comment actions Permalink
  • Avatar
    Kathy Sechrist

    I'm putting Customer Type in Admin order emails - removed the ELSE hoping it would do nothing if not matched.

    Instead, the email has a blank line for every IF that wasn't matched. I have 6 customer types so that's a lot of blank lines.

    Is there a way to indicate "do nothing" in an IF statement?

    0
    Comment actions Permalink
  • Avatar
    Justin Murphy

    Is anyone familiar with a way to display the levels of sub-categories individually? For example, if I have...

    Movies > DVDs > Drama > New Releases

    ...I understand that I can display the entire navigation using $$CATEGORYTRAIL$$.

    However, I would like to modify the way this is displayed, so that it shows like this:

    Movies

    DVDs

    Drama

    New Releases

    I imagine it would look like something this:

    ##SUBCATEGORYLEVEL1##

    ##SUBCATEGORYLEVEL2##

    ##SUBCATEGORYLEVEL3##

    ##SUBCATEGORYLEVEL4##

    Do this mystery merge code exist, or is there another way to accomplish this?

    Thank you!

    Justin

    0
    Comment actions Permalink
  • Avatar
    Blake Petersen

    Hi Justin,

    This should get you where you need to be -- http://jsfiddle.net/BlakePetersen/c2sF4/2/. Let me know if you have any questions on what's going on and I'd be happy to explain.

    Regarding the reasoning as to why $(this).html($(this).html().replace(/ > /g, '')); failed, the value to be replaced ('/ > /' in this case) is expected to be an html entity expressed in regex (or '/>/'). Also, adding the g after the 2nd slash applies this globally, so it will replace all instances of that regex value within scope. If you kept it off, it would just replace the first item and call it quits.

    Hope this helps!

    -Blake

    0
    Comment actions Permalink
  • Avatar
    Justin Murphy

    Hi Blake & AC Dev -

    That did the trick! Thank you very much for all of your great input.

    You both definitely went above and beyond what I was expecting. Blake, thank you for walking me through those scripts. It was a very good learning experience for me and is much appreciated.

    Regards, 

    Justin

    0
    Comment actions Permalink
  • Avatar
    AmeriCommerce Developer

    Thanks, Brandon.

    I've added this merge to the General Use Website merge section.

    --Austin
    SPOS Support

    0
    Comment actions Permalink
  • Avatar
    Brandon Young

    Just thought I would add another Merge Code I came across to link to external scripts:

    ##INCLUDESCRIPTBOTTOM[YOUR SCRIPT LOCATION]##
    ex:
    ##INCLUDESCRIPTBOTTOM[##THEMEDIR##js/product-page.js]##

    0
    Comment actions Permalink
  • Avatar
    Jason

    Please list all conditions able to be used with conditional merges:

    ##IF[StoreID=1]## True Content ##ELSE## False Content ##ENDIF##

    0
    Comment actions Permalink
  • Avatar
    Jason

    ##RESETPASSWORDURL## 

    0
    Comment actions Permalink
  • Avatar
    tnovak

    Is there a way to add an image alt tag which calls the category or product name for each image in the theme files using the merge codes for $$CATEGORYTHUMBNAIL$$, $$THUMBNAIL$$, $$MAINPHOTO$$? It would be much less work to set them up that way than to have to manually include the alt tag in each category or per product.

    0
    Comment actions Permalink
  • Avatar
    Placeholder Support #5

    Jason,

    The conditional mergecodes listed are the only ones available for performing logic.

    0
    Comment actions Permalink
  • Avatar
    Kathy Sechrist

    Oh!!! I found this about variable merges and got it working - this will work, and my mind is now reeling with all the other possibilities... https://support.sparkpay.com/hc/en-us/articles/201904650-How-to-use-Generic-Variable-Merges

    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