| 1 |
<?php namespace TierPricingTable\Integrations\Themes; |
| 2 |
|
| 3 |
class Shopkeeper { |
| 4 |
|
| 5 |
public function __construct() { |
| 6 |
add_action( 'wp_head', function () { |
| 7 |
?> |
| 8 |
|
| 9 |
<style> |
| 10 |
.price-rules-table tbody td { |
| 11 |
padding: 10px !important; |
| 12 |
} |
| 13 |
|
| 14 |
.price-rules-table th { |
| 15 |
padding-left: 10px !important; |
| 16 |
} |
| 17 |
.price-rules-table { |
| 18 |
border-collapse: collapse !important; |
| 19 |
padding-left: 10px; |
| 20 |
} |
| 21 |
</style> |
| 22 |
|
| 23 |
<script> |
| 24 |
function tieredPriceTableGetProductPriceContainer() { |
| 25 |
return jQuery('form.cart').closest('.product_infos').find('[data-tiered-price-wrapper]'); |
| 26 |
} |
| 27 |
</script> |
| 28 |
<?php |
| 29 |
} ); |
| 30 |
} |
| 31 |
} |
| 32 |
|