Title: coolcoder's Replies - page 2 | WordPress.org

---

# coolcoder

  [  ](https://wordpress.org/support/users/coolcoder/)

 *   [Profile](https://wordpress.org/support/users/coolcoder/)
 *   [Topics Started](https://wordpress.org/support/users/coolcoder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/coolcoder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/coolcoder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/coolcoder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/coolcoder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/coolcoder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)

[←](https://wordpress.org/support/users/coolcoder/replies/?output_format=md) [1](https://wordpress.org/support/users/coolcoder/replies/?output_format=md)
2

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Conflict with Woocommerce Plugin](https://wordpress.org/support/topic/conflict-with-woocommerce-plugin-2/)
 *  [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/conflict-with-woocommerce-plugin-2/#post-6433160)
 * Same as [@tony](https://wordpress.org/support/users/tony/), only spinning icon
   when CF7 and Woocommerce plugins used together.
 * WP – v4.3
    Contact Form 7 – v4.2.2 (latest) Woocommerce – v2.4.6 (latest) Theme–
   twentyfifteen All other plugins disabled.
 * Any help appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show cart contents / total do not work with WooCommerce Version 2.3](https://wordpress.org/support/topic/show-cart-contents-total-do-not-work-with-woocommerce-version-23/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/show-cart-contents-total-do-not-work-with-woocommerce-version-23/#post-5497488)
 * Got the issue.
    ‘add_to_cart_fragments’ is deprecated. With ‘woocommerce_add_to_cart_fragments’
   works fine.
 *     ```
       add_filter('woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Show cart contents / total do not work with WooCommerce Version 2.3](https://wordpress.org/support/topic/show-cart-contents-total-do-not-work-with-woocommerce-version-23/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/show-cart-contents-total-do-not-work-with-woocommerce-version-23/#post-5497395)
 * Code is –
 * To ajaxify cart:
 *     ```
       // Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php)
       add_filter('add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment');
   
       function woocommerce_header_add_to_cart_fragment( $fragments ) {
       global $woocommerce;
       ob_start();
       ?>
       <a>cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a>
       <?php
       $fragments['a.cart-contents'] = ob_get_clean();
       return $fragments;
       }
       ```
   
 * To display the cart contents
 *     ```
       <?php global $woocommerce; ?>
   
       <a>cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] 'Undefined index: post_type' on product delete or untrash](https://wordpress.org/support/topic/undefined-index-post_type-on-product-delete-or-untrash/)
 *  [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/undefined-index-post_type-on-product-delete-or-untrash/#post-5211409)
 * Why don’t you submit a support ticket with woothemes, you will get support for
   it. Looks like these notices are from theme itself, not necessary to disable 
   plugins. Anyways, using isset could solve this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Changing number of products per row do not change product li width](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/#post-5202023)
 * Thanks for reply [@lorro](https://wordpress.org/support/users/lorro/).
 * It does work when I tweak css manually for product li as per the columns I need.
   But does not go well except that.
 * Actually woocommerce page is supposed to take class columns-2 or columns-3 dynamically
   as per the columns specified with shop column snippet. Woocommerce has CSS ready
   for that.
 *     ```
       .woocommerce-page.columns-1 ul.products li.product, .woocommerce.columns-1 ul.products li.product {
       	width:100%;
       	margin-right:0
       }
       .woocommerce-page.columns-2 ul.products li.product, .woocommerce.columns-2 ul.products li.product {
       	width:48%
       }
       .woocommerce-page.columns-3 ul.products li.product, .woocommerce.columns-3 ul.products li.product {
       	width:30.75%
       }
       .woocommerce-page.columns-5 ul.products li.product, .woocommerce.columns-5 ul.products li.product {
       	width:16.95%
       }
       .woocommerce-page.columns-6 ul.products li.product, .woocommerce.columns-6 ul.products li.product {
       	width:13.5%
       }
       ```
   
 * Sorry no link currently, but similar behavior can be replicated with TwentyFourteen.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Changing number of products per row do not change product li width](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/#post-5201912)
 * Edit
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Changing number of products per row do not change product li width](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/changing-number-of-products-per-row-do-not-change-product-li-width/#post-5201873)
 * Forgot to mention. I’ve read this.
 * [http://coenjacobs.me/changing-number-columns-woocommerce-2-1/](http://coenjacobs.me/changing-number-columns-woocommerce-2-1/)
 * #1 and #2 passed so followed #3 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breadcrumb NavXT] Notice Undefined index for post format archive breadcrumb](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/#post-5200075)
 * Resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breadcrumb NavXT] Notice Undefined index for post format archive breadcrumb](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/#post-5200073)
 * Working Great! Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breadcrumb NavXT] Notice Undefined index for post format archive breadcrumb](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/#post-5199991)
 * My bad…it wasn’t worked.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breadcrumb NavXT] Notice Undefined index for post format archive breadcrumb](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/)
 *  Thread Starter [coolcoder](https://wordpress.org/support/users/coolcoder/)
 * (@coolcoder)
 * [12 years ago](https://wordpress.org/support/topic/notice-undefined-index-for-post-format-archive-breadcrumb/#post-5199986)
 * Using isset() like follows solved the issue. But not sure if it is correct method.
   Please let me know.
 * //Place the breadcrumb in the trail, uses the constructor to set the title, template,
   and type, get a pointer to it in return
    if(isset($term)) { $breadcrumb = $this-
   >add(new bcn_breadcrumb($term->name, $this->opt[‘Htax_’ . $term->taxonomy . ‘
   _template_no_anchor’], array(‘archive’, ‘taxonomy’, $term->taxonomy, ‘current-
   item’), NULL, $term->term_id)); }

Viewing 11 replies - 16 through 26 (of 26 total)

[←](https://wordpress.org/support/users/coolcoder/replies/?output_format=md) [1](https://wordpress.org/support/users/coolcoder/replies/?output_format=md)
2