Yeso Akshith
Forum Replies Created
-
Hi
Thank you for quick response. Works great.
Regards
Yeso Akshith
Designated Partner
WebyTechsHi
-By default WooCommerce automatically cancels all the pending order after 60 minutes over
That is only when the order status is pending payment order.
Most of the payment gateway plugins keep the order “on Hold” so that it doesn’t cancels out the order unless the vendor cancels it.
I have seen few other UPI plugins and they go with an “On Hold” status rather than a “Pending payment” status to avoid auto cancel thing and this seems correct because the customer has made payment with UPI and it may take vendor more than one hour to verify the payment and change the status.
Atleast if we have an action to just keep the status as “on Hold” rather than “pending payment” will suffice.
Thank you
Regards
Yeso Akshith
Designated Partner
WebyTechsHi
Please find the screenshot with the below link
https://drive.google.com/file/d/1Ah2JQYqsUsE-ytce765O8U9_rrLNIa2f/view?usp=sharing
And regarding auto cancel I am getting a notice “Unpaid order cancelled – time limit reached. Order status changed from Pending payment to Cancelled.” and the order status seems to be cancelled.
Sometimes the vendor may forget to change the status or customer may forget to update the details after the payment and there may be disputes between customer and vendor that the payment is made and yet the order is cancelled.
If there can be a filter to stop this happening, that will be great.
Thank you
Regards
Yeso Akshith
Designated Partner
WebyTechsHi
I have deleted and installed it again and I am getting new upi handles successfully.
The misalignment is still existing in twenty twenty theme. I do not see an option to add screenshots in this editor here.
I have also dropped support ticket to Phonepe because this small thing effects the main purpose of UPI. Hope they will reply with a positive comment.
And also is there anyway we can remove the auto cancel thing because sometimes the vendor may forget to change the status or customer may forget to update the details after the payment and there may be disputes between customer and vendor.
Great work.
Thank you
Regards
Yeso Akshith
Designated Partner
WebyTechsWorks like charm ??
So the final code is
add_filter ( ‘wcfm_marketplace_settings_fields_general’ , ‘add_vendor_vpa’ ,20, 2 ); function add_vendor_vpa($settings_fields_general, $vendor_id ){ if( isset( $settings_fields_general[‘store_name’] ) ) { $vendor_data = get_user_meta( $vendor_id, ‘vendor_store_vpa’, true ); $settings_fields_general[‘vendor_vpa’]= array( ‘label’ => __( ‘Virtal Payment address(VPA)/UPI ID’, ‘wc-frontend-manager’ ), ‘type’ => ‘text’, ‘priority’ => 50, ‘class’ => ‘wcfm-text wcfm_ele’, ‘label_class’ => ‘wcfm_title wcfm_ele’, ‘value’ => $vendor_data ); } return $settings_fields_general; }
For people who want to know how to update the field to database use the below code
add_action("wcfm_vendor_settings_update", "update_vendor_vpa", 10, 2); function update_vendor_vpa($user_id, $wcfm_settings_form){ global $WCFM, $WCFMmp; update_user_meta( $user_id, 'wcfm_vendor_vpa_key', $wcfm_settings_form["vendor_vpa"] ); }
Thank you.
add_filter ( ‘wcfm_marketplace_settings_fields_general’ , ‘add_vendor_vpa’ ,20, 2 );
function add_vendor_vpa($settings_fields_general, $vendor_id ){
if( !isset( $settings_fields_general[‘store_name’] ) ) {$vendor_data = get_user_meta( $vendor_id, ‘vendor_store_vpa’, true );
$settings_fields_general[‘vendor_vpa’]= array(
‘label’ => __( ‘Virtal Payment address(VPA)/UPI ID’, ‘wc-frontend-manager’ ),
‘type’ => ‘text’,
‘priority’ => 50,
‘class’ => ‘wcfm-text wcfm_ele’,
‘label_class’ => ‘wcfm_title wcfm_ele’,
‘value’ => $vendor_data
);
}
return $settings_fields_general;So this is the final correct code right?
-Well, there has thousands of such hook/filters.
-No ducumentation yet.You guys are doing a great work and I know how huge the documentation can be, but I guess custom fields for store manager page needs documentation because many beginners will be at ease collecting more store regarding data through store manager.
I appreciate the quick reply.
Thank you.
Hi
Do you mean !isset or just isset?
And also I guess I will have to get the vendor id from the action like
add_filter ( ‘wcfm_marketplace_settings_fields_general’ , ‘add_vendor_vpa’ ,20, 2 );
function add_vendor_vpa($settings_fields_general, $vendor_id )I see that if the below code is used, it is not working from admin store manager.
$vendor_id = get_current_user_id();
I would like to know if there is any documentation regarding this as it will be useful to many people who are searching for this kind of stuff.
Hi
I appreciate the fast response.
You are correct, somehow the tax category didn’t get updated and it was not being calculated.
We were confused because there is an option to select the tax category in the “Create Invoice” page and we were using it and the tax was still 0.
I think you should add a line in the Docs to check if the tax is not being calculated then it must be assigned to a tax category, so that people won’t be playing around with the tax drop down in the invoice page.
Thank you
Regards
Yeso Akshith
WebyTechsHi
Thank you for the reply.
It works.
Forum: Plugins
In reply to: [WooCommerce] Order Number AbnormalSame here, I have tried it in localhost also and it gives me this big difference in order numbers when WooCommerce Admin is activated. I would like to know why there are these many scheduled actions posts.
Forum: Developing with WordPress
In reply to: show_in_menu = “slug” creating access problemsI had to to hook into global $sub_menu and remove all its capabilities to make it display.
Forum: Developing with WordPress
In reply to: show_in_menu = “slug” creating access problemsIf I change the capability in add_submenu_page to “edit_posts” from “edit_slug” then it works but if I change it to “edit_slugs” from “edit_posts” then I am getting the access errors again. I have map_meta_cap true and also have the edits_posts => edit_slugs. but still I get the access error with edit_slugs
Forum: Developing with WordPress
In reply to: show_in_menu = “slug” creating access problemsI can see the page with error
“undefineded offset: 0 in WordPress\wp-includes\capabilities.php on line 127”
When I change the capability in add_submenu_page to “edit_slug” from “manage_slug”. I got rid of access errors and am able to view the post type but the above error keeps popping out.Forum: Plugins
In reply to: [Appointments] Cannot create new appointment from backendWell it was “0” but I have changed it to “1” and then rechanged it to “0” and now it is working.
Anyways thank you for the quick replies.
Forum: Plugins
In reply to: [Appointments] Cannot create new appointment from backendI got the shortcodes page by googling around…
There is an other problem
If I have two service providers SP1 and SP2 and a service of 1Hr for both SP1 and SP2, then when I create an appointment for SP1 on day1 for the common service, I am not able to book the same slot for same service for SP2.
I have disabled all the plugins and tried and also I have tried debug thing and no log file is being created.
Thank you in advance.