• Resolved njwp

    (@njwp)


    Hi
    Is there a reason for the duplicate div with class: ‘wdp_pricing_table_caption’ in the bulk table on the product page?

    I get this code:

    <div class="bulk_table">
        <div class="wdp_pricing_table_caption"> <div class="wdp_pricing_table_caption">My bulk description</div></div>
        <table class="wdp_pricing_table">
            <thead>
            <tr>
    		<td>Quantity</td>
    		 <td>Discount</td>
    	 </tr>
            </thead>
    
            <tbody>
    	   <tr>
    	    <td>2 - 99</td>
    	     <td><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>16</span></td>
    	   </tr>
    	 </tbody>
        </table>
        <span class="wdp_pricing_table_footer"></span>
        <br>
    </div>

    The reason I’m asking is I’m about to create a custom bulk-table.php in my theme and I’m checking to see if you plan to remove the ‘wdp_pricing_table_caption’ div from one of the locations.

    It is currently in the html in bulk-table.php but is also returned in the $header_html arg which is constructed in the get_header_html function in classes\engine\range_discount_table\abstracts\abstract-wdp-range-discounts-table.php

    Thanks

    really great plugin and very intuitive to use

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    it’s a bug in file
    classes\engine\range_discount_table\abstracts\abstract-wdp-range-discounts-table.php

    you can edit this file and replace line
    return '<div class="wdp_pricing_table_caption">' . $header_title . "</div>";
    with
    return $header_title;

    But please, keep this class in bulk-table.php

    thanks, Alex

    Thread Starter njwp

    (@njwp)

    perfect! Thanks for the quick response

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘duplicate class in bulk table’ is closed to new replies.