Display the vendor shipping methods on vendor dashboard

WCMp Core

Display the vendor shipping methods on vendor dashboard Open

Viewing 40 reply threads
  • Author
    Posts
    • #92438
      itunes_schreiber
      Participant

      Hi,
      I’m trying to display the vendor shipping methods on each vendor shop frontpage.
      I was already able to do this with my custom / extra fields from the vendor dashboard, they will be displayed.
      But I’s not clear how to do this with a non-extra field.

      So an example how the custom fields are displayed (within a popup):

      $vendor_imprint = get_user_meta($vendor_id, '_vendor_imprint', true);
      <a class="pbutton" href="#popup1">Impressum</a>
      <div id="popup1" class="poverlay">
          <div class="ppopup">
              <h2>imprint from <?php echo $vendor->page_title ?></h2>
      	<a class="pclose" href="#">&times;</a>
      	    <div class="pcontent">
      	        <?php echo htmlspecialchars_decode( wpautop( $vendor_imprint ), ENT_QUOTES ); ?>
      	    </div>
          </div>
      </div>
      Copy

      So how can this be done for the shipping methods which each vendor is defining?
      One more thing: It would be great, that for the flat rate shipping also the defined price will be shown.

      Thanks for your assit.

      Regards,
      Lukas

    • #92450

      @Lukas, can you share a screenshot and mention where you want to show the shipping methods, so we can help you out accordingly.

    • #92462
      itunes_schreiber
      Participant

      Hi Moumita,
      thanks for the reply.

      I have attached a screenshot.
      I was able that the “Impressum” (imprint) and the “Bezahlinformationen” (payment options) button will be shown and when I click on it, the information will be displayed which are custom fields from my vendor dashboard as well.

      Now I would need the same for the “Versandoptionen” (shipping methods).
      So when the button will be clicked, it should show the shipping methods for each vendor.
      And it would, as already mentioned, also be great if the shipping costs for the flat rate shipping (if enabled) will be shown also.

      Thanks for the assist.

      Regards,
      Lukas.

    • #92468
      itunes_schreiber
      Participant

      Sorry,
      I had forgotten to attach the screenshot.
      Now you should be able to see it.

      Attachments:
      Attachments:
    • #92472

      @itunes_schreiber, our team is looking into this.

      Kindly provide them some time

    • #92494
      itunes_schreiber
      Participant

      Hi Moumita,

      yes of course. Thank you.

      Regards.

    • #92568

      @itunes_schreiber, You have to override the archive_vendor_info.php (https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/master/templates/archive_vendor_info.php) template file and add this code after line number 43 :

      <?php
                      global $wpdb;
                         //selecting data from database
                         $all_shipping_methods = $wpdb->get_results("SELECT * FROM wp_wcmp_shipping_zone_methods");?>
                         <div class="shipping_types_display">
                             <?php foreach($all_shipping_methods as $shipping_methods){
                                 //checking if exist in database or not, and is enabeled or not
                                 if($shipping_methods->method_id=='free_shipping' && $shipping_methods->is_enabled==1)
                                     $free_shipping="Free Shipping&nbsp&nbsp&nbsp&nbsp";
                                 else $free_shipping='';
                                     echo $free_shipping; //printing
                                 if($shipping_methods->method_id=='local_pickup' && $shipping_methods->is_enabled==1)
                                     $local_pickup="Local pickup&nbsp&nbsp&nbsp&nbsp";
                                 else $local_pickup='';
                                     echo $local_pickup;
                                 if($shipping_methods->method_id=='flat_rate' && $shipping_methods->is_enabled==1)
                                     $flat_rate="Flat rate&nbsp&nbsp&nbsp&nbsp";
                                 else $flat_rate='';
                                     echo $flat_rate;
                             }?>
                         </div>
                     <style>
                         div.shipping_types_display{
                             background-color: #0000FF;
                             padding:5px;
                             width: auto;
                             height: auto;
                             color: white;
                             font-weight: bold;
                         }
                     </style><br><br>
      Copy
    • #92590
      itunes_schreiber
      Participant

      Hi Moumita,
      thanks for the assist, but it seems not to be working (at least for me).

      When adding your code, there will just be displayed a mini blue box inside the header title image (attached screenshot).
      By using the variable $all_shipping_methods inside my popup code, there will just be displayed “Array” (also attached).

      Can you please check it once again?

      Thanks & best regards,
      Lukas

      Attachments:
      Attachments:
    • #92597

      Lukas, can you share a temporary admin, vendor and ftp access so we can check.

      While sharing the access don’t forget to mark the response as private.

    • #92602
      itunes_schreiber
      Participant

      It seems that my reply (with all the needed credentials) was marked as spam?!
      Hopefully you can see it anyway.

      Regards.

    • #92601
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92605
      This reply has been marked as private.
    • #92617
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92663
      This reply has been marked as private.
    • #92672
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92675
      This reply has been marked as private.
    • #92676
      This reply has been marked as private.
    • #92726
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92879
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92888
      This reply has been marked as private.
    • #92897
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92906
      This reply has been marked as private.
    • #92926
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92965
      This reply has been marked as private.
    • #92975
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92982
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #92989
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #93006
      This reply has been marked as private.
    • #93284
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #93303
      This reply has been marked as private.
    • #93454
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #93457
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #93532
      This reply has been marked as private.
    • #93574
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #93623
      This reply has been marked as private.
    • #93672
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #94153
      This reply has been marked as private.
    • #93453
      itunes_schreiber
      Participant
      This reply has been marked as private.
    • #94662
      nacho.delacruz
      Participant

      Did you find a solution for this? It would be of great help to know!
      Thanks in advance

    • #94713
      itunes_schreiber
      Participant

      @nacho.delacruz at the moment the development team of WCMp is still investigating this and doing custom-code on my backend.
      If they will solve this, I (or Moumita) can provide the implemented code.

      Regards.

    • #94962

      @itunes_schreiber, just to keep you posted, the team is a bit busy with the next update 3.5.0
      As soon as I have an update from them, will let you know.

Viewing 40 reply threads

Please LOGIN to reply to this topic

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price