With woocommerce I am using Dokan plugin and I am trying to display the vendor name, rating and vendor location on single product pages. I tried this code to display vendor name but no luck: Any help is appreciated. Answer I don’t use dokan plugin. Here is the way to get the (post) author ID and to make your code
Tag: woocommerce
Display a custom notice before all default notices in Woocommerce checkout page
I use the following below code for show custom message to un-logged woocommerce users (visitors) in checkout page top code recive this forum, from mr @loictheaztec my before question link below: Display a custom message for guest users in Woocommerce checkout page I would like to change woocommerce_before_checkout_form in code for move my message to top (first) in checkout page.
Use custom meta data in a WC_Product_Query on Woocommerce 3
I used to use the standard wordpress WP_Query to fetch woocommerce products based on meta data. My products are tracks and have many meta columns (like genre, instrument, mood, etc). Using WP_Query I can create a meta_query based on user input from a form, that searches for products that meet the meta requirements. All of this works great. Now I
Change percentage decimal precision in Woocommerce deposits plugin payment plan
I’m using the Woocommerce Deposits plugin. It uses percentages to calculate the deposit and payment. I need the deposit and payment to be an exact amount. I can calculate the exact percentages to give the exact amount but the plugin does not allow decimal points for the percentages. It rounds up or down to a whole number. Example: I need
Ajax add to cart button for product variation in WooCommerce 3
I have this button here. The use of this button is to add to cart a product has a product id of 237, variation id of 208673, and attribute_pa_option of bluetooth. Is there a way to AJAX this?
Get the author ID of each product in Woocommerce cart
In woocommerce, I need get the user ID of each product within the cart, The user ID isn’t from the customer, but is the user who created and published the product that is currently in the shopping cart (the author post). I have this code that I got here: WooCommerce Get Order Product Details Before Payment in Plugin code shared
Get the user email in Woocommerce “New account” email notification template
In Woocommerce I am trying to customize the “New account” email notification template changing the texts. Currently the default template shows the username but intead I want it to show the user email….
Round up cart total Woocommerce
I need to round up prices on my Woocommerce cart. It rounds up to 1. For example: If the total price of the cart is $40.85, I need the cart to show $41.00. I tried with this command but the price discount this 0.15 and I do not know how to do it. I found this in other sites but
WooCommerce product additional information shortcode
I am new to WooCommerce and am looking for a solution to display Product attributes on a post page. I’ve made research and some test but nothing seems to work. Ideally, I would like to use a …
Sorting order items by SKU in Woocommerce
I am trying to order the products by sku within an order in an email in Woocommerce. I have not had any luck with the following code. Some help? Thanks since now! add_filter( ‘…