WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Devision by Zero (4 posts)

  1. tozq
    Member
    Posted 5 months ago #

    I installed woocommerce and mystile. After adding products, I got "Warning: Division by zero in /home/ehubinc/public_html/wp-content/plugins/woocommerce/templates/content-product.php on line 33" and
    "Warning: Division by zero in /home/ehubinc/public_html/wp-content/plugins/woocommerce/templates/content-product.php on line 35" on home page. I have tried to do any adjustment without luck. Please help. Thank you!

    33 if ( 0 == ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns'] )
    34 $classes[] = 'first';
    35 if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] )
    36 $classes[] = 'last';

    https://wordpress.org/plugins/woocommerce/

  2. Daniel Espinoza
    Member
    Posted 5 months ago #

    What versions of WooCommerce and Mystile are you using?
    Any other plugins installed?
    Any code in the functions.php file?

  3. tozq
    Member
    Posted 5 months ago #

    - I have the latest version on both woocommerce and wp.
    - plugins: Akismet(stopped),Alipay For WooCommerce,Weight based shipping for Woocommerce,WooCommerce2.12,WooThemes Helper
    - theme: mystile
    - i did not touch functions.php

    I found that the plugin "WooCommerce Customizer" is the one that causes the problem. Disabled it everything goes ok.

  4. Daniel Espinoza
    Member
    Posted 5 months ago #

    Interesting. Well, glad it's sorted!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags