Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Invalid argument in foreach (Woocommerce)

Discussion in 'Misc WordPress Requests' started by RossMitchell, Mar 26, 2018.

  1. RossMitchell

    Guest

    Reply To: Invalid argument in foreach (Woocommerce), by RossMitchell

    As a first point, please seek support and report your fix in the woocommerce support forum.

    Yes your fix by editing functions.php should have you doubting the strength and suitability of your fix. To this I add that it is probably even more so! and for several reasons:
    – Unless base is a child theme, then your fix will be lost in a theme update.
    – On the other hand it is unusual even exceptional to have woocommerce functionality intruding into the theme, though it happens in page templates. Most likely the code was borrowed from woo by the theme author, its ancestry and version of origin are unknown. This makes updating woocommerce and themes more difficult than usual, for this reason I have some sites latched onto old woocommerce versions as I have not taken the time to merge the updates.

    So to be safe convert to a child theme and you will be ok.

    Reply To: Invalid argument in foreach (Woocommerce)
     
    #1

Share This Page

Monarch Social Sharing Plugin