Skip to main content
9 events
when toggle format what by license comment
Jan 3, 2013 at 22:45 comment added hockey2112 Looks like the Jquery Update (drupal.org/project/jquery_update) module was causing the issue. I disabled that module, and the jquery method now works fine on that other live site.
Jan 2, 2013 at 22:59 vote accept hockey2112
Jan 2, 2013 at 21:21 comment added hockey2112 I might need a little more help on this. The Jquery method is working perfectly on a test site and on one live site, but it is not working on another live site. The FireFox error console shows this error... Error: uncaught exception: Syntax error, unrecognized expression: ['mysite.com/node/255'] . It throws that same error when I use the product's url alias in the js code as well. Any idea why that would happen, and how I might troubleshoot it?
Dec 24, 2012 at 21:30 vote accept hockey2112
Jan 2, 2013 at 22:59
Dec 21, 2012 at 8:15 comment added Marco Panichi URL: instead of url, you can intercept the cart render function in yourthemename/template.php file, in order to append a class to the <div id='cart-form-pane'> tag. But I can't help you there...maybe this post could be useful: www.ubercart.org/forum/development/3868/nifty_products_tutorial_part_1
Dec 21, 2012 at 8:12 comment added Marco Panichi JQUERY: I opened an ubercart cart and saw that -unfortunally- there wasn't an id of the product mentioned in the html <tr>. But there was the href (yourdomain/catalog/section/productname). So you can solve with this line of code in your script head tag: $(document).ready(function () { if ($("a['yourdomain/catalog/section/productname']")) { $("#cart-form-pane").css('background','red') } });
Dec 20, 2012 at 22:21 comment added hockey2112 Also, what about passing a value in the URL? Is that a possible method of providing the ability to customize the CSS for that page based on whether that parameter is passed in the URL? If so, how would that be accomplished?
Dec 20, 2012 at 21:37 comment added hockey2112 Do you have an example of the jquery method that you can point me towards?
Dec 20, 2012 at 21:01 history answered Marco Panichi CC BY-SA 3.0