One of the great things about E-junkie is that since we provide our code in basic HTML form you can customize the button codes we provide.
The most common customization people like to make is to change the button image and use one of their own. Here is an example of our standard Add to Cart Button code:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=XXXXX&i=1382652" target="ej_ejc" class="ec_ejc_thkbx" onclick="return EJEJC_lc(this);"><img src="//www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"></a>
All you will need to do is replace that URL with one of your choosing, so the code would look like this...
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=XXXXX&i=1382652" target="ej_ejc" class="ec_ejc_thkbx" onclick="return EJEJC_lc(this);"><img src="//www.yoursite.com/your_button_image.jpg" border="0" alt="Add to Cart"></a>
Another option you can do is to add to the default price. This is a great way to setup member pricing and non-member pricing. Once your members log into your website they can use the standard button code. While non-members pay a higher price, lets say $5.00 more. To do this you add the following code to the end of the purchase URL:
&amount=5.00
This will make your button code for non-members look like this:
<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=XXXXX&i=1382652&amount=5.00" target="ej_ejc" class="ec_ejc_thkbx" onclick="return EJEJC_lc(this);"><img src="//www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"></a>
But be careful, if you are using the Buy Now buttons, it will override the price.
It is also possible to use this customization to add a set number of a product to the cart or to pass a custom variable, but both of those options are better done with our built in Allow Buyers to Edit Quantity and Variant/Variation features.
Post a Comment