Problem turning Quick view in to Buy Now

[size=3][font=arial, helvetica, sans-serif]Hi All,[/font][/size]



[size=3][font=arial, helvetica, sans-serif]We are trying to show another custom quick view button to approximate a 'Buy now' action in the product category list. The button is intended to have the same functionality as the quick view that appears over a products thumbnail. see buy now button in screenshot 1. As we aren't big fans of the hover over button, we will then disable this.[/font][/size]



[font=“arial, helvetica, sans-serif”][size=3]We've hit a few snags however.[/size][/font]

[font=arial, sans-serif][size=3]- The “Buy Now” button mirrors a particular product's “Quick View” button.[/size][/font][font=arial, sans-serif][size=3]

  • Clicking on the “Buy Now” button shows that particular products quick view pop up.[/size][/font][font=arial, sans-serif][size=3]
  • Where we're having issues is at the point where we've hit the pop up window's “Add to Cart” button and we expect the the quantity of items in the header's “Your Cart” dropdown to increment and add the price to the existing subtotal.[/size][/font]

    [font=arial, sans-serif][size=3]

    For whatever reason, the javascript that updates the “You Cart” drop down doesn't work if you click the “Buy Now” button first.[/size][/font]

    [font=arial, sans-serif][size=3]

    If you click the products “Quick View” button and add a product using that pop up and then do the same using the “Buy Now”. Then the “Your Cart” gets updated with the latest cost and quantity.[/size][/font]



    Any ideas?



    Here's the code snippet in [font=arial, sans-serif][size=3]product_multicolumns_[/size][/font][font=arial, sans-serif][size=3]list.override.tpl[/size][/font]


```php



More Info
[color=#ff0000] {if !$show_add_to_cart}

{$lang.quick_view}

{/if}[/color]
{if $show_add_to_cart}

{assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
{$smarty.capture.$add_to_cart}

{/if}


```

screen1.png