E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2013, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Fri, 18 Feb 2011 00:49:13 GMT Mon, 20 May 2013 07:45:25 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #8 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Fri, 18 Feb 2011 00:49:13 GMT
All I did was set up a discount/coupon code in the e-Junkie admin section. This shows the discount code box. Next, I added the following code to hide the discount code box, as directed by the E-junkieGuru. (You need to add this 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("#dscnt_cd").remove();
jQuery('input[name="discount_code"]').attr("style", "display:none;");
jQuery("#discount2").remove();
}

The special order page is identical to my original order page. It doesn't have the above code to hide the box, so it shows. This page has a private URL that I email to customers for promotions.]]>
E-junkie Discussions; HOAGUY
Post #7 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Thu, 17 Feb 2011 22:17:55 GMT
info@bunkbedking.com

thanks

denis]]>
E-junkie Discussions; bunkbedking
Post #6 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Thu, 10 Feb 2011 03:53:33 GMT
This works just fine!

This is the only edit that I really need to make. My standard page has the discount code box hidden so prospective customers don't think they are missing out on some obscure discount.

Meanwhile, I have a special order page that I can email to promo customers that shows the box so they can enter a discount code.

THANKS!]]>
E-junkie Discussions; HOAGUY
Post #5 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Thu, 10 Feb 2011 01:15:44 GMT
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#dscnt_cd").remove();
jQuery('input[name="discount_code"]').attr("style", "display:none;");
jQuery("#discount2").remove();
}]]>
E-junkie Discussions; E-junkieGuru
Post #4 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Wed, 9 Feb 2011 16:16:14 GMT
I pasted this code that you provided on my View Cart page, just before the "// -->" line in the standard View Cart code, as you directed:

function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#dscnt_cd").remove();
jQuery('input[name="discount_code"]').remove();
jQuery("#discount2").remove();
}

It worked just as expected, preventing the coupon code box from being displayed - NICE!

UNFORTUNATELY, THERE IS A BAD SIDE EFFECT OF THIS CODE. When I click the "Remove" box and "Update Cart" I don't get the Cart is Empty page. Instead, Firefox gives me a blank page with this long URL:

https://www.e-junkie.com/ecom/gb.php?rc=&rct=&remove_array[0]=1&ci_id_array[0]=26942708&sub_item_id_array[0]=26942708&item_number_array[0]=201985&quantity_array[0]=1&cart_item_price_array[0]=&total_item_price_array[0]=99&to_country=US&zipcode=75019&shtx_calc_done=true&cart_total=99&min_cart_item_total=0.00&cart_error_code=0&page_ln=en&shtx_calc_needed=true

I also tried Internet Explorer 8 and it does nothing when I click "Update Cart". It doesn't remove the checked item from the cart.

I would leave up my www.hoa-resources.com site for you to see this directly but I don't want to lose a sale.

I'm confident I used your exact code because I cut & pasted rather than trying to type the exact syntax. This View Cart code change is the ONLY change I made to my webpage file.

Any suggestions?]]>
E-junkie Discussions; HOAGUY
Post #3 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Mon, 7 Feb 2011 14:17:13 GMT
I will definitely try them out later this week when I have some time.]]>
E-junkie Discussions; HOAGUY
Post #2 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Mon, 7 Feb 2011 02:44:14 GMT
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=XXXXX&cl=48961&ejc=2&discount_code=YOURCODEHERE&custom=76" 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"/></a>

For Buy Now buttons, you'd need to use &on0=Promotion&os0=YOURCODEHERE instead:

<a href="https://www.e-junkie.com/ecom/gb.php?i=XXXXXX&c=single&cl=48961&on0=Promotion&os0=YOURCODEHERE" target="ejejcsingle"><img src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></a>

To hide the Discount Code field in the cart, you'd need to add this 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("#dscnt_cd").remove();
jQuery('input[name="discount_code"]').remove();
jQuery("#discount2").remove();
}]]>
E-junkie Discussions; E-junkieGuru
Post #1 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 http://www.e-junkie.com/bb/topic/4991/pg/0#post16865 Sun, 6 Feb 2011 20:56:36 GMT E-junkie Discussions; HOAGUY