dailce
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Order Edit Page: How to Add Negative Fees?So I found a workaround… unless there is a better way. Currently if you enter a negative value for the fee the totals are calculated correctly but the negative fee doesn’t’ show on the totals (the total line items).
I added the following function which will add a line items showing the negative amount. Tested and seems to work well for me.
add_action('woocommerce_admin_order_totals_after_tax', 'custom_admin_order_totals_after_tax', 10, 1 ); function custom_admin_order_totals_after_tax( $order_id ) { global $woocommerce; $order = wc_get_order( $order_id ); $fee_items = $order->get_fees(); // Get fees //SEE WC_Order_Item_Fee FOR FUCNTIONS YOU CAN USE //https://woocommerce.github.io/code-reference/classes/WC-Order-Item-Fee.html // Here set your data and calculations $label = ''; $value = ''; foreach ( $fee_items as $item_id => $item ) { if( $item->get_total() < 0 ) { ?> <tr> <td class="label"><?php echo $item->get_name(); ?>:</td> <td width="1%"></td> <td class="custom-total"><?php echo wc_price($item->get_total() + $item->get_total_tax() ); ?></td> </tr> <?php } } }
Forum: Plugins
In reply to: [Meta Box - WordPress Custom Fields Framework] Product Categories Meta?I tried the above to add meta boxes to Woocommerce product categories but no luck…. is it possible?
Forum: Plugins
In reply to: [WooCommerce] wp_woocommerce_session_activity vs wp_woocommerce_sessionsThere isn’t a “Clear All” button…. but what is the wp_woocommerce_session_activity table for? I cleared sessions and trainsients and expired transients. But wp_woocommerce_session_activity is still full. Wonder if this large table affects performance at all.
Forum: Plugins
In reply to: [WooCommerce] Anaytics Menu Missing from AdminFixed. I found another plugin that was using add_submenu_page option and that was causing Analytics menu to be bumped out.
Forum: Plugins
In reply to: [WooCommerce] Anaytics Menu Missing from AdminSorry – got side tracked. I don’t have that side menu in my woo-commerce install.
I have the same issue using the latest version.
I downgraded to Version 1.19 and it works.
Latest version of WOO.- This reply was modified 3 years, 2 months ago by dailce.
I just made a ticket. Also seeing this error now…
Errors:
2020-10-26 12:43:55: Error occurred while updating SpamFireWall local base. Error: SERVER_ERROR NO: 10 MSG: Calls limit exceeded, method name 2s_blacklists_db().also just told your plugin is blocking the woocommerce app (phone app that gets order info). Was also on chat with shipstation they gave me the ip’s, I entered them under “SpamFireWall” they show up with a /32 at the end. But Shipstation is still blocked. When I deactivate your plugin shipstation connects.
I added the domain values example ship2.shipstation.com from the link above to Anti-Spam, but doesn’t work shipstation is still blocked.
I can’t add the value ship2.shipstation.com etc… via my cleantalk account under the “SpamFireWall” tab only allows ip’s???
or do I have to install the cleantalk firewall plugin too? I’m already running wordfence? Can both be run at the same time?
- This reply was modified 3 years, 5 months ago by dailce.
Forum: Plugins
In reply to: [WooCommerce] What is wc_product_block_data?Bump. Why is it there. I removed it using
add_action(‘wp_footer’,’wooexperts_remove_block_data’,0);
add_action(‘admin_enqueue_scripts’,’wooexperts_remove_block_data’,0);
function wooexperts_remove_block_data(){
remove_filter(‘wp_print_footer_scripts’,array(‘Automattic\WooCommerce\Blocks\Assets’,’print_script_block_data’),1);
remove_filter(‘admin_print_footer_scripts’,array(‘Automattic\WooCommerce\Blocks\Assets’,’print_script_block_data’),1);
}Forum: Fixing WordPress
In reply to: Changing table wp_postmeta for better performance?Guess I’ll leave it alone then. You say “Using InnoDB as the storage engine is also a good idea. However, please note that the post_id column requires its own BTREE index.”
What do you mean? What do I need to do to accomplish this?
Forum: Plugins
In reply to: [Invoices for WooCommerce] Only show header on page 1?Also the product table header shows on subsequent pages, any way to change that?
One last question, How can I change the sort/order of the products?
Yikes. Sorry may just be me. alg_product_regular_price instead of alg_product_price
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] Feed In Processing QueWas working for me a couple days before updating, I had to turn off wordfence, maybe send them an email for support on how to bypass it? Whitelist your plugin somehow?
Any way, can’t process the feed anymore even with wordfence turned off. Keeps failing, only have 6 products.
Forum: Plugins
In reply to: [WPS Hide Login] Bug with WoocommerceAny idea when this will be fixed. Basically when a user logs out of woocommerce the cart contents do not get cleared. After numerous testing I think it is your plugin causing the issue. Any idea how to fix it?