woocommerce | MyParcel plug-in for WooCommerce | Ecommerce library
kandi X-RAY | woocommerce Summary
kandi X-RAY | woocommerce Summary
Welcome to the WooCommerce MyParcel repository on GitHub. Here you can browse the source, look at open issues and keep track of development. This WooCommerce extension allows you to export your orders to the MyParcel Backoffice. Single orders exports as well as batch exports are possible. :warning: Note: A MyParcel API key is required for this plugin. You can generate one in your Backoffice.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get customer from order
- Get additional options rows .
- Initialize the billing address fields .
- Enqueue admin scripts and styles .
- Save delivery options
- Create default export settings array
- Render the offset dialog
- Creates the shop settings array
- Get the shipping tax class .
- Get formatted label description .
woocommerce Key Features
woocommerce Examples and Code Snippets
Community Discussions
Trending Discussions on woocommerce
QUESTION
I want to show postcode/zip field even for the countries that do not use postcodes/zip on WooCommerce checkout page.
WooCommerce hides postcode/zip field by default for countries that don't use them.
I have used following filter in theme functions.php
but it doesn't work.
ANSWER
Answered 2021-Jun-14 at 19:01You can use the woocommerce_get_country_locale
filter hook, to unhide this by default for all countries.
So you get:
QUESTION
I am adding a price suffix on the WooCommerce single product page (and only there, not in the loop!).
I use the following:
...ANSWER
Answered 2021-Jun-14 at 12:20In your code $woocommerce_loop
is not defined
Instead of the compare, do the reverse and only apply it to an empty value
So you get:
QUESTION
I'm trying to import Wordpress categories from .cvs file. I'm writing a simple app in react and I've got a function:
...ANSWER
Answered 2021-Jun-14 at 08:48.forEach()
isn't aware of the asynchronicity of addCategory
; you'll either have to chain all of those then
s, or preferably just use async
/await
and plain old for loops, which can be used with await
without extra hoops to jump through.
Assuming you want to loop through all of the row_terms
and process them, you'll also need to await
on those promises...
QUESTION
Based on Customize “subsription option” string generated by WooCommerce Subscribe All The Things plugin answer code, this is my attempt:
...ANSWER
Answered 2021-Jun-07 at 17:05This should suffice, basically anything you assign to the $none_string
variable will be displayed
QUESTION
I actually wish to have a custom email when a user signs up on the website.
Here is the existing code:
...ANSWER
Answered 2021-Jun-12 at 15:23I am guessing you want to change the default email template when a user creates a new account.
This email template can be found at : woocommerce/templates/emails/customer-new-account.php
and the line you wish to change is L25 here.
If you go through the documentation Template structure & Overriding templates via a theme you will see.
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.
Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php
What you have to do is to copy the contents of customer-new-account.php
and inside your theme ( preferably child theme because of this ) create a file here wp-content/themes/yourtheme/woocommerce/emails/customer-new-account.php
and update the line 25 as such.
QUESTION
I wrote a function that disables the ordering button when additional fields (with display in cart) in each of the products have not been completed (fields appear only if there are more than 2 items in the cart).
...ANSWER
Answered 2021-Mar-12 at 11:23In your case, to avoid checkout, use instead woocommerce_checkout_process
dedicated hook like:
QUESTION
ANSWER
Answered 2021-Jun-11 at 10:49"I already tried to echo an and inserted this into wc-template-functions.php"
Never edit core files!
When you modify a plugin’s core files you run the risk of breaking the plugin and possibly your WordPress installation. In addition, it makes it impossible for the plugin developer to provide support for you since they have no knowledge of what you’ve changed.
Use instead the woocommerce_after_shop_loop_item
action hook in combination with has_term()
QUESTION
I am using the following code https://www.businessbloomer.com/woocommerce-calculate-sales-coupon-code/ that allows me to display the total amount of sales generated by a given coupon code in a new tab on WooCommerce "Reports".
...ANSWER
Answered 2021-Jun-11 at 10:04In your code the manage_edit-shop_coupon_columns
filter hook is missing, which allows you to create a new column on WooCommerce admin coupon list.
The manage_shop_coupon_posts_custom_column
action hook then allows you to add content to the new column.
So to display the total amount of sales generated by coupon in a new column on WooCommerce admin coupon list, use:
EDIT:
After I posted my first answer, I realized that the more orders you will get, more is going to be heavy… and a direct SQL query would be much lighter.
Because you don't have to reinvent the hot water, I found in Display custom data on Woocommerce admin coupon edit pages answer code the perfect solution.
New answer:
QUESTION
I am trying to change some titles on the WooCommerce checkout page.
One of the titles is "Billing details"
I've tried:
...ANSWER
Answered 2021-Jun-10 at 18:42Change switch ( $translated_text ) {
with switch ( $text ) {
in your code.
This is because $text
contains the original (undertranslated) text while $translated_text
contains... the name of the variable already indicates it.
Or use
QUESTION
Total newbie to web development here. I have a Wordpress site where I am using a child theme of the parent theme Go. As part of my site's customer sign up process I have a page with an html form containing a 'select all' survey question with several checkbox inputs. I am experiencing an issue where these checkboxes are not displaying in the form. When I inspect the page in my browser (Chrome) I can see the checkboxes are there, just not appearing.
Here is a link to the page in question: http://www.growopps.net/test/sign-up-3/
I am using CSS in the section of my html. I recently tried putting a border around the checkbox inputs just to see if any of my CSS for the checkboxes was taking effect, but it hasn't; Here is the page's code:
...ANSWER
Answered 2021-Jun-10 at 15:06On line 462 of your stylesheet "style-shared-min.css" the opacity is set to 0 for both input[type=checkbox] and input[type-radio]. If you remove this line, they should show up.
Edited to add - In your CSS that you provided, add in the following rule for opacity:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install woocommerce
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page