Title: Conflict with
Last modified: September 1, 2016

---

# Conflict with

 *  Resolved [rutlandweb](https://wordpress.org/support/users/rutlandweb/)
 * (@rutlandweb)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/conflict-with-2/)
 * Hi, I’m hoping you may be able to help with this issue I’m having.
 * I have a gift set up to trigger when the customer spends £150, they get a free
   product. On the cart, when the offer pops up I’m getting a conflict with the 
   Woocomerce Dynamic Gallery plugin.
 * [Here is a screenshot](http://rutlandweb.co.uk/error.jpg)
 * If its any help the code referred to is..
 * public static function change_image_in_cart_page( $product_image, $values, $cart_item_key){
   
   if ( is_array( $values ) && isset( $values[‘variation_id’] ) && $values[‘variation_id’]
   > 0 ) { $variation_id = $values[‘variation_id’];
 *  $dgallery_ids = WC_Dynamic_Gallery_Functions::get_gallery_ids( $variation_id);
   
   if ( is_array( $dgallery_ids ) && count( $dgallery_ids ) > 0 ) { // Use first
   image from variation gallery $img_id = (int) array_shift( $dgallery_ids ); $product_image
   = wp_get_attachment_image( $img_id, ‘shop_thumbnail’ ); }
 *  } elseif ( isset( $values[‘product_id’] ) && $values[‘product_id’] > 0 ) {
    
   $product_id = $values[‘product_id’]; // Don’t change the image if product has
   featured image if ( has_post_thumbnail( $product_id ) ) return $product_image;
 *  $dgallery_ids = WC_Dynamic_Gallery_Functions::get_gallery_ids( $product_id );
   
   if ( is_array( $dgallery_ids ) && count( $dgallery_ids ) > 0 ) { // Use first
   image from variation gallery $img_id = (int) array_shift( $dgallery_ids ); $product_image
   = wp_get_attachment_image( $img_id, ‘shop_thumbnail’ ); } }
 *  return $product_image;
    }
 * Thanks for any help you can offer.
 * Simon
 * [https://wordpress.org/plugins/giftable-for-woocommerce/](https://wordpress.org/plugins/giftable-for-woocommerce/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * (@decomteam)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/conflict-with-2/#post-7651712)
 * Could you confirm:
    – WP version – WC version – PHP version ? (minimal PHP version
   required is 5.6+) – WooCommerce Dynamic Gallery version (lite or premium)?
 * **–** it looks like WCDG is missing something, but need to be sure, will try 
   to reproduce the problem and report here.
 * Please feel free to contact us with any questions at support |at| decom.ba
 *  Plugin Author [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * (@decomteam)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/conflict-with-2/#post-7651747)
 * [Report]
    **Fixed in 0.9.7**
 * Thank you for submitting your issue!
    – issue is fixed in **0.9.7** and uploaded
   to repo, update should be available shortly in your WP Dashboard.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conflict with’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/giftable-for-woocommerce_a7699a.svg)
 * [Giftable for WooCommerce](https://wordpress.org/plugins/giftable-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/giftable-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/giftable-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/giftable-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/giftable-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/giftable-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DecomTeam](https://wordpress.org/support/users/decomteam/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/conflict-with-2/#post-7651747)
 * Status: resolved