View Full Version : Add to cart button moving around
nosilla
March 31st, 2003, 03:27 PM
I have everything up and running on the cart...Im only having one more issue thats bugging me. When I browse from product to product, the "add to cart" button starts to jump around. Sometimes is by the quantity and price, sometimes its at the bottom of the page entirely. If i refresh the screen, it goes back by the quantity.
Is there a way to anchor the button? I tried editing the show_product_detail.php page, but I wasnt sure how to make it do what i wanted to do.
http://www.thescarlettpaisley.com/index.php
Thanks!
Jamie
April 1st, 2003, 11:02 AM
Hi,
I believe this is being caused by some poor HTML coding in v1.0.9. The add to cart button is within a span tag, like this:
<span class="product_add_to_cart">
<!-- add to cart button code is here -->
</span>
The class "product_add_to_cart" is using positioning, which is not reliable in all browsers. Also, the span tag is an inline element, and shouldn't be used in that manner.
This has been fixed in v1.1.0. If you upgrade, it should go away.
Thanks!
Jamie
nosilla
April 1st, 2003, 11:21 AM
Thats what I was afraid of...i resist change...but I will buckle down and brave the upgrade.
Allison
Jamie
April 1st, 2003, 01:01 PM
Just make sure you backup first! Also, be careful to choose "Structure AND Data" when backing up the DB. Instructions on backing up can be found in "squirrelcart/docs".
Thanks,
Jamie
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.