Vendors Store

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 29 reply threads
  • Author
    Posts
    • #67017
      r_guayaquil
      Participant

      Hi,

      How can i show the url of the vendors online store in his profile?

      Thanks

      Attachments:
      You must be logged in to view attached files.
    • #67072
      WCFM Forum
      Keymaster

      HI,

      How you have added this field for vendors?

      Well, use this code to display this –

      add_action( 'wcfmmp_store_before_phone', function( $store_id ) {
      	$site_url = 'http://gogle.com';
      	?>
      	<div class="store_info_parallal"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a href="#"><?php echo $site_url; ?></a></span></div>
      	<?php
      });

      Fetch vendor’s site url using $store_id

      Thank You

    • #67112
      r_guayaquil
      Participant

      Hi,

      I added it in the registration form. Or where do i have to add it?

      Thanks!

    • #67121
      WCFM Forum
      Keymaster

      OK, that’s fine.

      So, you have to fetch that using get_user_meta function.

      Can you check from database using which meta_key it store that field ?

      Thank You

    • #67224
      r_guayaquil
      Participant

      Hi,

      I dont know much about coding. Can you please guide me?

      Thanks!

    • #67464
      WCFM Forum
      Keymaster

      HI,

      Do you have added “website url” custom field under vendor’s registration form?

      Please show me screenshot for that.

      Thank You

    • #67489
      r_guayaquil
      Participant

      Hi,

      I attached the screenshot

      Attachments:
      You must be logged in to view attached files.
    • #67839
      WCFM Forum
      Keymaster

      Thanks, use this revised code –

      add_action( 'wcfmmp_store_before_phone', function( $store_id ) {
      	$site_url = get_user_meta( $store_id, 'url-de-tienda-online', true );
      	?>
      	<div class="store_info_parallal"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a href="#"><?php echo $site_url; ?></a></span></div>
      	<?php
      });
    • #71598
      r_guayaquil
      Participant

      Hi,

      Thanks a lot for the code. It works!

      But what can i do when a user clicks in the url, the link will redirect to the vendors online store?

      Thanks!

    • #72233
      WCFM Forum
      Keymaster

      HI,

      OK, use this revised code –

      add_action( 'wcfmmp_store_before_phone', function( $store_id ) {
      	$site_url = get_user_meta( $store_id, 'url-de-tienda-online', true );
      	?>
      	<div class="store_info_parallal"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a href="<?php echo $site_url; ?>"><?php echo $site_url; ?></a></span></div>
      	<?php
      });

      Thank You

    • #72480
      r_guayaquil
      Participant

      Hi,

      I added the code but i dont go to the vendors online store. I get the not found page. Please see images attached.

      Thanks!

      Attachments:
      You must be logged in to view attached files.
    • #72671
      WCFM Forum
      Keymaster

      HI,

      What URL it’s opening in browser? I can not see that in screenshot!

      Thank You

    • #72677
      r_guayaquil
      Participant
    • #72760
      WCFM Forum
      Keymaster

      http://www.amazon.com
      Ummm … problem is here. You have added URL without “https/http”

      Should I add this checking to that code?

      Thank You

    • #72835
      r_guayaquil
      Participant

      Hi,

      Should I add this checking to that code?

      Yes, please!

      Thanks a lot!

    • #72840
      WCFM Forum
      Keymaster

      Hi,

      Please use this revised code –

      add_action( 'wcfmmp_store_before_phone', function( $store_id ) {
      	$site_url = get_user_meta( $store_id, 'url-de-tienda-online', true );
      	if (strpos( $site_url, 'http') === false) {
      		$site_url = "http://" . $site_url;
      	}
      	?>
      	<div class="store_info_parallal"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a href="<?php echo $site_url; ?>"><?php echo $site_url; ?></a></span></div>
      	<?php
      });

      Thank You

    • #72858
      r_guayaquil
      Participant

      Hi,

      Thanks a lot! 🙂

    • #72951
      WCFM Forum
      Keymaster

      You are welcome 🙂

      Let me know if there’s anything else we can help you with.
      Can we ask for a favor John? Would you mind taking a few minutes to review our plugin at WordPress and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter @wcfmmp for more exciting news, important updates, and irresistible offers.

    • #73144
      r_guayaquil
      Participant

      Hi,

      Yes, I would love to do it.

      Thanks a lot for all the help!

    • #73154
      WCFM Forum
      Keymaster

      My pleasure!

      Have a great weekend 🙂

    • #106558
      r_guayaquil
      Participant

      Hi,

      the phone numbre and the email address used to be under the website url, but now for some reason they are next to it.

      can you please tell me how to put it the way it was.

      thanks!

      Attachments:
      You must be logged in to view attached files.
    • #106641

      Hello,

      Kindly share us a vendor store page url then we can check your vendor store page and send you the style accordingly.

      Thanks.

    • #106731
      r_guayaquil
      Participant

      Hi,

      Thanks! In that case if you can help show the information as the image attached.

      https://www.todomerca.ec/tienda/electronics/

      Attachments:
      You must be logged in to view attached files.
    • #106808

      Hi,

      For “phone number and the email address used to be under the website url”, add this style to your child theme’s style.css

      #wcfmmp-store div.store_info_parallal:first-of-type {
          display: block;
      }

      Regarding Add “website url” below the “phone number and the email address”, you have to display “website url” in this action – “wcfmmp_store_after_email” .
      do_action( 'wcfmmp_store_after_email', $store_user->get_id() );
      Can you share us the script how you display the “website url” in your vendor store page? Then we can send you the script accordingly.

      Thanks.

    • #106863
      r_guayaquil
      Participant

      Hi,

      Thanks for the help!

      This is the script you guys helped me to show the url of the vendor

      `add_action( ‘wcfmmp_store_before_phone’, function( $store_id ) {
      $site_url = get_user_meta( $store_id, ‘url-de-tienda-online’, true );
      if (strpos( $site_url, ‘http’) === false) {
      $site_url = “http://&#8221; . $site_url;
      }
      ?>
      <div class=”store_info_parallal”><i class=”wcfmfa fa-globe” aria-hidden=”true”></i><span>” target=”_blank”><?php echo $site_url; ?></span></div>
      <?php
      });

      • #106923

        Hi,

        Modify this script with(change the action “wcfmmp_store_after_email”),

        add_action( 'wcfmmp_store_after_email', function( $store_id ) {
        	$site_url = get_user_meta( $store_id, 'url-de-tienda-online', true );
        		if (strpos( $site_url, 'http') === false) {
        			$site_url = "http://" . $site_url;
        		}
        	?>
        	<div class="store_info_parallal" style="display:block;"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a target="_blank" href="<?php echo $site_url; ?>"><?php echo $site_url; ?></a></span></div>
        	<?php
        });

        In this case you don’t need to add previously mentioned style.

        Thanks.

    • #107062
      r_guayaquil
      Participant
      This reply has been marked as private.
      • #107127

        Hi,

        Remove the style,

        #wcfmmp-store div.store_info_parallal:first-of-type {
            display: block;
        }

        Thanks.

    • #113051
      r_guayaquil
      Participant
      This reply has been marked as private.
      • #113069

        Hello,

        We cannot check your vendor store page, it shows PFA
        Please share us the access details, then we can check and guide you accordingly.

        Thanks.

        Attachments:
        You must be logged in to view attached files.
    • #113210
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #113355
      r_guayaquil
      Participant

      Hi,

      now it looks good in desktop. I also added a css style because the name of the store was too small. But in the mobile version i still have the space between the logo and the title.

      Thanks!

    • #113705
      r_guayaquil
      Participant

      Hi,

      Now looks perfect. Thanks so much! 🙂

Viewing 29 reply threads
  • You must be logged in to reply to this topic.