Vivek Athalye
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: For Three Days > “There is a pending change of your email to”This is to confirm that the steps mentioned by Mike D (@mrmikedavis) worked for me.
Btw, I also agree with his opinion about the other thread.
Dave (@5point),
The DB entry that you are referring is actually to update theEmail Address
available underSettings > General Settings
. Whereas the database entry that Mike is referring is to update theEmail
underUsers > [admin user id] > Edit
.I’ll need some time to try that out. Will let you know if I face any issue.
Ok.
Can you (your development team) add a filter like:
$customer_orders = apply_filters('wcmp_vendor_dashboard_vendor_orders', $customer_orders, $vendor->id, $start_date, $end_date);
just before:
if (!empty($customer_orders)) {
inside
function wcmp_vendor_dashboard_vendor_orders_endpoint()
, so that we get more control on which orders are displayed in dashboard.I have forwarded this to our development team, so they can assist you better with the hook and filter you may use for this.
Any update from your development team?
Let me get in touch with our developer so that they can help with this flow
Did you get any update from your developers?
I tried adding a filter inside
WCMp_Vendor_Order_Page
class (class-wcmp-vendor-order-page.php
file that you referred earlier) to manage the list of orders getting displayed, and the changes are getting reflected on/wp-admin/admin.php?page=dc-vendor-orders
page. But these changes are not getting reflected on/wcmp/vendor-orders/
page. Looks like the/wcmp/vendor-orders/
page is handled by some other class. Any idea?
(If I’m not wrong it’svendor-orders.php
file but as I mentioned in my first post, I’m not able to find out how / where$customer_orders
variable is populated)I’m not sure if I understand you correctly.
The link that you shared (class WCMp_Vendor_Order_Page) has following code that gets the orders to display. (https://github.com/dualcube/dc-woocommerce-multi-vendor/blob/master/classes/class-wcmp-vendor-order-page.php#L204-L209)
$vendor_orders_array = $vendor->get_orders(); if (!$vendor_orders_array) $vendor_orders_array = array(); $_orders = array_unique($vendor_orders_array); if (!empty($_orders)) {
I’m not seeing any filter that I can hook into to modify the orders that are used. Nor could I find any such hook inside
$vendor->get_orders()
.So are you suggesting me to modify the code in this file as per my needs? I guess that will be a really bad idea from maintenance perspective. Isn’t it?
If you are suggesting something else, can you please elaborate (with specific code samples / references)?
There is one table
wp_wcmp_vendor_orders
that has information like order_id, vendor_id, commission_id and other details. Why not use this to fetch the orders of a vendor?Some more info:
As I understand the Vendor Dashboard > Orders shows only those orders for which commission is created (post_type=’dc_commission’). And these posts are created only when order status is set to either ‘completed’ / ‘processing’. In my earlier scenario I had set the status of one of the two orders to processing manually (temporarily) and that’s why it was getting listed. But for other order I did not change the status and hence it was not getting listed.
Now here is my requirement:
When a new order is created, based on some conditions I set the order status to my-custom-sts (kind of on-hold, the customer hasn’t paid yet). At this time vendor must get notified and needs to take some action on the order. At this time I don’t want to calculate the commission as such because the customer hasn’t paid yet. But still the order should get listed on Vendor Dashboard.
How do I achieve this?
In order to remove the sidebar from the vendor shop page, override archive-product.php file in your current theme folder and remove sidebar if the page is vendor shop page. You can check if it is a vendor shop page using is_tax(‘dc_vendor_shop’) function.
Ok. Thanks. Will handle it that way.
The response might get delayed as our office is closed due to Holidays and we will reopen on 2nd January 2018
OOPS. 2nd Jan?? OK ??
Thank you for your reply. But …
WC Marketplace by default provides three different templates for the vendor shop page. Admin can select them via WCMp >> Settings >> Vendor >> Vendor Dashboard.
I’m aware of these 3 templates and those are good. But these template control what is displayed inside #content div on the page. I’m talking about the overall page template. So in my specific case the default page template (page.php in theme folder) displays a sidebar, which I don’t want to show up on Vendor page. How do I do that? Is there an easy way / setting?
WC Marketplace use WooCommerce;s tax flow. Hence, the tax will either be calculated as per customer’s address. So, admin has to define the tax rule for each state, you can follow the documentation here – https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/
Now, if the admin sets that the tax will be calculated as per customer’s state, then at the time of checkout woocommerce will check the state of the customer and will apply the tax as per that.
I’ll go through that document again but here is my understanding:
In single vendor scenario: if my shop is located in a state ABC, then I define 2 rates in a tax class. One for state ABC (say X %) and other for rest of the states i.e. * (say Y %). Here I’ve hardcoded ABC inside the tax rate because its the only vendor that we have. So when a customer places an order, his state will be compared against the hardcoded ABC (which is the state of the vendor) and then appropriate tax rate (X % / Y %) will be used for further calculation.
In multi vendor scenario: I can not hardcode ABC in the tax rate because different vendors will be from different states. So how do I define the tax rate X % (which should get applied only if the vendor and buyer are from same state)?
I am afraid, we don’t have any such API doc. However, you can visit our GitHub repository to look into our codes:https://github.com/dualcube/dc-woocommerce-multi-vendor
Ok. Better I’ll go through the local copy of the code ??
In our next update, we will try to make the navigation more user-friendly
We will definitely look into this and if possible we will add the option to display the file in our future update.
Thanks for consideration.
I liked the idea that fee should be calculated based on sale price + shipping cost. I mean there should be an option to admin to select how the fee should be calculated.
There could be some vendors who might go to an extent of selling FREE products (sale price 0) at the cost of shipping charges (I know few such offers on some sites) and then the admin will get no commission if the fee is calculated only on sale price.
Ok gr8. I wasn’t aware of that filter. Thanks for the info. Works fine.
I’ve sent you the code. Please check your email.
I’ve a similar issue.
My WP version is 4.7.3 and WC version is 3.0.6
Theme is Twenty Seventeen.I’ve enabled
COD
andBACS
from settings. I can see these 2 options oncheckout
page. But both of them are disabled and so isPlace Order
button. In fact the completeYour Order
section is disabled / grayed out (even after filling in all the fields forBilling details
).As mentioned @ https://theme.co/apex/forums/topic/woocommerce-place-order-button-not-working-in-checkout-within-integrity-xtheme/
if I add following CSS thenYour Order
section gets enabled..woocommerce-checkout .blockUI.blockOverlay {
z-index: -1 !important;
}This suggests that there is
.blockOverlay
that is displayed on top ofYour Order
section and disabling / graying out everything.I assume when all the details are filled in, it should get removed; allowing user to select payment option and place order. But that’s not happening. Can someone suggest why so?