View Single Post
Old November 18th, 2019, 12:40 PM
geeool geeool is offline
Junior Community Member
Join Date: Jun 2012
Location: Hilliard, OH
Posts: 23
Default Abort Composition

I know this should go under the MarcomCentral area, but I put in a request to join a couple weeks ago and haven't been granted access yet - my apologies for posting here.

In a MarcomCentral site I have price tags setup as a variable item. The buyer enters their pricing information as well as the product SKU number. The SKU number is checked against an external data file. If it exists, then FusionPro pulls in PDF art for that specific tag. If it doesn't exist, it pulls in an error page with the word 'ERROR' written in big red text. The problem is that buyers are still placing orders for tags that do not exist.

I did a little research and found the FusionPro.Composition.Abort() function and added it to my programming. It works wonderful and prevents buyers from ordering tags that don't exist. My only issue is that I would like to customize the error message and so far I haven't been able to. Below is the code I'm using. Is it formatted correctly? Is there away to return a custom error message?

FusionPro.Composition.Abort(["Please check and make sure the Item Number was entered correctly." , false]);
Reply With Quote