1 / 11
Aug 2008

I want to pass some information unique to each product that's ordered. I would like to enter that information when I create the product in E-junkie.



How can I do that. If the example is already in the help section I need a clearer explanation and example than just a link to the page because I've read every help page.



What field will the information be stored in my transaction log?

  • created

    Aug '08
  • last reply

    Feb '10
  • 10

    replies

  • 1.6k

    views

  • 4

    users

  • 10

    links

Is the custom info unique to each unit of the product, or just unique to each type of product?



In the latter case, the simplest method would be to specify it as the Item Number of the product -- you don't have to use the default number we put in there, as long as what you enter in Item Number does not match any of your other products; you should be safest sticking with any combination of letters, numbers, dashes-and_underscores.



If you need to specify some custom data for each type of product in addition to Item Number, that would have to involve modifying our button code manually somehow. The standard, and simplest, method would simply append &custom=your-value-here to the end of each button URL. This custom value could be unique for each instance of a single product's button code, and you could even program your own scripting that appends a custom value into each URL in your pages dynamically if you wish. This custom value would appear in your Txn logs in the "Passed Custom Param." column.

1 year later
E-junkieGuru

If you need to specify some custom data for each type of product in addition to Item Number, that would have to involve modifying our button code manually somehow. The standard, and simplest, method would simply append &custom=your-value-here to the end of each button URL. This custom value could be unique for each instance of a single product's button code, and you could even program your own scripting that appends a custom value into each URL in your pages dynamically if you wish. This custom value would appear in your Txn logs in the "Passed Custom Param." column.





I have followed that, but I need this custom parameter emailed and included in the thank you message. As it stands now admin gets the custom value, but the customer gets the "[%custom%]" not parsed instead of the actual value. Any idea how to accomplish this?



Basically, I have a parameter unique to each item, that I do not to be visible to the customer until after they paid.

Make sure you're using [%custom%] in the right place. It will not work in a product-specific Message (HTML) field; it will only work in your Common Thank-you Page HTML field (in Seller Admin > Account Preferences), which gets inserted at the end of every post-checkout thank-you page, or in a thank-you email message. Note that you must have Enable Templated Email checked in a product's settings to use template variables such as [%custom%] in that product's Email Message field. The Common Thank-you Email (in Admin > Account Prefs) always enables template variables.



Also bear in mind that you can have only one custom value per full order -- although it gets passed into the cart with a product's Add to Cart button, it's actually a parameter for the full order, not any specific product. If a buyer adds multiple items in the same cart, only the last custom value passed into the cart would be included with the order. If you need a custom value for each and every item, please see this help page:

2http://www.e-junkie.com/ej/help.custom.thankyou-email.htm2

21 days later

I have the following dilemma:

My site has hundreds of pages with very specific information, buyers purchase the access (URL link) to these pages. Which method can I use that will allow me to sell multiple items per order?



Right now my script appends the %custom% variable as the page URL and they can purchase one item, but as I understand this will not work for multiple items per order.



Selling "redirect" will also not quite work as I have to then enter thousands of predefined products. My site adds new pages daily and URL's are dynamically generated.



So I really need the functionality of %custom% that also works for multiple items.

Thanks

What you would actually want to use is our "Variations which tell more..." feature. Your product would be named something generic like "Page", and the Variation Option1Name would be "URL" or "PageID", with an Option1Value set for the actual URL or your own PageID that they're paying to access. That way, buyers can keep adding multiple instances of the "same" product to their cart with a different page URL/ID in each case.



You don't even need to set up Variations manually in Seller Admin; the Variations config screen is only used to auto-generate menus/fields in the button code we provide, but Variations will still work if you just add them to your code manually, even if you don't configure them in Admin nor even enable the Variations setting there. For instance, the scripting in your site could generate Add to Cart buttons like so:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXXX&cl=100779&ejc=2&on0=PageID&os0=PAGE-ID-GOES-HERE" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart"/></a>



...where XXXXXX is the product's Item Number from Seller Admin, and where your site's custom scripting would replace PAGE-ID-GOES-HERE in each button with the actual page URL/ID the buyer is ordering with that specific button.

Thanks for your help.

The only problem now is actual URL is visible inside the shopping cart:



(PageID: URL.....)

which defeats the purpose. The URL that customer is purchasing contains the "answer".



Also, my URL's are quite long, over 2 lines, they actually break the cart display.



Is there any way to hide the URL or hash it somehow?



Can I use some PHP to "hide" and "unhide" the URL after payment?

This is a wonderful article. The things given are unanimous and needs to be appreciated by everyone.

--------

marqthompson

toby2Thanks for your help.

The only problem now is actual URL is visible inside the shopping cart:



(PageID: URL.....)

which defeats the purpose. The URL that customer is purchasing contains the "answer".



Also, my URL's are quite long, over 2 lines, they actually break the cart display.



Is there any way to hide the URL or hash it somehow?



Can I use some PHP to "hide" and "unhide" the URL after payment?





That's why I suggested the option of using your own "page ID" value rather than the actual URL. Then you would need to pass that ID back to your system after payment, so your system could look up the URL for that ID and provide the URL to the buyer. You might do this using our Send Generated Codes feature (where your "keygen" URL would actually output the URL rather than a serial key):

http://www.e-junkie.com/ej/help.keygen.htm



If you'd be customizing the thank-you page to provide the URLs there, you might put something like this in the product's Message HTML field:

<a href="[%codes%]" target="_blank">Click here to access your page</a>



Our Integration feature could also work, but then you'd be responsible for providing the URL to buyers in your own way after your system receives the PageIDs:

http://www.e-junkie.com/ej/help.integration.htm



You might do this using our Send Generated Codes feature (where your "keygen" URL would actually output the URL rather than a serial key):



I understand the concept, but I am missing how exactly I can input the URL and output the code for the cart "page ID" value.

Here's my setup in a simplified version:

The cart button is on page:

site.com/productname.html



The URL of the page with the answer (the URL that needs to be hidden) is:

site.com/answer/productname.html



my cart code is:

PHP?>

echo "<a href=\"https://www.e-junkie.com/ecom/gb.php?c=cart&i=externalcart&cl=XXXXXX&ejc=2&on0=ID&os0=site.com/answer/productname.html\" target=\"ej ejc\" class=\"ec_ejc_thkbx\" onClick=\"javascript:return EJEJC_lc(this);\"><img src=\"http://www.e-junkie.com/ej/ej add_to_cart.gif\" border=\"0\" alt=\"Add to Cart\"/>Access</a>";



I have read everything about:....

Generator URL may look something like this:

http://www.e-junkie.com/ecom/o plug.php?arm_level=23&arm_keytext=Secret+phrase+only+you+know



Could you help me to understand how I can use your build in generator
"You might do this using our Send Generated Codes feature (where your "keygen" URL would actually output the URL rather than a serial key)"

You wouldn't put the actual URL in your page at all, or you could, but it wouldn't be visible in the code output to the buyer's browser (since they could just View>Source to steal your URL). Instead, you'd have a button URL something like this:



https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXXX&cl=100779&ejc=2&on0=PageID&os0=12345



...where 12345 is an arbitrary, unique ID that references the real URL in a database at your end. Then when we POST the order data to the URL of your own custom keygen script after successful payment, your script would take the values for 'item_cart_position' and 'option_selection1_X' (where X='item_cart_position') and output the URL corresponding to the ID given in 'option_selection1_X'.