osamublack
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Hello Again,
I worked a solution by using jQuery to add certain texts.jQuery(document).ready(function($){ setTimeout(function() { var product_cells = $('#wcfm-products').find('tr td'); if (product_cells.length > 2) { // Getting certain cell of each row. for (var i = 10; i < product_cells.length; i = i + 13) { var cell = product_cells[i]; //Calculations //Any Sort of your calculations date difference in my case. //Replacing Html cell.innerHTML = cell.innerHTML + 'More Data'; $('wcfm_products_limit_label').html('Per Product Price: 300 PKR'); } } }, 5000); }); }
If there is a better method or any code correction please notify me. Thank you.
- This reply was modified 4 years, 1 month ago by osamublack.
Hello Again. I found a method by which I could get vendor shipping rates without overriding admin shipping rates. Sorry but I had to add one line in your plugin file class-wcfmmp-shipping.php at line 568:
if ( 'wcfmmp_product_shipping_by_country' === $rate->method_id || 'wcfmmp_product_shipping_by_zone' === $rate->method_id || 'wcfmmp_product_shipping_by_weight' === $rate->method_id || 'wcfmmp_product_shipping_by_distance' === $rate->method_id ) {
to
if ( 'wcfmmp_product_shipping_by_country' === $rate->method_id || 'wcfmmp_product_shipping_by_zone' === $rate->method_id || 'wcfmmp_product_shipping_by_weight' === $rate->method_id || 'wcfmmp_product_shipping_by_distance' === $rate->method_id || 'flat_rate' === $rate->method_id ) {
If you could, please give me a hook by which I can do what I did above with out disturbing the plugin files and write. Thank you.
- This reply was modified 4 years, 1 month ago by osamublack.
- This reply was modified 4 years, 1 month ago by osamublack.
Thank you for your reply. I used the hook woocommerce_package_rates and it worked fine.
Viewing 3 replies - 1 through 3 (of 3 total)