Support » Plugins » WP Shopping Cart causing problems with my NextGen Gallery

  • I recently installed WP Shopping Cart, which works beautifully, but I’m finding that it’s messing up a crucial javascript in my NextGen Gallery…. the “Thickbox” effect is not working, (well it “works”, but badly, and you can’t get out of it except by reloading the page.) Has anybody experienced this conflict, and is there a workaround? Please help because I really need both plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I was running into this problem but it was with lightbox. What I did was change the paths that WP Shopping Cart is referencing to the plugin folder for lightbox. For example in the file wp-shopping-cart.php on line 903 it says:

    <link href='<?php echo $siteurl; ?>/wp-content/plugins/wp-shopping-cart/thickbox.css’ rel=”stylesheet” type=”text/css”>

    change it to:

    <link href='<?php echo $siteurl; ?>/wp-content/plugins/thickbox/thickbox.css’ rel=”stylesheet” type=”text/css” />

    I can’t tell you everywhere to go for thick box to change it to the thickbox plugin, however if you want to change it all to be lightbox you can change all by changing the class and rel in the product_display_functions.php file as follows:

    around line 200 and 441:

    a href='”.$image_link.”‘ class=’ngg-gallery-thumbnail’ rel=’lightbox[]’

    It was a bit annoying to find this with wp-shpping-cart. Too bad there didn’t seem to be a simpler way. I’m on a mac running leopard so I can do a file content search directly from the finder. If you can do this it will help immensely. If not you may have to open all the files to search for this. Of course do not change any code without backing up your current wp-shopping-cart plugin just in case.

    Beautiful! It was a pain to find all the references to it in both NextGen Gallery and WP Shopping cart, but I did (thanks to BBEdit) and it seems to work perfectly now. Thanks for the tip!

    If you want a quick and dirty fix for this problem,open wp-shopping-cart in your plugins folder,open /js and delete the content of thickbox.js. Then find thickbox.css and lightbox.css in /plugins/wp-shopping-cart/ and repeat,leaving the files on the server.I say leave them there in case you ever deactivate nextgen so you can just refill those files and you won’t forget what goes where if they remain where they are,just empty.
    Wp-shopping-cart uses other javascript like jquery for the fancy effects like the sliding cart and etc but doesn’t need those 3 files for anything(as far as i can tell so far) except for the thumb lightbox effect.
    Yet nextgen gallery really needs those 3 files or it’s whole deal is wiped out.
    So I just let the scripts from the nextgen plugin provide the lightbox effect for both plugins.
    This saved me loads of time and both plugins are 100% fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Shopping Cart causing problems with my NextGen Gallery’ is closed to new replies.