• Resolved Andrew MAGIK

    (@magikru)


    Thx for this plugin.
    But I have a problem, that by default – in the admin area I can’t select 10 products to show as related products, because there is <select> element with few options.
    It would be great, if you will change this <select> to the <input>.

    Change this (85 line in woo-related-products.php):

    <select name="woorelated_nproducts">
      <option value="1">1</option>
      <option value="2">2</option>
      <option value="3">3</option>
      <option value="4">4</option>
      <option value="6">6</option>
      <option value="8">8</option>
      <option selected="<?php echo esc_attr( get_option('woorelated_nproducts') ); ?>"><?php echo esc_attr( get_option('woorelated_nproducts') ); ?></option>
    </select>

    To this:

    <input name="woorelated_nproducts" type="number" value="<?php echo esc_attr( get_option('woorelated_nproducts') ); ?>">

    Now code is more clear and useful.

    https://www.ads-software.com/plugins/woo-related-products-refresh-on-reload/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Products to display’ is closed to new replies.