Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / opening dropdown cart when clicking "add this to my cart" only after update

opening dropdown cart when clicking "add this to my cart" only after update

Started by phillycheese123 on 19 Sep 2012, 6:03 PM · Views: 491

Results 1 to 1 of 1
19 Sep 2012, 6:03 PM
#1
phillycheese123 avatar

phillycheese123

New Zenner

Join Date:
Dec 2011
Posts:
11
Plugin Contributions:
0

Post #1 by phillycheese123

i want a drop down cart i have to open when the add this to my cart button is clicked...i need to figure out how to force it to wait until cart is updated with the new item.

for the product info page
i added this to the button

    <div id="cartAdd" value="Show Div" onclick="showDiv()" />

and this is in modules/pages/product-info

function showDiv() {
   document.getElementById('dropcart').style.display = "block";
}

http://www.shopbabby.com/index.php?main_page=product_info&products_id=180

any ideas?