Forum Replies Created
- AuthorPosts
- MarsMarsParticipant
I found it in some tutorials online referring to it
Is there issue with it?
Can you please answer my questions above?MarsMarsParticipantI made a progress but I am not sure if this is completely correct of there is something missing
this is added to the function.php
add_action( 'woocommerce_rest_insert_shop_order_object', 'wcfmmp_checkout_order_processed2'); function wcfmmp_checkout_order_processed2( $order ) { global $WCFMmp; $order_id = $order->get_id(); $WCFMmp->wcfmmp_commission->wcfmmp_checkout_order_processed( $order_id ); }
Please guide if something missing .. also I noticed when the order status is processing I see the refund button but when the order is completed I do not see it this is only with rest inserted orders .. but for orders inserted online it is the other way around
MarsMarsParticipantremoved
MarsMarsParticipantHi,
I am testing using the woocommerce rest api .. so the above is the payload I sent .. this was my question I want to create a customer app and I want to create an order .. when creating the order I do not see it in the vendor panel .. I think I need to do extra thing maybe adding hooks or adding something to the payload json ,, so as a vendor I can see that order in my panle
Regards,MarsMarsParticipantthis is my payload,, I am not sure why I cannot see it in the vendor panel is there something missing in the order post
{ "customer_id": 46, "set_paid": true, "payment_method": "cod", "payment_method_title": "Cash on delivery", "status": "processing", "billing": { "first_name": "Nishant", "last_name": "Desai", "company": "", "address_1": "", "address_2": "", "city": "", "state": "", "postcode": "", "email": "abcd@gmail.com", "phone": "(12) 3456-7890" }, "shipping": { "first_name": "Nishant", "last_name": "Desai", "address_1": "", "city": "", "state": "", "postcode": "" }, "line_items": [ { "product_id": 83, "quantity": 1, "subtotal": "800", "total": "800", "meta_data": [ { "key": "خيارات (100ر.س)", "value": "قصير" }, { "key": "Location", "value": "home" }, { "key": "_vendor_id", "value": "2" } ], "appointments": { "shop_name": "MARIAM", "_appointment_start": 1558859400000, "_appointment_end": 1558863000000 } } ], "meta_data": [ { "key": "client_longitude", "value": 72.8255146 }, { "key": "client_latitude", "value": 21.1933855 } ], "fee_lines": [ { "name": "الدفع نقدًا عند الإستلام", "tax_class": "0", "tax_status": "taxable", "amount": "15", "total": "15.00", "total_tax": "0.00", "taxes": [], "meta_data": [] } ] }
MarsMarsParticipantI did create an order it did not add the vendor info
I can see the order only in the admin panel not the vendor panelMarsMarsParticipantYes I have it in the frontend ,, but I do not see the inquiries in the vendor menu
MarsMarsParticipantthanks 1 workked perfecr
the second I deleted cache and tried private browsing .. its the same .. this is happened after the last update
MarsMarsParticipantthanks 1 workked perfecr
the second I deleted cache and tried private browsing .. its the same
MarsMarsParticipantboth
I asked they told me I should use wc rest API
but I do not know how to get it and they are not providing any details about how partMarsMarsParticipantyes I know
I want to create api thats why I am asking how can I get the dataMarsMarsParticipantalso, I tried to get products list by the vendor
so when I was debugging,, I was wondering if this is correct it always return an error?
in this file: class-wcfmapi-rest-controller.php/** * Get object. * * @param int $id Object ID. * @return object WC_Data object or WP_Error object. */ protected function get_object( $id ) { return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass.", 'wcfm-marketplace-rest-api' ), __METHOD__ ), array( 'status' => 405 ) ); }
MarsMarsParticipantHi
I managed to get 1,3,4 and I think 2 will be done easily
the issue is how can get the total average rating for a single store
also How can I get the detailed ratings in a single store reviewMarsMarsParticipantHi any update with this issue
MarsMarsParticipantHi
I am not using stipe payment .. I have another third party for customers payments .. but vendors withdrawals will be done through bank transfer
Is there a way to call you so I can understand how this works?MarsMarsParticipantI only have two payment methods
cod.. which has to be reversed and Cridet cards that can be withdrawn
I do not understand what do you mean by CC pay and where I can find it?MarsMarsParticipantGreat .. let me know when it is released
MarsMarsParticipantexcellent…
Thanks a lotMarsMarsParticipantI tried this .. it did not work the way I want dokan-lite
and buying pro is not an option
can you tell me which files I need to change to have the same design for store list and store pagesMarsMarsParticipantany update about the vendor store manager app??
MarsMarsParticipantyes I activated the withdrawal and reverse withdrawal
can you elaborate more
if payment is done offline (COD),, it means I haven’t received my commission yet so why the status is paid and in the credit card I received my commission why it is unpaidRegards
MarsMarsParticipantthis is how it looks like
http://ftme.wwwsrc8.supercp.com/salon/mariamss/
http://ftme.wwwsrc8.supercp.com/seller-list/MarsMarsParticipantthanks,
the referral I need it for the whole marketplace not specific vendor
and the referral amount if customer purchased it will be addedd to the wallet - AuthorPosts