deviato
Forum Replies Created
-
Add this to your theme functions.php:
add_action('admin_head','hideVT'); function hideVT(){ echo '<style>#wp-admin-bar-villatheme{display:none}</style>'; }
Forum: Plugins
In reply to: [Smart PayPal Checkout For WooCommerce] Error when using PW Gift Cards codesThank you!
It works perfectly now!Thank you so much, also for the quick response. It works great now!
Forum: Plugins
In reply to: [PW WooCommerce Gift Cards] Export Order (meta key)@webinetannette I’ve found a solution in a support post of that plugin. You should create a custom field with a code snippet. You can find it here, in the 5th block: Link.
Anyway in my opinion it would be better and cleaner if pimwick included in the order the meta values for the discounted amount and the used code, in the same way as the woocommerce core system does with coupons.Forum: Plugins
In reply to: [Stock Locations for WooCommerce] Admin Out-of-Stock on Variable ProductsA similar thing happens when a customer runs out all variations, and the parent is not updated remaining as available. To fix this, edit the file src/helpers/helper-slw-order-item.php adding the first line of code in the “if” statement already present at line 136:
// allow other functions to deduct WC stock on the main variation product if( $mainProduct->get_type() == 'variation' ) { SlwProductHelper::update_wc_stock_status( $mainProduct->get_parent_id() ); do_action( 'slw_allow_variation_product_stock_reduce', $mainProduct->get_parent_id() ); }
Forum: Plugins
In reply to: [Stock Locations for WooCommerce] Admin Out-of-Stock on Variable ProductsI have 2 fixes to integrate for this and another related issue.
1. In file src/classes/class-slw-stock-locations-tab.php, at line 305, the system should update the parent stock status after updating the variations, so add the last line after the loop:foreach( $product_variations as $variation ) { $variation_id = $variation['variation_id']; $this->update_product_meta($variation_id, $product_stock_location_terms, $terms_total); } SlwProductHelper::update_wc_stock_status( $post_id );
2. At line 388, the system updates the stock status only if there are terms, but it should update also if we remove all quantities, so I’ve commented out the “if” statement:
// Check if stock in terms exist //if( ! empty( $product_terms_stock ) ) { // update stock status SlwProductHelper::update_wc_stock_status( $id, array_sum($input_amounts) ); //}
Forum: Plugins
In reply to: [Stock Locations for WooCommerce] Location priority for stock deductionI can confirm that the priority system does not work for now, the quantities are always scaled following the alphabetical order of location names.
So the only way I’ve found to temporarily fix it is to rename the locations by prefixing them with numbers, for example 1-London, 2-Glasgow, etc.