Title: [Plugin: Camera slideshow] Camera and wp-ecommerce
Last modified: August 20, 2016

---

# [Plugin: Camera slideshow] Camera and wp-ecommerce

 *  [kimlai](https://wordpress.org/support/users/kimlai/)
 * (@kimlai)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-camera-slideshow-camera-and-wp-ecommerce/)
 * Hello,
 * I’ve been having problems to have camera playing along with the wp-ecommerce 
   plugin. I’m completely new to WordPress so I hope I’m not too far off.
 * I noticed that the problem comes from the fact that the ‘`camera_enqueue_cond`‘
   method is called twice on my front-page, once with the homepage content, and 
   once with my products. First time it detects the camera slideshow in my homepage
   and sets `$shortcode_found` to true. The second time it’s run with the products,
   and since it doesn’t find any slideshow, `$shortcode_found` is set to false.
 * Then ‘`wp_head`‘ is run, so ‘`camera_enqueue_head`‘ is run. The problem is that
   the global variable `$shortcode_found` is now set to false, so the scripts are
   not added to the document, which obliously breaks the slideshow.
 * The quick fix I used is to replace this line in ‘`camera_enqueue_cond`‘
    `$shortcode_found
   = false;` with this : `$shortcode_found = $shortcode_found || false;` Seems to
   be doing the trick, but I have no idea if it’s what i’m supposed to do, having
   absolutely no experience with wordpress plugins.
 * Any advice would be really appreciated !
 * [http://wordpress.org/extend/plugins/camera-slideshow/](http://wordpress.org/extend/plugins/camera-slideshow/)

Viewing 1 replies (of 1 total)

 *  [ludoamaral](https://wordpress.org/support/users/ludoamaral/)
 * (@ludoamaral)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-camera-slideshow-camera-and-wp-ecommerce/#post-3053815)
 * same here.
    i’ve read some interactions between users and manuel, the creator
   of the plugin, about this topic but apparently no solution was found yet. i’m
   just replying to see if there’s anything new on this.
 * i’ll use nextgen gallery for now, but it sucks because i really like camera, 
   and wp e-commerce is the only free e-commerce plugin that translates to portuguese,
   which is what my clients need. :/

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Camera slideshow] Camera and wp-ecommerce’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/camera-slideshow_d3dcd0.svg)
 * [Camera slideshow](https://wordpress.org/plugins/camera-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/camera-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/camera-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/camera-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/camera-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/camera-slideshow/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ludoamaral](https://wordpress.org/support/users/ludoamaral/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-camera-slideshow-camera-and-wp-ecommerce/#post-3053815)
 * Status: not resolved