15 / 15
Sep 2011

I've finished a huge, beautiful site for a client.

She is wanting to have a "treasure hunt" on the site for the"grand opening" I will place an image somewhere on the site, and when the customer places an order, they tell her what page the image is on, and the customer will receive a free gift with their purchase.

I do not find a place in popup overlay cart for the customer to add this note in. Is there a way to add it, or would they just do it in Paypal?

Thanks.

www.theferriswheelshop.com1 if you want to take a peek:)

  • created

    Sep '11
  • last reply

    Sep '11
  • 14

    replies

  • 1.4k

    views

  • 3

    users

  • 5

    links

yes, I understand that I can add more info for the customer to see in that way, but how would I add a field so that the customer can write something to ME the seller?

At present we don't have a built-in way for buyers to provide a general note about their order, although we do enable the Special Instructions (Note to Seller) field during PayPal checkouts, so you could tell buyers to enter their answer in there.



You might also consider making a free dummy product that would allow buyers to fill in their answer and add it to their cart as a free item along with the rest of their order. First go to Seller Admin > Add Product, disable all optional settings (nothing checked), priced at 0.00, give it the name "Treasure Hunt" and Item Number "Answer", and click Submit. You can even put the button code for this dummy item in the cart itself -- just add the following lines to your View Cart code on every page, just before the "// -->" line in the standard View Cart code you obtained from Seller Admin:



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#tdPmnt").attr("innerHTML",

"Treasure Hunt Answer:

<form target=ej_ejc method=POST accept-charset=UTF-8 action='https://www.e-junkie.com/ecom/gb.php?c=cart\&cl=166317\&ejc=2\&i=Answer\&on0=Answer'>

<input type=text name=os0>

<input onClick='javascript:return EJEJC_lc(this.parentNode);' type=submit value=Submit></form>");

}

So, by adding this code to the view cart itself, then they would be able to trype the answer in the quantity field, correct?

I'm using a shortcode in a sidebar widget for view cart (on wordpress) so I don't have viewcart info on every page( except through the widget) So, where would I put it??

In that case, you can just paste this code into every page, ideally as far towards the end of the page as possible (such as in a footer template), and after pasting you may need to save directly from HTML code view (rather than switching back to a visual editor):



<script language="javascript" type="text/javascript">

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#tdPmnt").attr("innerHTML",

"Treasure Hunt Answer:

<form target=ej_ejc method=POST accept-charset=UTF-8 action='https://www.e-junkie.com/ecom/gb.php?c=cart\&cl=166317\&ejc=2\&i=Answer\&on0=Answer'>

<input type=text name=os0>

<input onClick='javascript:return EJEJC_lc(this.parentNode);' type=submit value=Submit></form>");

}

</script>



This will add a text field and Submit button next to your checkout buttons, so buyers would type their answer into the field and click Submit to add the dummy item with the answer to their cart.

ok, I pasted it in, and it showed up in the cart. yay!:slight_smile: When clicking submit, it takes me to a page not found page on the site. Is this correct? Do i need to create the dummy product in ejunkie also for this to work?

Hrm, it appears WordPress munged some parts of the code after you pasted it in. Try this version instead:



<script language="javascript" type="text/javascript">

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#tdPmnt").attr("innerHTML",

"Treasure Hunt Answer:

<form target=ej_ejc method=POST accept-charset=UTF-8 action=\"https://www.e-junkie.com/ecom/gb.php?c=cart\&cl=166317\&ejc=2\&i=Answer\&on0=Answer\">

<input type=text name=os0>

<input onClick=\"javascript:return EJEJC_lc(this.parentNode);\" type=submit value=Submit></form>");

}

</script>

Added that code in, and same outcome. So, I found a WP plugin that would allow me to add code as a snippet without WP converting it.



Once I did that, the treasure hunt answeer line showed up in the cart. i added my text to the box, and pressed submit. At that point, I get a pop up on top of the cart that says product combination does not exist. I clicked ok, and the cart tells me it is empty, and to continue shopping. Clicking that of course closes the cart.



hmmm. what now?

Oh, sorry I overlooked your question about this, but yes, for this to work you do need to create the dummy product in E-junkie Seller Admin as I explained previously:

E-junkieGuruFirst go to Seller Admin > Add Product, disable all optional settings (nothing checked), priced at 0.00, give it the name "Treasure Hunt" and Item Number "Answer", and click Submit.

I added the product in ejunkie, and added it on the backend of wordpress in my ejunkie plugin.

I still get the same results..product combination not found.. any clue?

I just noticed you're posting here from a different account than the one being used for the site you're working on. The E-junkie client ID in the code you're using for the dummy product needs to match the ID (166522) you're using elsewhere on the site:



<script language="javascript" type="text/javascript">

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#tdPmnt").attr("innerHTML",

"Treasure Hunt Answer:

<form target=ej_ejc method=POST accept-charset=UTF-8 action=\"https://www.e-junkie.com/ecom/gb.php?c=cart\&cl=166522\&ejc=2\&i=Answer\&on0=Answer\">

<input type=text name=os0>

<input onClick=\"javascript:return EJEJC_lc(this.parentNode);\" type=submit value=Submit></form>");

}

</script>

:slight_smile: Yes, I figured that one out a bit earlier.

I think I changed it where it needed to be changed, but tomorrow, I will take it all out, and start fresh. cross your fingers:)



You've been so helpful.. thank you.

Wheeeee!! it worked! it worked!!!

Thank you SO MUCH!!!!!

I <3 eJunkie!