dokan | Git clone of SVN repository | Version Control System library
kandi X-RAY | dokan Summary
kandi X-RAY | dokan Summary
Git clone of SVN repository at http://code.google.com/p/dokan/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dokan
dokan Key Features
dokan Examples and Code Snippets
Community Discussions
Trending Discussions on dokan
QUESTION
Im wondering how to improve my code below. It's fully 100% working but I want to use ajax in order that we can prevent the page from reload after adding a products to cart.
The code below adds two buttons to add directly 6 or 12 items to the cart. But if I click a button then the page reloads. How can I do that better with ajax?
...ANSWER
Answered 2021-Nov-18 at 21:40On all your products you already have button that adds items to a cart, give them a class (e.g add-to-cart) and add another attribute to it data-id.
QUESTION
there is a plugin called "Dokan Vendor Info Hider – Hide Vendor info from Store-list and store page " that has not been updated for a long time and does not work. Is there another solution?
...ANSWER
Answered 2021-Oct-03 at 09:40If you want to hide Dokan vendor info, you need to use this code in your theme’s functions.php file –
QUESTION
We want to show the Store Name, Vendor name and Vendor Contact Details from an order admin order details page.
I'm using WooCommerce show vendor store-name (Dokan) in admin order details overview answer code to display the Store name for each product in the invoice.
Now we want to display Vendor Name and Vendor Contact details.
My attempt:
...ANSWER
Answered 2021-May-13 at 18:27Your issue in this code $store_phone[] = $store_phone;
replace with this $store_phones[] = $store_phone;
QUESTION
We want to show the vendor(s) from a order in the Admin order detail overview. We use some parts from the code below to display the vendor for each product in the invoice. Now we want to display which vendor are in the order actually for admin overview.
- If only items from one vendor is in the order => result: => Vendor(s): Vendor A
- If items from different vendors are in the order => result: => Vendor(s): Vendor A, Vendor B, Vendor C
This is what we have so far:
...ANSWER
Answered 2021-Jan-26 at 14:37I don't use the dokan plugin, but the woocommerce_admin_order_data_after_billing_address
hook contains the order
object as passed variable, not the $product_id
.
So you can obtain the items by loop through the order object, etc.. I believe this should suffice
QUESTION
I have a question about my code below. We use the code from here: Dokan plugin sends multiple email for customer for single order to make sure the system will not send order processing mails to customer for suborder and therefor only for the "parent" order. (This is fully working! => Part 1 in the code below)
Problem: However, we also have to make sure that the order completed mail is not send for a parent order if this order has sub orders. Why? Because after each sub order is completed, the parent order is automatically also marked as completed. And we do not want to send that mail if this parent order is completed.
For that we changes the hook and also the IF statement. But currently, the order completed mail is also send after all sub order are completed. (Part 2 in the code below)
In my understanding, I have to check if the order IS a Parent order and IF yes, don't send the order completed mail. if (get_post_meta( $order->get_id(), 'has_sub_order', true ) ){ return ''; }
UPDATE: I think it's not working because of the used hook woocommerce_email_recipient_customer_completed_order
. For processing mail I use woocommerce_email_recipient_customer_processing_order
and that works.
ANSWER
Answered 2021-Mar-29 at 11:19The main mistake in your code is empty(wp_get_post_parent_id($order->get_id())
on your 2nd code snippet that is not empty when it is a main order that has suborders. In that case the parent order Id has 0
value (so not empty).
Try the following revisited code:
QUESTION
With WooCommerce, I use Dokan Multivendor and want to display the vendor store name of the order in a column. By default Dokan displays the author name of the order instead the store name.
Based on Display vendor store-name (Dokan) on WooCommerce admin order preview, I created this code snippet to do that:
...ANSWER
Answered 2021-Mar-13 at 11:06There are some mistakes in your code. It can be simplified and optimized as follows:
QUESTION
There is Dokan plugin on the site. Now I need to add the vendor_name to each product, like a custom meta field. And I tried to do something like this:
...ANSWER
Answered 2021-Mar-05 at 10:56You can try to running this code on wordpress action and check some query argument so it does not load on normal view. This is one time process which means you can run this script on your own.
QUESTION
In my website i have a product description box, is coming from dokan plugin. I have front end product add form, In that form i have a WP_editor text area. I need to validate it. but i did some research and find some code to validate it but its not working.
If I add the content of the description box its always show the error message.
What I'm doing wrong? please help me. Thanks for your valuable time.😊
Here is the WP_editor Validate code in child theme/funtion.php
...ANSWER
Answered 2021-Feb-19 at 11:49Guys i found a solutions,
after doing big research i found a method to validate WP_editor.
Here is my code in child theme/funtion.php
QUESTION
In WooCommerce Dokan multivendor shop I have Cash On Delivery (COD) payment for customers.
I created a code that counts the vendors in the cart and multiply them with the fee that i want per vendor. on my example is 2 € per vendor. so lets say that we have 1 product of each vendors(for now we have 2 vendors) on the cart. That should be 2 * 2 = 4€ total cost of COD.
That is working perfectly but when I received the order I see the fee only in main order and not in the suborders. it should be 2€ in one suborder and the other 2€ in the other suborder.
That has been working the whole time but since 11.02.2021 it suddenly stopped. Any ideas that could help me ?
Here is the code that I am using:
...ANSWER
Answered 2021-Feb-16 at 09:37The issue is related to Dokan plugin that does not split the fee by suborders anymore in the plugin recent versions. So you should ask Dokan support, to check if it's not a bug introduced on last updates or if it's not a new available setting.
Now your code is outdated and complicated for nothing. It can really be simplified and optimized.
The following code will set a COD fee based on dokan vendors count:
QUESTION
I'm using Dokan plugin for my website. My problem is need to remove extra space between heading & banner (Check screenshot 1). And I find a solution using web inspect tool. If i change the padding-bottom to 0px its working fine.(check screenshot 2). so I try to find that CSS class in my website backend, i found a same CSS class regarding my issue but if I change it not working in my website.
The CSS class in martfury/style.css
...ANSWER
Answered 2021-Feb-09 at 11:46Just try with !important
like given below
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dokan
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