fbpx

WC coupon discount options not showing in WCMp vendor dashboard.

WCMp Core

WC coupon discount options not showing in WCMp vendor dashboard. Open

Viewing 13 reply threads
  • Author
    Posts
    • #116012
      Alex2155
      Participant

      Hi,
      WC coupon discount options not showing in WCMp vendor dashboard. Even when creating them by the admin, they don’t show in WCMp vendor dashboard.

    • #116020

      Hello,

      Thank you for reaching out tos us.

      We have tested the coupon section on vendor dashboard and it is working fine as you can see here https://prnt.sc/100uock

      May I know if you have checked marketplace plugin with WooCommerce and standard theme (storefront/twenty). Please deactivate all your plugin, except WooCommerce and WCMp + addon. You can then check the flow. If everything is working fine, in order to detect which plugin is causing conflict- please activate each plugin consecutively and check the flow.
      Similarly, for theme conflict- please deactivate the current theme and check with standard WooCommerce theme (storefront/twenty) It is suggested to please perform these tests on your staging website and keep us posted with the outcome.

    • #116110
      Alex2155
      Participant
      This reply has been marked as private.
    • #116236

      Kindly share the admin, vendor access of clone staging site and FTP access.
      While sharing the access, please mark the reply as private.

      • #116307
        Alex2155
        Participant
        This reply has been marked as private.
      • #116308
        Alex2155
        Participant
        This reply has been marked as private.
    • #116264
      Alex2155
      Participant
      This reply has been marked as private.
    • #116242
      Alex2155
      Participant
      This reply has been marked as private.
    • #116306
      Alex2155
      Participant
      This reply has been marked as private.
    • #116375
      Alex2155
      Participant
      This reply has been marked as private.
    • #116384

      Hi,
      As per our default flow from the vendor dashboard >> add coupon >> Discount type option is only Fixed product discount. and if you using the WCMp AFM plugin then vendor also use the Percentage discount type.

      Kindly Checkout the video – https://www.loom.com/share/b241280399a04aa3a34c094e542ca92e

      Regards,

      • #116922
        Alex2155
        Participant

        You have not provided a satisfactory response yet. Will you unblock the coupons’ WP back-end functionality that is coded and provided by WooCommerce or not?

    • #116391
      Alex2155
      Participant

      The options should be available using the backend dashboard. AFM is for the frontend manager (your code). Backend is WP/WC and should not be blocked by your code. With backend, your code adds no functionality, functions simply passthrough from WooCommerce. WooCommerce functions should not be blocked to make WP/WC community pay you for functionality that is provided by default by WooCommerce.

    • #117106

      @Alex2155, sorry for the inconvenience.

      Can you please confirm whether you need a percentage coupon type in the vendor’s backend as well. We will wait for your reply.

      • #117187
        Alex2155
        Participant
        This reply has been marked as private.
    • #117373
      This reply has been marked as private.
      • #117413
        Alex2155
        Participant

        Thank you.
        Please keep me informed on progress and note that I will need to update the production site when your team are finished with the dev site.

        Regards,
        Alex Ibarcena

    • #117442

      @Alex2155, as this requires custom code, hence this requires some time. We will keep you posted.

    • #117474

      @Alex2155, you haven’t shared the password of the ftp access.

      Please do add the code in the function.php of the current active theme to add percentage coupon in backend :

      $current_user = wp_get_current_user();
      if(is_user_wcmp_vendor($current_user)){
          add_action('init', function(){
              global $WCMp;
              if($WCMp != null && isset($WCMp->coupon)){
                  remove_filter('woocommerce_coupon_discount_types', array($WCMp->coupon, 'coupon_discount_types'));
                  add_filter( 'woocommerce_coupon_discount_types', function( $coupon_types ){
                      $current_user = wp_get_current_user();
                      if( is_user_wcmp_vendor($current_user) ){
                          $to_unset = apply_filters( 'wcmp_multi_vendor_coupon_types', array( 'fixed_cart' ) );
                          foreach( $to_unset as $coupon_type_id ){
                              unset( $coupon_types[ $coupon_type_id ] );
                          }
                      }
                      return $coupon_types;
                  });
              }
          });
      }
      Copy
Viewing 13 reply threads

Please LOGIN to reply to this topic

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price