Hi,
just for everybody who follows this thread: I’ve been working on this directly with cyrock, and we found that this is caused by some bugs in the “Woocommerce – Request a Quote” plugin that creates that button.
It basically registers a Shortcode, but instead of return
ing the output for the Shortcode, as it is necessary per the WordPress Shortcode API, it echo
es the content directly to the page. That is why that code shows up before the table.
From what I can see, the offending code is in the dvin_addquotelist_button()
function of that plugin, which uses that echo
, as well as in the dvin_wcql_Shortcodes::shopbutton()
function, which is missing a return
.
This will therefore need to be fixed in the “Woocommerce – Request a Quote” plugin, so that I suggest that you contact the author of that plugin.
(A temporary fix should be to replace
dvin_addquotelist_button(true,$atts['product_id']);
with
return dvin_addquotelist_button(true,$atts['product_id']);
in dvin_wcql_Shortcodes::shopbutton()
, and
echo ob_get_clean();
with
return ob_get_clean();
in dvin_addquotelist_button()
.
(Depending on where that function is used by the plugin, some more modifications might be required, I didn’t check that.)
Regards,
Tobias