Banner Logo

Flash Sale: 20% Off to Celebrate Leap Year!

Enjoy 20% Off!

Coupon code:

LEAP20

Check-out page change

MultivendorX

Open
Viewing 18 reply threads
  • Author
    Posts
    • #197487
      Picflick
      Participant

      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

    • #197492

      @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.

    • #197561
      Picflick
      Participant

      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

    • #197571

      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
    • #203407
      Picflick
      Participant
      This reply has been marked as private.
    • #203543

      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.

    • #203550
      Picflick
      Participant

      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.

    • #203556

      @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.

    • #204247
      Picflick
      Participant

      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

    • #204276

      @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
    • #214551
      Picflick
      Participant

      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

    • #214571

      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.

    • #214820
      Picflick
      Participant

      So how do we get the wizard to work on first-login?

    • #214852

      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.

    • #215428
      Picflick
      Participant

      Hi. Please share an update on the progress for resolving this please

    • #215429
      Picflick
      Participant

      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?

    • #215455

      @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.

    • #215527
      Picflick
      Participant

      @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

    • #215546

      @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.

Viewing 18 reply threads

Please LOGIN to reply to this topic