Title: Divi Theme Issues
Last modified: January 31, 2021

---

# Divi Theme Issues

 *  Resolved [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/)
 * This plugin looks awesome. But it doesnt seem to work with divi. Price does not
   update while selecting the quantities and when you add lets say 3 to a particular
   product and add it to the cart, it only adds one.
 * Only happens with Divi. Storefront works perfect.
 * Any ideas on how I can get this to work with Divi?

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

 *  [haithh93](https://wordpress.org/support/users/haithh93/)
 * (@haithh93)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-13984040)
 * Hi [@bigefromdabx](https://wordpress.org/support/users/bigefromdabx/),
    pls send
   us your page you need help, we will check it and give you solution Thank you!
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-13984174)
 * here you go.
 * [https://sandbox.jglaundromat.com/product/dry-clean-copy/](https://sandbox.jglaundromat.com/product/dry-clean-copy/)
 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-13984971)
 * Hi [@bigefromdabx](https://wordpress.org/support/users/bigefromdabx/)
 * I found that the Divi theme is missing the class name “product-type-woosg” and
   our plugin doesn’t work correctly.
 * Please add below code to current-theme (or child-theme) / functions.php
 *     ```
       add_action( 'wp_footer', 'woosg_footer_js', 99 );
       function woosg_footer_js() {
       	?>
           <script type="text/javascript">
               jQuery(document).on('ready', function($) {
                   $('.woosg-form').each(function() {
                       woosg_init($(this));
                   });
               });
           </script>
       	<?php
       }
       ```
   
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-13987688)
 * Thanks. I inserted the code into my snippets but still not working.
 * See snapshot.
    [https://www.dropbox.com/s/c7y9rho034ms46b/Screen%20Shot%202021-02-01%20at%2012.45.20%20PM.png?dl=0](https://www.dropbox.com/s/c7y9rho034ms46b/Screen%20Shot%202021-02-01%20at%2012.45.20%20PM.png?dl=0)
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-13998035)
 * Any idea why this isnt working? Would love to get this working so that I can 
   purchase it.
 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14000165)
 * Hi [@bigefromdabx](https://wordpress.org/support/users/bigefromdabx/)
 * Sorry about that! Please try the new code below:
 *     ```
       add_action( 'wp_footer', 'woosg_footer_js', 99 );
       function woosg_footer_js() {
       	?>
           <script type="text/javascript">
             jQuery(document).ready(function($) {
               $('.woosg-form').each(function() {
                 woosg_init($(this));
               });
             });
           </script>
       	<?php
       }
       ```
   
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14000601)
 * [@wpclever](https://wordpress.org/support/users/wpclever/)
 * Its still not working. The snippet you gave me doesnt allow me to click the add
   to cart button now.
 * [https://www.dropbox.com/s/be8ie3nok53iz8e/Screen%20Shot%202021-02-04%20at%201.10.34%20AM.png?dl=0](https://www.dropbox.com/s/be8ie3nok53iz8e/Screen%20Shot%202021-02-04%20at%201.10.34%20AM.png?dl=0)
 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14000636)
 * [@bigefromdabx](https://wordpress.org/support/users/bigefromdabx/)
 * Please try again 😀
 *     ```
       add_action( 'wp_footer', 'woosg_footer_js', 99 );
       function woosg_footer_js() {
       	?>
           <script type="text/javascript">
             jQuery(document).ready(function($) {
               $('.woosg-form').each(function() {
                 $(this).closest('div').addClass('product-type-woosg');
                 woosg_init($(this).closest('div'));
               });
             });
           </script>
       	<?php
       }
       ```
   
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14000706)
 * [@wpclever](https://wordpress.org/support/users/wpclever/)
 * We are making progress :). The price on the bottom is calculating now and when
   I hit add to cart its adding the proper number of products. But where it says
   from price that stays at 0. Thanks for your help.
 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14000970)
 * Please follow these steps:
 * 1. Change the old code to:
 *     ```
       add_action( 'wp_footer', 'woosg_footer_js', 99 );
       function woosg_footer_js() {
       	?>
           <script type="text/javascript">
             jQuery(document).ready(function($) {
               if ($('.woosg-form').length) {
                 $('body').addClass('product-type-woosg');
                 woosg_init($('.product-type-woosg'));
               }
             });
           </script>
       	<?php
       }
       ```
   
 * 2. Choose the option like that [https://www.screencast.com/t/rmcTH0ybW3](https://www.screencast.com/t/rmcTH0ybW3)
 * `.et_pb_wc_price .price`
 *  Thread Starter [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * (@bigefromdabx)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14003674)
 * [@wpclever](https://wordpress.org/support/users/wpclever/) That worked 🙂
 * Im going to go ahead and purchase the plugin. Thanks for all your help.

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

The topic ‘Divi Theme Issues’ is closed to new replies.

 * ![](https://ps.w.org/wpc-grouped-product/assets/icon-128x128.png?rev=2147466)
 * [WPC Grouped Product for WooCommerce](https://wordpress.org/plugins/wpc-grouped-product/)
 * [Support Threads](https://wordpress.org/support/plugin/wpc-grouped-product/)
 * [Active Topics](https://wordpress.org/support/plugin/wpc-grouped-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpc-grouped-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpc-grouped-product/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [BigEfromDaBx](https://wordpress.org/support/users/bigefromdabx/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/divi-theme-issues-2/#post-14003674)
 * Status: resolved