27 / 27
Jan 2021

Our Development team is looking into a way to add a custom field to our shopping cart, into which the buyer could enter info before they proceed to checkout; however, I cannot speak for them regarding when or if this feature may become functional, and we are also limited to what data fields all our payment processors such as PayPal can receive from us and transmit back to us after payment is completed.



We have very little influence over the behavior of checkout itself on third-party payment sites such as PayPal. If your buyers could have a free gift card sent somewhere other than the shipping address they provide for the rest of their order, I might suggest you could add these lines to your View Cart code on every page, just before the "// -->" line in our standard View Cart code, reminding buyers to add Special Instructions during their PayPal checkout:



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

"Remember to add <b>Special Instructions</b> during checkout explaining where to send your free gift card!");

}

1 year later

Not sure if this is the same question. I wanted to add a NOTE to the ejunkie shopping cart area..before the customer selects to checkout.



For example: Because it's so complicated to offer LOCAL PICKUP as an option without having to add a bunch of new rules. (I tried adding the rule for local pickup)..but then ANY NEW JERSEY order automatically figured pickup..and did not offer an OPTION for the customer to select PICKUP or SHIP. Frustrating...so i used the COUPON CODE...

however, I'd like to add a NOTE on the page letting customers know if they would like to PICK UP the items to enter the savings code.....





Thanks



Barbara

Hm, the way you've set up your shipping rules, if you wanted to offer regular shipping as well as free Pickup in NJ, you would need to add the Pickup rule for NJ then also add other rules for NJ covering your regular shipping rates applicable for that state.



If you'd prefer to use the coupon code approach, just add these lines to your View Cart code on every page, just before the "// -->" line in our standard View Cart code, reminding buyers to add Special Instructions during their PayPal checkout:



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

"Use discount code <b>PICKUP</b> if you can pick up your order locally.");

}



You can of course customize the "Use discount code...etc." part to say whatever you wish; just make sure you put it all on one long line.

okay..sorry..need a little more direction on exactly where to place this code...





<b style="color: #990000; font-family: 'Trebuchet MS', sans-serif; font-size: x-large;">VIEW CART</b></div>

</div>

</div>

</div>

</div>

<div style="color: #6aa84f; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: center;">

<a class="ec_ejc_thkbx" href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=143891&ejc=2" target="ejejc"><img alt="View Cart" border="0" src="http://www.e-junkie.com/ej/ejview_cart.gif" /></a><span style="font-size: small;"><b style="background-color: white;"><span style="background-color: #b6d7a8;"><span style="background-color: white;"> </span></span></b></span><br />



Thank you

You would need to be using our complete, standard View Cart code, which allows the cart to display as an overlay "inside" your own page. Your View Cart code including the cart customization code I suggested should look like this on every page:



<a href="1https://www.e-junkie.com/ecom/gb.php?c=cart&cl=143891&ejc=21" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejview_cart.gif" border="0" alt="View Cart"/></a>

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

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

"Use discount code <b>PICKUP</b> if you can pick up your order locally.");

}

// -->

</script>

<script src="http://www.e-junkie.com/ecom/box.js" type="text/javascript"></script>



If your page is missing the latter portion of View Cart code (from the first <script...etc.> to the last </script>), your cart buttons would be working in "fallback mode" by displaying the cart in a separate window/tab, and that version of the cart cannot be customized. I notice you appear to be using a Blogger-based site, so you may find these tips helpful to get the full View Cart code with customization pasted into your site:

http://www.e-junkie.com/ej/help.site-blog.htm#blogger

Thank you..i thought i had the full standard version....guess not. I am not a web designer..so this is rather confusing for me..i'll have a look. Thanks for your help.





The Fish & Web Blogger ecommerce template makes it easy to build a storefront with product listings using E-junkie Cart buttons in your Blogger site.



the link for this URL (Fish and Web) is not working..by the way.

Thank you. It's not ideal, as I'd rather not use Discount Code for this, but it's a quick fix. Thanks for your help and providing the exact code I needed! Barbara

27 days later

I just tried implementing the same tactic several ways but with no luck. Any ideas?



Any chance of the programmers adding a comment box to the checkout box? I would so love to give my customers the choice of adding a free card to their purchase.



Thanks,

Lisa



2http://www.lisa-stewart.com2

You can already use the "Add instructions to seller" comment box for PayPal checkouts, if you enable that option in your PayPal account's Profile > More Options > My Selling Tools > Block Payments screen:

https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-pref1



However, you may wish to create a product in Seller Admin for the free card and display an Add to Cart button for that in your cart. Once you've created the free card product, just add these lines to your View Cart code on every page, just before the "// -->" lines in the standard View Cart code you obtained from Seller Admin (replace the XXXXXX with the Item Number of your free card product):



function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

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

<input type='hidden' name='on0' value='Message'/>

Add a FREE gift card to your order; you can enter a custom message for your card here:<br>

<input type='text' name='os0' size='50' maxlength='200'/><br>

<input src='http://www.e-junkie.com/ej/ejadd_to_cart.gif' type='image' border='0' alt='Add to Cart' class='ec_ejc_thkbx' onClick='javascript:return EJEJC_lc(this.parentNode);'/></form>");

}

Hmm... tried both. I guess I'm missing something.



This is what I have in my header.php:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=91857&ejc=2" target="ejejc" class="topnav3" onClick="javascript:return EJEJC_lc(this);"><strong>VIEW CART</strong></a>

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

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_INITCSS = false;

}

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

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

<input type='hidden' name='on0' value='Message'/>

Add a FREE note card to your order. Enter the type or name of pet here:<br>

<input type='text' name='os0' size='50' maxlength='200'/><br>

<input src='http://www.e-junkie.com/ej/ejadd_to_cart.gif' type='image' border='0' alt='Add to Cart' class='ec_ejc_thkbx' onClick='javascript:return EJEJC_lc(this.parentNode);'/></form>");

}

// -->

</script>



****

Is there something amiss?



Thanks!

Lisa

Aha, it looks like your site is using a version of jQuery that's conflicting with the jQuery our cart uses for customization; fortunately, we have a workaround for this scenario -- just find this line in your cart customization code:



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



...and add ejejc_ to the beginning, like so:



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

Thanks!!!!



Now I see that the entry begins somewhat in the center, not left justified like the rest of the View Cart Dialog box. Wish I could attach an image... Or you can go take a look, too. :)



Plus, when I type in the field box, it spins and spins.





Again, thanks!

Lisa

To left-align the free note card section, add this line just before the final "}" in your cart customization code:



ejejc_jQuery("#tdPmnt").attr("style","font-family:Verdana;font-size:11px;text-align:left;width:100%;");



I tried unsuccessfully to reproduce the issue you described with typing in that field, sounds like perhaps your computer briefly had trouble connecting to our server at that moment when you were testing.

Nuts. It looks like a few codes have doubled. Example:



ejejc_jQuery("#tdPmnt").attr(



****





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

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_INITCSS = false;

}

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

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

<input type='hidden' name='on0' value='Message'/>

Add a FREE note card to your order. Enter the type or name of pet here:<br>

<input type='text' name='os0' size='50' maxlength='200'/><br>

<input src='http://www.e-junkie.com/ej/ejadd_to_cart.gif' type='image' border='0' alt='Add to Cart' class='ec_ejc_thkbx' onClick='javascript:return EJEJC_lc(this.parentNode);'/></form>");

ejejc_jQuery("#tdPmnt").attr("style","font-family:Verdana;font-size: 11px;text-align:left;width:100%;");

}

// -->

</script>

Aha, you've duplicated the function EJEJC_config(){} section; any lines for that section should go together between the {curly brackets} in just once instance of that section, like so:



function EJEJC_config() {

EJEJC_INITCSS = false;

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

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

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

<input type='hidden' name='on0' value='Message'/>

Add a FREE note card to your order. Enter the type or name of pet here:<br>

<input type='text' name='os0' size='50' maxlength='200'/><br>

<input src='http://www.e-junkie.com/ej/ejadd_to_cart.gif' type='image' border='0' alt='Add to Cart' class='ec_ejc_thkbx' onClick='javascript:return EJEJC_lc(this.parentNode);'/></form>");

ejejc_jQuery("#tdPmnt").attr("style","font-family:Verdana;font-size: 11px;text-align:left;width:100%;");

}

Hm, now your page is missing several lines of View Cart and cart customization code; this is the complete View Cart code you should be using:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=91857&ejc=2" target="ejejc" class="topnav3" onClick="javascript:return EJEJC_lc(this);"><strong>VIEW CART</strong></a>

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

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_INITCSS = false;

EJEJC_POSTCALL = true;

}

function EJEJC_shown() {

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

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

<input type='hidden' name='on0' value='Message'/>

Add a FREE note card to your order. Enter the type or name of pet here:<br>

<input type='text' name='os0' size='50' maxlength='200'/><br>

<input src='http://www.e-junkie.com/ej/ejadd_to_cart.gif' type='image' border='0' alt='Add to Cart' class='ec_ejc_thkbx' onClick='javascript:return EJEJC_lc(this.parentNode);'/></form>");

ejejc_jQuery("#tdPmnt").attr("style","font-family:Verdana;font-size: 11px;text-align:left;width:100%;");

}

// -->

</script>

<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>

8 years later

It's been more than 10 years since this feature was requested.. any reason for not implementing it?

Probably because it's so rarely requested, so Development has opted to invest their efforts into other projects more broadly beneficial to more of our clientele, not to mention over 90% of transactions our system handles go through PayPal, and there's no way anyone can make PayPal's checkout site show a comment box.