Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Add Social Media Field

WCMp Advanced Frontend Manager

Tagged: 

Resolved
Viewing 21 reply threads
  • Author
    Posts
    • #122307
      DragNfLy
      Participant

      Hi,

      I have followed the forum post here > https://multivendorx.com/support-forum/topic/how-to-add-a-pinterest-social-media-link-in-vendors-dashboard/ to add Pinterest Social Media.

      I see no difference in WCMP Admin > Vendors > Social or on Vendor > Store Settings > Storefront > Social Media.
      …see attached files (this is after code added from link above)

      The Pinterest Field does not show.

      Please assist.

      Kind regards,
      Dale

    • #122316

      Dale, the codes we have shared here : https://multivendorx.com/support-forum/topic/how-to-add-a-pinterest-social-media-link-in-vendors-dashboard/ is to display them on vendor’s end.

      I will ask the team to check the code for admin end too.

    • #122366
      DragNfLy
      Participant

      Hi Moumita,

      Yes, as you can see in my second screenshot (wcmp-vendor-social.jpg) it does not display on the Vendor end after adding the code from the code shared above.

      I look forward to hearing from you.

      Kind regards,
      Dale

    • #122369
      DragNfLy
      Participant

      … I tested again after removing the second part of the code > https://multivendorx.com/support-forum/topic/how-to-add-a-pinterest-social-media-link-in-vendors-dashboard/#post-118522

      After removing the code; – The Pinterest field appears on the Vendor Storefront social media settings section.
      …but the icon does not show in the Vendor Storefront.

      I am using the “WCMp Store Page” Elementor Template. I have added the Pinterest Item with icon, but nothing shows.
      …then I realised I typed the wrong URL in the Pinterest field. After correcting the URL and saving. The save does not save. The wrong URL is still showing. I now cannot change the Pinterest URL; – even after removing the code and saving again and adding the code back.

      Why does this all seem so buggy? Also the LinkedIn icon does not show.

      The only Icons I can get to show are Facebook, Twitter, Instagram and YouTube.

      Please fix this.

      Kind regards,
      Dale

    • #122394

      Hi,
      Kindly add below code and check.

      add_action( 'wcmp_vendor_add_extra_social_link', 'wcmp_add_pinterest' );
      function wcmp_add_pinterest($vendor){
      $vendor_pinterest = get_user_meta($vendor->id, '_vendor_pinterest_profile', true);
      ?>
       <div class="form-group">
          <label class="control-label col-sm-3 col-md-3 pinterest"><?php _e('Pinterest', 'dc-woocommerce-multi-vendor'); ?></label>
          <div class="col-md-6 col-sm-9">
              <input class="form-control" type="url" name="vendor_pinterest" value="<?php echo ($vendor_pinterest)? $vendor_pinterest : '' ?>">
          </div>  
      </div>
      <?php
      }
      
      add_action('before_wcmp_vendor_dashboard', 'save_vendor_dashboard_data_pinterest');
      /*save vendor dashboard data into user_meta*/
      function save_vendor_dashboard_data_pinterest(){
          global $WCMp;
          $vendor_id = get_current_vendor_id();
          if($_SERVER['REQUEST_METHOD'] == 'POST') {
              if($WCMp->endpoints->get_current_endpoint() == 'storefront') {
                  $pinterest_account = isset($_POST['vendor_pinterest']) ? $_POST['vendor_pinterest'] : '';
                  update_user_meta( $vendor_id, '_vendor_pinterest_profile', $pinterest_account );    
              }
          }
      }
      
      add_action( 'wcmp_vendor_store_header_social_link', 'wcmp_add_social_link_add' );
      function wcmp_add_social_link_add( $vendor_id ){
      $vendor_pinterest = get_user_meta($vendor_id, '_vendor_pinterest_profile', true);
        if ($vendor_pinterest) { ?> <a target="_blank" href="<?php echo esc_url($vendor_pinterest); ?>"><i class="fa fa-pinterest-square" style="font-size:32px;color:red"></i></a><?php }
      }
      
      add_action( 'wp_head', 'load_icons_front_end' );
      function load_icons_front_end() {?>
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
        <?php
      }
      Copy

      Regards,

    • #122428

      @Dale, in order to be sure whether this is theme conflict, can you switch to some other theme like twenty seventeen for testing purpose?

    • #122439
      DragNfLy
      Participant

      Hi Abhirup,

      I installed and activated ‘twenty seventeen’ theme(also deleted all other themes), resaved my Storefront settings but Pinterest still not showing. Neither does LinkedIn.

      Kind regards,
      Dale

    • #122443

      Dale, in that case, please do create a staging site and share the admin, FTP access so we can check.
      While sharing the access, don’t forget to mark the response as private.

    • #122482
      DragNfLy
      Participant
      This reply has been marked as private.
    • #122503

      Hi,
      Our given code only work without elementor plugin. kindly share a FTP access, we will check this issue on your end.

      Regards,

    • #122510
      DragNfLy
      Participant
      This reply has been marked as private.
    • #122566

      Hi,
      We have given elementor support only with our default WCMp settings. In the case of social media support, by default, we have given 5 social icons and details. For adding extra social details it needs a good amount of custom coding ( because for adding an extra block we need to create elementor block, which needs a good amount of time ). If you need any structure help, like where we add the code then please let us know. We will provide you GitHub link.
      Thanks.

    • #122607
      DragNfLy
      Participant

      Hi Raju,

      You must understand that ‘giving’ only 5 social media icons and details is very limiting. Not allowing your users and especially vendors to add their own links is pointless and feels like your product is a walled garden.

      I would suggest your team start creating that extra “Elementor block”. Offering limited social media support reflects badly on your product. I do believe that WCMp has capability to allow this and improve the platform at the same time.

      I need this resolved. You cannot offer an Extra Pinterest social media support for one and then not for the Elementor version.

      The LinkedIn social media icon also does not work and this is one of the default “given 5 social icons”. Please fix this.

      I have spent almost 1 year with your software and have not been able to launch my platform which now seems to be a bad choice in Multi Vendor Marketplace plugin.

      Please tell me you are wanting to help me here.

      Firstly fix the LinkedIn for Elementor and then secondly; – I need to allow my Vendors to add custom icons and links to their Storefront.

      Let me know if you can help or if I should move on.

      Kind regards,
      Dale

    • #123135
      DragNfLy
      Participant

      Hi Moumita,

      Thank you for the latest WCMp update.

      I can confirm that the LinkedIn Social Media icon is now working in the Elementor widget and is displayed on the Storefront.

      The Pinterest icon however is still not showing on the Storefront or the admin WCMp > Vendors > Social > Social Information section.
      … from using the above code provided in this thread > https://multivendorx.com/support-forum/topic/add-social-media-field/#post-122394

      Kind regards,
      Dale

    • #123336

      Dale, we are yet to add support of other social media.

      As shared earlier, it depends on the enhancement feature priority.

    • #123372
      DragNfLy
      Participant

      Hi Moumita,

      OK great to hear. Are you able to refer me to a WCMp Elementor Block developer that can assist me with editing the ‘WCMp Store Page’ Elementor template provided by WCMp?

      Kind regards,
      Dale

    • #123387

      Dale, I can help you out with this.

      Just like any elementor page, you can edit this from your template’s list.

      If you are looking for any other help, please do explain this a bit more.

    • #123424
      DragNfLy
      Participant
      This reply has been marked as private.
    • #123532
      This reply has been marked as private.
    • #123711
      DragNfLy
      Participant

      Hello Guy,

      The coding you refer to does not even work for Pinterest. If you can share code that I can actually modify then that would be a better starting point. Alternatively; – my question was actually asking for WCMp to refer me to a developer that is capable of creating the Elementor block for WCMp and you said you can help me out with this. It is now already a week later, a week lost.

      Kind regards,
      Dale

    • #123744

      Dale, there is no ready-made code, in fact, the custom flow you are looking for requires huge custom code. This is completely beyond our support policy. We can do one thing for you is to provide you an existing git link. Here is some link – https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/master/packages/wcmp-elementor/includes/Tags/StoreInfo.php. If you need any logical help during development then let us know.
      Thanks

    • #127076

      We haven’t heard back from you for a while. We hope this issue is fixed, so we are closing this now.
      If you need any further help, please do open another thread.

Viewing 21 reply threads

The topic ‘Add Social Media Field’ is closed to new replies.