1 / 5
Dec 2014

Hello, could you please tell me how to get the code from this button View Cart:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&cl=191093&ejc=2" target="ejejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ejview_cart.gif" border="0" alt="View Cart"/></a>

<script language="javascript" type="text/javascript">

<!--

function EJEJC_lc(th) { return false; }

// -->

</script>

<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>



to be put into the View Cart button on this webpage http://pozvonite.weebly.com/moskovskaya-card.html1?



I was able to do the Add to Cart but not the View Cart.



Thank you!

  • created

    Dec '14
  • last reply

    Dec '14
  • 4

    replies

  • 1.6k

    views

  • 3

    users

  • 9

    links

For best results, we recommend modifying our standard button code to replace our standard button image with a custom button, rather than starting with a custom button and trying to link that to the cart. The top of this help page explains how to do that:

2http://www.e-junkie.com/ej/help.custom.purchase-buttons.htm2



For example, adapting what you've already attempted in your site, our recommended approach would result in code that looks like this:



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&i=62&cl=191093" target="ejejc" class="ec_ejc_thkbx wsite-button wsite-button-small wsite-button-normal" onclick="return EJEJC_lc(this);"><span class="wsite-button-inner">Add to Cart</span></a>



<a href="https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=191093" target="ejejc" class="ec_ejc_thkbx wsite-button wsite-button-small wsite-button-normal" onclick="return EJEJC_lc(this);"><span class="wsite-button-inner">View Cart</span></a>



<script type="text/javascript">

<!--

function EJEJC_lc(th) { return false; };

// -->

</script>

<script src="//www.e-junkie.com/ecom/box.js" type="text/javascript"></script>

Thank you for your reply! Everything works however is there a way to trigger the button to make it same size as Add to Cart?



Thank you.

Since you are using text within SPAN tag for your button you'd have to format the text for the View Cart button differently so that it lines up better with the Add to Cart button, but I don't know that it would display the same in all browsers. If you want to get perfectly matching buttons I'd recommend using images.

Thank you for your reply guys, found another solution!