Bugs and features to improve this plugin
-
While I am working with development of my own woocommerce theme, using this plugin – I found some bugs:
This code:
<div class=related products>
Should be replaces with this (with quotes around the classes:
<div class="related products">
In the original templates – block header was created using <h2> tag (up-sells.php and related.php templates from single-product folder), but you used <h3>, so, it would be nice to change this line:
<h3><?php echo get_option('woorelated_wtitle'); ?></h3>
To this line:
<h2><?php echo get_option('woorelated_wtitle'); ?></h2>
Also I think it would be nice to place plugin’s setting icon not in the root of wordpress admin menu as now, but make it as submenu in woocommerce menu. For this you should change:
add_menu_page('Related Products', 'Related Products', 'administrator', 'woo-related-options', 'admin_page');
To this line:
add_submenu_page( 'woocommerce', __( 'Related Products', 'woocommerce' ), __( 'Related Products', 'woocommerce' ), 'administrator', 'woo-related-options', 'admin_page' );
Hope it was helpful, and you will fix this issues to improve your greet plugin.
https://www.ads-software.com/plugins/woo-related-products-refresh-on-reload/
- The topic ‘Bugs and features to improve this plugin’ is closed to new replies.