Post by Bryan76 » Fri Jan 22, 2010 1:27 am

I would like to use jQuery to do a highlight and fade effect on new items added to the module sidebar. But to do this I need a way to select them.

Would it be possible for index.php?route=module/cart/callback to return a html table that looks something like:

Code: Select all

<table cellpadding="2" cellspacing="0" style="width: 100%;">
  <tr>
    <td class="new_cart_item" width="1" valign="top" align="right">2&nbsp;x&nbsp;</td>
    <td class="new_cart_item" align="left" valign="top">
      <a href="http://www.tortugatwins.com/merch2/index.php?route=product/product&product_id=61">Cinch Pack</a>
      <div></div>
    </td>
  </tr>
</table><br /><div style="text-align: right;">Sub-Total:&nbsp;$24.00</div>
The change is the addition of the "new_cart_item" class to the td's containing the items that were added on that call. Then we could use jQuery to animate that row.

Newbie

Posts

Joined
Tue Jan 19, 2010 6:46 am
Who is online

Users browsing this forum: No registered users and 14 guests