7 / 7
Feb 2014

I am using the js cart method (http://www.seydesign.com/themes/) and I am also using the suggested technique for split pay solutions (using the affiliates direct sales button). The trouble is that not all of my products are shared and even the ones that are, they are split among different partners. So if my customer fills their cart with my products then tries to add one that I profit share with a partner, the carts empties and starts again.



Is there anything that I can do about this?



seyDoggy (one of your oldest and most loyal customers)

  • created

    Mar '09
  • last reply

    Feb '14
  • 6

    replies

  • 1.5k

    views

  • 3

    users

  • 5

    links

Affiliate Direct Links are designed as an instant-checkout Buy Now button, so it's not possible to combine those with regular cart buttons for buyers to build a multi-item cart order, as you have seen. You would want to use Direct Links for revenue-shared products together with Buy Now buttons for non-shared products on your site, so buyers would have to make a-la-carte purchases for one product at a time.



Really, using our affiliate features to calculate revenue splits with suppliers is sort of a hacky kludge approach, using a tool for something it was not designed to do although it can kinda be made to work that way clumsily, like using a wrench as a hammer.



Also bear in mind that it does not actually split payment to pay the supplier-affiliate their cut on a per-transaction basis. You would receive every payment in full, and the affiliate's share amount gets added to their monthly lump-sum commission total, so after the end of each month, you would need to use the Seller Admin > Pay Your Affiliates function to obtain the masspay.txt file we provide, which you could submit to PayPal to pay out commission shares to all your affiliates for the completed month.

Tyson, I am aware of everything you said and have been running this way for several months. I realize this isn't a true split-pay system (I am acutely aware of that, LOL) but it's all we have with PayPal at this time. So this wasn't what was concerning me. What I really wanted to know is will there be any possibility of this working with the javascript method or can this only work without JS (as it currently will if you open the buy now links in a new window/tab)?



That's all I really want to know, will there be a way to make the js method work with the "split-pay" hack?



Thanks.



seyDoggy (one of your oldest and most loyal customers)

I just tested and realized you can add onClick="javascript:return EJEJC_lc(this);" to your Direct Link code to allow that product to be added to a JS-style overlay cart, so your Direct Link code would look like this:



<a href="https://www.e-junkie.com/ecom/gb.php?ii=XXXXXX&c=cart&aff=YYYYY&ejc=2" class="ecejc_thkbx" target="ej_ejc" onClick="javascript:return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ejbuy_now.gif" border="0" alt="Buy Now"></a>



HOWEVER, I honestly don't know how, or even if, this would track any affiliate share commission. Ideally it should track commission only for the Direct Link item, but in this case I really don't know that it actually will, or that it wouldn't also add commission for all other items in the cart, not to mention what if two different affiliates' Direct Linked products are added to the same cart?



I will have to ask our Lead Developer to consider this matter and give the "final word" on how this would actually pan out.

TysonI just tested and realized you can add onClick="javascript:return EJEJC_lc(this);" to your Direct Link code to allow that product to be added to a JS-style overlay cart, so your Direct Link code would look like this...





Sorry I should have clarified that I have been doing this already, just pasting the affiliate href into my usual links which look like this:



<a href="https://www.e-junkie.com/ecom/gb.php?ii=XXXXXX&c=cart&aff=XXXXXX&ejc=2" rel="ejunkie" class="ecejc_thkbx ejonclick"><img src="../images/content/buynow_125w_34h.jpg" style="width: 125px; height: 34px;" alt="Add to Cart"/></a>



(I use the rel="ejunkie" to get and write target="ej_ejc" onClick="javascript:return EJEJC_lc(this);" just to keep things cleaner for myself)

4 years later

I'm looking for a Javascript where I have 2 radio buttons with the top one pre-selected. Below them is a 'buy now' button that shows a $20 price. When the other radio button is selected, a new price appears. Any suggestions on where I can find a code like that?

We don't have any built-in way of doing that, but for custom scripting needs we can recommend contacting the competent, E-junkie-experienced developers for hire listed at the Developer Directory link at the very top of our site.