MultivendorX
Tagged: checkout, vendor subscription
-
AuthorPosts
-
-
October 25, 2023 at 1:17 PM #197487PicflickParticipant
Hi,
I would like to have a different check-out page for when my vendors complete the subscription sign-up. Currently it directs to https://picflick.co.za/checkout/order-received/… (https://ibb.co/fGcLFkw). I assume that this is the same one for when a customer checks out with a product?
Please advise.
Thanks -
October 25, 2023 at 5:45 PM #197492Sangita Support SquadKeymaster
@Picflick, our membership plans are also WooCommerce Product.
That is why, just like WooCommerce, after registering for a subscription plan the users get redirected to the same checkout as the woocommerce products.
Now if you want to add custom checkout for subscription plans then you will have to do that via adding custom code on your end.
-
October 27, 2023 at 10:52 AM #197561PicflickParticipant
I know. But they are completely different personae so you should have a different journey.
Anyways, I need to know what the filepath is for this webpage.
Also, what is the code to redirect someone to a new webpage after they have signed up. I will create this under ‘Pages’. Please provide short line of code -
October 27, 2023 at 6:00 PM #197571Sangita Support SquadKeymaster
Kindly add the below code in the functions.php file of your current active theme –
add_action('init', 'remove_checkout_url'); function remove_checkout_url() { global $MVX_Vendor_Membership; remove_filter('woocommerce_add_to_cart_redirect', array($MVX_Vendor_Membership->frontend, 'add_to_cart_redirect')); } add_filter('woocommerce_add_to_cart_redirect', 'add_redirect_url'); function add_redirect_url($url) { $product_id = isset( $_REQUEST['add-to-cart'] ) ? (int) $_REQUEST['add-to-cart'] : 0; if ( ! $product_id ) { return $url; } // If product is of the subscription type $product = wc_get_product( $product_id ); if ( $product->get_type() == 'product_pack' ) { // here put the page url of your custom checkout page $url = get_permalink(wc_get_page_id('myaccount')); } return $url; }
Copy -
November 2, 2023 at 1:36 AM #203407PicflickParticipantThis reply has been marked as private.
-
November 2, 2023 at 6:22 PM #203543Sangita Support SquadKeymaster
Kindly share with us a little piece of information if you are testing this for logged in users or non logged in users.
Because as per our default flow we do not redirect a user to the vendor dashboard until they become a vendor on the website.
Also according to the membership flow, after successful completion of the purchase of the plan the user becomes a vendor and then gets redirected to the vendor dashboard.
We will wait for your reply. -
November 3, 2023 at 1:11 AM #203550PicflickParticipant
Well after they perform the payment they are still logged it. Our flow is that they will be a pending vendor. I want them to be redirected to a page where the text says “You are a pending vendor and please wait for your application to be approved”. I wanted to achieve this by editing the invoice page, but you said to me it is a standard woocommerce page. So then I tried to create my own custom page but your code did not work. So then I saw that if they try access the /mvx-dashboard page whilst still a pending-vendor it shows them “Please wait to be approved”. So please help me achieve this.
-
November 3, 2023 at 12:18 PM #203556Sangita Support SquadKeymaster
@Picflick Sorry for the confusion earlier.
Kindly confirm if you are looking for the below mentioned flow
The vendors registering with a subscription plan will get registered as pending vendors and after the thank you page they will get redirected to some other page instead of the vendor dashboard. -
November 11, 2023 at 7:10 PM #204247PicflickParticipant
The vendors registering with a subscription plan will get registered as pending vendors and after the thank you page they will get redirected to some other page instead of the vendor dashboard AND logged out
-
November 13, 2023 at 1:29 PM #204276Sangita Support SquadKeymaster
@Picflick Kindly add the below code accordingly on the function.php file of your current active theme and check –
add_action( 'template_redirect', 'template_redirect_func' ); function template_redirect_func() { $user = wp_get_current_user(); if (is_user_logged_in() && is_vendor_dashboard()) { if (isset($user->roles) && is_array($user->roles)) { //check for vendor if (in_array('dc_pending_vendor', $user->roles)) { // redirect them to the default place $url = 'google.com' ; //put your redirect link here// wp_redirect ( $url); } } } }
Copy -
November 29, 2023 at 5:57 PM #214551PicflickParticipant
This code did not work.
Lets go through this again:
Problem 1 is that when a subscriber has completed the sign-up process they are marked as pending-vendor and we need to notify them of this. The standard invoice page shows generic information and I want to edit it. You told me that I cannot edit the page and the code you provided above does not redirect them to the dashboard. So what do I do?!
2nd problem is that when we approve the vendor and they access the dashboard they are not presented with the set up wizard (you mentioned it is because of they are logged in or something). This is not acceptable guys, it has to work.
Happy to schedule a zoom/teams call to discuss and solution together
-
November 29, 2023 at 7:07 PM #214571Sangita Support SquadKeymaster
Our replies are inline with your queries –
Problem 1 is that when a subscriber has completed the sign-up process they are marked as pending-vendor and we need to notify them of this. The standard invoice page shows generic information and I want to edit it. You told me that I cannot edit the page and the code you provided above does not redirect them to the dashboard. So what do I do?!
>>The flow you are looking for the vendors with Membership packs is not the supported flow.
Now kindly let us know about the step by step custom flow that you are looking at on your end so that our team can check how much customization is needed to implement that.
2nd problem is that when we approve the vendor and they access the dashboard they are not presented with the set up wizard (you mentioned it is because of they are logged in or something). This is not acceptable guys, it has to work.
Happy to schedule a zoom/teams call to discuss and solution together
>>Being a WordPress plugin and built on PHP, it’s important to note that the desired flow involves sending a query to the server each time a vendor logs in. This query checks whether the vendor has a role of pending vendor or vendor. However, this approach creates a significant load on the server, and it’s not recommended due to its potential impact on performance. -
December 5, 2023 at 12:16 AM #214820PicflickParticipant
So how do we get the wizard to work on first-login?
-
December 5, 2023 at 4:46 PM #214852Sangita Support SquadKeymaster
In the standard process, once a vendor is logged in and has received approval from the admin, they won’t be redirected to the store setup wizard. Instead, they will directly access the vendor dashboard. The redirection to the store setup wizard will occur only once, following the initial login by the vendor.
However, If you want to change the default flow for the vendor store set up on your end then you will have to achieve that via adding custom code on your end.
Also I have informed the dev team about the modification you are looking for in the store setup flow.They will look into this and take further decisions regarding the same. You can keep track of the enhancement from here https://github.com/multivendorx/MultiVendorX/issues/585.
-
December 24, 2023 at 7:53 PM #215428PicflickParticipant
Hi. Please share an update on the progress for resolving this please
-
December 24, 2023 at 8:16 PM #215429PicflickParticipant
Why cant they just navigate to: https://picflick.co.za/dashboard/?page=vendor-store-setup once approved. Is this an old page from wc-marketplace?
-
December 26, 2023 at 1:00 PM #215455Sangita Support SquadKeymaster
@Picflick I have informed the dev team for the enhancement that you are looking for on your end. They will take further decisions regarding this as per the mass request from our users.
-
December 28, 2023 at 10:48 AM #215527PicflickParticipant
@sangita @moumita I understand, and appreciate that you have referred it to the dev team. However, I need a solution now! I have a live website that is using your plugin (that I have been paying for a while now) that has a defective journey.
Surely I am not the only one which is experiencing this issue! Pending vendors and setup wizards are default functionality you provide YET they dont work together. Can you please escalate and accelerate this. If not, then help me find an interim solution please.
You keep on asking me to provide a 5/5 star rating for support… yet how do you expect me to with the amount of issues I have been experiencing and up and down messages since October
-
December 28, 2023 at 1:35 PM #215546NerdySupportExpert MoumitaKeymaster
@Picflick, We truly appreciate your suggestion. With over 10 years in the multivendor business, we haven’t received requests for this particular flow from our users. While we understand its importance to you, we currently find it challenging to see the widespread need for this flow among other marketplace owners.
It’s not a matter of dismissing your idea, but rather, we cannot make promises regarding something whose technical feasibility remains uncertain.
Thank you for your understanding.
-
March 27, 2024 at 4:48 PM #218591Sangita Support SquadKeymaster
It’s been long and we have not heard back from you. We presume your query is resolved now. We are closing this thread. If you need help or face issue in future please do create a new support ticket.
-
-
AuthorPosts
The topic ‘Check-out page change’ is closed to new replies.