Sort by promo code used woocommerce admin panel [closed]
After research I ‘ve found a plugin at this adress: https://github.com/bekarice/woocommerce-filter-orders
After research I ‘ve found a plugin at this adress: https://github.com/bekarice/woocommerce-filter-orders
As your question is too broad and you do not specify what they should be allowed to access the answer is also broad. you can modify the role system with the “user role editor” plugin. https://de.wordpress.org/plugins/user-role-editor/ It’s for setting specific rights for user roles like for Admin, subscriber or even shop roles in woocommerce. If … Read more
Found a resolution. The problem was that I had based the calculated rates based upon the class. Switched it to based on the line item, the rates are being calculated correctly,
Sorry to hear you are getting the “Error while sending QUERY packet’ message. The best we can tell, this has to do with the max_allowed_packet_size. This should be able to be set via the php.ini file. You may find more information at this post regarding the issue. Source: Branex
Perhaps you could use some jQuery and admin-ajax to do the trick. You would also need to use one of the WooCommerce checkout field filters to add the university select field to the checkout form. If you’re feeling adventurous, you could add a custom end point and use the WP REST API instead of admin-ajax. … Read more
I have found the answer by override the shipping tax filter // 0% and 21% tax producdts added combined to the cart needs to have 21% shipping tax add_filter(‘woocommerce_shipping_packages’, ‘override_woocommerce_shipping_packages’); function override_woocommerce_shipping_packages($packages) { $shipment_needs_tax = false; foreach ($packages[0][‘contents’] as $cartitem) { if (!empty($cartitem[‘data’]->tax_class)) $shipment_needs_tax = true; } if ($shipment_needs_tax && empty($packages[0][‘rates’][‘flat_rate:3’]->get_taxes())) { $shipcost = $packages[0][‘rates’][‘flat_rate:3’]->get_cost(); … Read more
Upon inspecting of the source code of the plugin we’re using (WooCommerce Multicurrency) I found this solution: WOOMULTI_CURRENCY_Data::get_ins()->set_current_currency($_POST[‘wmc-currency’]); However, I would love if there was a more straightforward native way using woocommerce.
Maybe there is a way of doing this, but briefly scanning through the relevant functions suggests that I basically have no control over the item being removed, or the call to wc_add_notice to mark is as removed. As such I ended up with the following fairly simple, but slightly ugly method: add_action(‘woocommerce_cart_item_removed’, function($key, $cart){ // … Read more
I’ve figured it out how to do it on my custom admin page. You can use default wordpress classes and get variable trickery like so: <?php if( isset( $_GET[ ‘tab’ ] ) ) { $active_tab = $_GET[ ‘tab’ ]; } // end if ?> <h2 class=”nav-tab-wrapper”> <a href=”https://wordpress.stackexchange.com/questions/350785/?page=sandbox_theme_options&tab=display_options” class=”nav-tab <?php echo $active_tab == ‘display_options’ ? … Read more
I’d look at your error.log file just after you access the admin page. I’d suspect that there is a plugin code that is failing on the admin page. The error log might point you to the culprit. Alternately, you could disable recently added/updated plugins by renaming that plugin’s folder (in wp-content/plugins folder), which will effectively … Read more