So we’re using visual composer to build our affiliate dashboard and the shortcode to output the affiliate link generator breaks HTML. The shortcode is inside a tab and all tabs work until the link generator shortcode is added.
I found and fixed the error in the file “\affiliates-enterprise\lib\ext\wordpress\class-affiliates-url-renderer-wordpress.php”
There’s a missing closing tag, you have to change :
$IXAP62 .= sprintf( ‘<input type=”submit” name=”generate” value=”%s”‘, __( ‘Generate’, AFFILIATES_PRO_PLUGIN_DOMAIN ) );”
$IXAP62 .= sprintf( ”, __( ‘Generate’, AFFILIATES_PRO_PLUGIN_DOMAIN ) );
I have also two question…
1) Would it be possible to generate the URL via AJAX to prevent the page from reloading?
2) I still have issues with the performance graph shortcode when used inside a tab/accordeon/tour (Uncaught Invalid dimensions for plot, width = 0, height = 320, in file “/affiliates-enterprise/js/graph/flot/jquery.flot.min.js” line 6). Can we do something about that? I haven’t been able to fix the problem. It’s loading fine outside of the tabs but I would like to separate the different sections into tabs.