E-junkie Help >
Customizing Purchase Buttons
Customizing your purchase buttons
- Changing the appearance
All the buttons E-junkie provides contain an image reference, which can be like:
- <img src="https://www.e-junkie.com/something.gif"/>
You can replace the https://www.e-junkie.com/something.gif part with your own image's URL OR you can simply replace the whole <img.../> tag with text if you don't want an image button.
OR
- <input type="image" src="https://www.e-junkie.com/something.gif"/>
You can replace the https://www.e-junkie.com/something.gif part with your own image's URL
- <img src="https://www.e-junkie.com/something.gif"/>
- Changing the behavior
All the buttons E-junkie provides contain a purchase link, which is something like https://www.e-junkie.com/ecom/gb.php?i=xx&CL=yy (xx is your item number and yy is your client id)
NOTE: You need some understanding of HTML in order to do what is required below. Also to pass the variables in the URL string, you can simple harcode them there, use Forms, JavaScript or anything else you need.
- To pass a custom variable
You can only pass ONE custom variable per ORDER
- E-junkie cart buttons
Add &custom=value_you_want_to_pass at the end of the purchase link in all the buttons (add to cart and view cart)
Custom value of the last button clicked will be passed
- E-junkie buy now buttons
Add &custom=value_you_want_to_pass at the end of the purchase link in all the button
- E-junkie cart buttons
This will be passed back to you in the notification email, information URL, keygen URL, transaction logs and you can choose to display it in your "thank you" page and "thank you" email as well.
- To pass custom values for each product
You should be using variants for that but E-junkie only allows upto 3 options values to be passed in our buttons. If you want more what you can do is to get the user input on your end, concatenate it in a string and pass it like shown below. This is ONLY work for E-junkie ADD TO CART buttons and E-junkie PayPal Buy Now Buttons.
&on0=Options&os0=string_with_all_values
This string can't be more than 200 characters If that's not enough, you can add this:
&on1=More+Options&os1=another_string_with_more_values
This string can't be more than 100 characters
- To pass product price other than the amount set in E-junkie admin
- E-junkie add to cart button
Add &amount=amount_you_want_to_pass at the end of the purchase link in your add to cart button
This amount will be added to the price you have set in admin and buyer will be shown combined price.
- E-junkie buy now buttons
Add &amount=amount_you_want_to_pass at the end of the purchase link in your button
This amount will be shown to the buyer instead of the price you have set in admin.
- E-junkie add to cart button
- Quantity
E-junkie add to cart and E-junkie buy now buttons
Add &quantity=quantity_you_want_your_button_to_add at the end of the purchase link in your button
Passed quantity will be ignored if the you have set item price as 0 in admin as in that case the item price itself will be editable.
- Language
To change the language of the payment page (PayPal only), add this at the end of the purchase link in your button.
&lc=ES (Spanish)
&lc=DE (German)
&lc=FR (French)
&lc=NL (for Dutch)
&lc=IT (for Italian)
&lc=CN (for Cantonese)
&lc=US (English - you have to use this ONLY if your default language setting in PayPal is something else and you want to display the page in English)
- To pass a custom variable