1 / 6
Apr 2010

hi

I need some help in regard to discounts for members of my website. The site itself displays a discounted member price when the member is logged in looking at the store. But when items are placed in the cart with the e-junkie buttons, there is no discount shown. How do I integrate the buttons so that when the site recognizes a member who will receive a discount, the shopping cart will recognize them too?

Thanks

Melissa

  • created

    Apr '10
  • last reply

    May '10
  • 5

    replies

  • 854

    views

  • 3

    users

  • 6

    links

If you create a discount code in Seller Admin > Cart Discounts, you can put the code right in the cart button by adding &discount_code=CODEGOESHERE to the end of the button's href= URL -- e.g., your Add to Cart button code would look like this:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=621957&cl=20545&ejc=2&discountcode=CODEGOESHERE" target="ej_ejc" 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>



Then custom scripting in your pages at your end could recognize when a member is logged-in and, if so, it would add the discount code parameter to the end of every Add to Cart URL.

1 month later

Thanks for the answer. Sorry for being slow, but I'm not sure I fully understand how to make it work. I did create a discount code in my seller admin. that you explained. Now I'm not sure what to do next.



Where do I get this code to put into the "Add to Cart" button? I already have over a hundred products on my site. Do I have to go back and add the code by hand into the HTML or generate new buttons on e-junkie and then remove the old ones on each product on my site and replace with the new ones?



Thanks!

Melissa

Hi Melissa,



The code that goes into the HTML example our Guru provided would be the discount code you set when you created your discount. If you didn't declare a discount code at the time you made the discount you can still add one now--be aware that a discount that doesn't have a declared discount code will apply automatically for anyone, whether they are one of your members or not.



It would be necessary to manually edit the code for all of your product buttons that you wanted to apply this change to. The specific change you are making is to the URL that each Add to Cart button applies to so that it goes into your shopping cart with the appropriate discount being entered automatically.



In the above example the URL would normally be



https://www.e-junkie.com/ecom/gb.php?c=cart&i=621957&cl=20545&ejc=2



which would need to have &discount_code=CODEGOESHERE pasted to the end, inside the quotation marks.

ok, glad you told me about the undeclared discount situation! (I didn't declare a code when I made the discount so some recent sales were automatically discounted...boo)



So, I'm unclear again. If I understood E-junkie Guru's response he said that the shopping cart could recognize if it was a member who was signed on, and therefore apply the discount automatically for members--they would not have to specify a discount code at checkout.

But from E-junkie Monster's response, it sounds like everyone who is a member would have to enter the discount code at checkout. This is not good because some members may forget and not receive the discount, and other non-members might find out the code and use it even though they are not members.



Is it possible to create a discount code that will automatically recognize logged-in members and discount their purchases?



Thanks

Our cart, by itself, has no way of recognizing whether someone is a member on your site.



I was suggesting that you could have a developer add a bit of custom programming to your site, so when a member is signed-in at your end, that custom scripting would automatically add the &discount_code=YOURCODEHERE parameter "on the fly" to all of the cart buttons shown to that site member.



If you are not a computer programmer or don't already have one on your staff, we can recommend the competent, E-junkie-experienced developers listed in our directory page here:

http://www.e-junkie.com/ej/developer-directory.htm