Tagged: x
-
AuthorPosts
-
August 24, 2016 at 7:54 pm #1145660
Mary Beth MParticipantHello there,
I installed the woocommerce plugin from the extensions area and then immediately get this error on any page related to woocommerce:
“Warning: Division by zero in /home/wp_mxqmi5/texassleepdocs.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 250
Warning: Division by zero in /home/wp_mxqmi5/texassleepdocs.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 252
class=”post-851 product type-product status-publish has-post-thumbnail instock sold-individually shipping-taxable purchasable product-type-simple”> ”made a quick sample product so you could see the error live https://www.texassleepdocs.com/product/sample-product/
Everything is completely up-to-date, any idea why I might get that error?
Thank you very much
August 24, 2016 at 10:48 pm #1145987
Prasant RaiModeratorHello There,
Thanks for writing in!
This is just a PHP warning which is caused by a null or not yet initialize column variable in your site. You may go to your customizer, Appearance > Customize > WooCommerce > Shop and make sure that you have selected the shop columns that you would like to have in your shop page. To get rid of this warning, please disable the WP_DEBUG mode. You can do this by opening wp-config.php and adding
define( 'WP_DEBUG' , false );just above /* That’s all, stop editing! Happy blogging. */ For example:define('WP_DEBUG', false);/* That’s all, stop editing! Happy blogging. */
When you revisit the page, the error should be gone.Hope this helps. Please let us know how it goes.
August 25, 2016 at 12:42 pm #1146984
Mary Beth MParticipantThat worked thank you. I’ve set up so many woocommerce stores before I have no idea how I haven’t run across this yet lol. Thank you
August 25, 2016 at 12:53 pm #1146991
RahulModeratorGlad you’ve sorted it out.
If you still have any issues with the theme, let us know. We’d be happy to assist you with everything.
Thanks.
August 26, 2016 at 12:46 pm #1148572
Mary Beth MParticipantYou guys are the best. I’ve been using this theme exclusively for 3 years, so I think I’ve made roughly 125 or sites with X so far, and every single client thought it was amazing compared to what they were used to.
I do have a question though. I’m working with a national client now that needs to integrate Google Structured Data for their FAQ’s, and was wondering where I would place these blurbs:
<script type=”application/ld+json”>
{
“@context”: “http://schema.org”,
“@type”: “Law Firm”,
“url”: “https://www.goldbergjones.com”,
“contactPoint”: [{
“@type”: “ContactPoint”,
“telephone”: “+1-401-555-1212”,
“contactType”: “customer service”
}]
}
</script>Thank you again for any help!
August 26, 2016 at 1:12 pm #1148611
RahulModeratorHey There,
Thanks for writing back!
Follow this ticket for more information regarding Google Structure Data :
<a href=”https://community.theme.co/forums/topic/how-to-add-structured-markup-data-from-google/
“>https://community.theme.co/forums/topic/how-to-add-structured-markup-data-from-google/
/a>
Hope this helps! -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1145660 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
