I would like my side-by-side Add to Cart and View Cart buttons to be aligned, even after a variant drop-down list.
The vertical layout for each of our products is:
1. Product name
2. Product image
3. (Optionally) Drop-down list for variants
4. (Optionally) Text field for variation
5. Product description
6. Side-by-Side Add to Cart and View Cart buttons
If I have no variant drop-down list, there is no HTML form element and the buttons are perfectly aligned.
If I have a variant drop-down list, there is an HTML form element that I edited to contain both buttons and the buttons are badly misaligned.
On my View Cart button, I added the following kludge to compensate: style="margin-top: -20px;"
Much later, I discovered the following page and thought my problems would be solved:
3http://www.e-junkie.com/ej/troubleshooting-shopping-cart.htm3
The text said:
As soon as I add E-junkie cart to my site, my site layout gets messed up.
In the VIEW CART button code please add:
function EJEJC_config() {
EJEJC_INITCSS = false;
}
If EJEJC_config () {} already exists in your code, then simply add EJEJC_INITCSS = false; line to it.
I have tried positioning the code above in various parts of my VIEW CART button code to no avail.
Here's my unedited VIEW CART button code:
<a href="1https://www.e-junkie.com/ecom/gb.php?c=cart&ejc=2&cl=549901" target="ejejc" class="ec_ejc_thkbx" onclick="return EJEJC_lc(this);"><img src="https://www.e-junkie.com/ej/ejview_cart.gif" border="0" alt="View Cart"></a>
<script type="text/javascript">
function EJEJC_lc(th) { return false; };
</script>
<script src="https://www.e-junkie.com/ecom/box.js" type="text/javascript"></script>
What should the VIEW CART button code look like instead OR is there a different solution?
Thanks!
created
Oct '16
last reply
Oct '16
- 5
replies
- 1.7k
views
- 2
users
- 9
links