Hi @bigefromdabx,
pls send us your page you need help, we will check it and give you solution
Thank you!
Hi @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
}
Any idea why this isnt working? Would love to get this working so that I can purchase it.
Hi @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
}
@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
}
@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.
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
.et_pb_wc_price .price
@wpclever That worked 🙂
Im going to go ahead and purchase the plugin. Thanks for all your help.