Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Vendors Store
- This topic has 34 replies, 3 voices, and was last updated 4 years, 9 months ago by r_guayaquil.
- AuthorPosts
- June 11, 2019 at 5:05 pm #67017r_guayaquilParticipant
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. - June 11, 2019 at 7:52 pm #67072WCFM ForumMember
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
- June 12, 2019 at 2:56 am #67112r_guayaquilParticipant
Hi,
I added it in the registration form. Or where do i have to add it?
Thanks!
- June 12, 2019 at 5:32 am #67121WCFM ForumMember
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
- June 12, 2019 at 4:33 pm #67224r_guayaquilParticipant
Hi,
I dont know much about coding. Can you please guide me?
Thanks!
- June 13, 2019 at 8:06 pm #67464WCFM ForumMember
HI,
Do you have added “website url” custom field under vendor’s registration form?
Please show me screenshot for that.
Thank You
- June 13, 2019 at 9:05 pm #67489r_guayaquilParticipant
- June 15, 2019 at 3:47 pm #67839WCFM ForumMember
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 });
- July 8, 2019 at 8:01 pm #71598r_guayaquilParticipant
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!
- July 13, 2019 at 6:37 am #72233WCFM ForumMember
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
- July 14, 2019 at 8:27 pm #72480r_guayaquilParticipant
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. - July 16, 2019 at 3:21 pm #72671WCFM ForumMember
HI,
What URL it’s opening in browser? I can not see that in screenshot!
Thank You
- July 16, 2019 at 3:33 pm #72677r_guayaquilParticipant
Hi,
These are the URLS
https://www.todomerca.ec/tienda/vendedor-1/
https://www.todomerca.ec/tienda/vendedor-1/www.amazon.comThanks!
- July 17, 2019 at 6:01 am #72760WCFM ForumMember
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
- July 17, 2019 at 12:39 pm #72835r_guayaquilParticipant
Hi,
Should I add this checking to that code?
Yes, please!
Thanks a lot!
- July 17, 2019 at 1:25 pm #72840WCFM ForumMember
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
- July 17, 2019 at 3:54 pm #72858r_guayaquilParticipant
Hi,
Thanks a lot! 🙂
- July 18, 2019 at 12:23 pm #72951WCFM ForumMember
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. - July 20, 2019 at 3:33 am #73144r_guayaquilParticipant
Hi,
Yes, I would love to do it.
Thanks a lot for all the help!
- July 20, 2019 at 5:09 am #73154WCFM ForumMember
My pleasure!
Have a great weekend 🙂
- February 11, 2020 at 12:10 am #106558r_guayaquilParticipant
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. - February 11, 2020 at 12:28 pm #106641Sarmistha ChakrabortyMember
Hello,
Kindly share us a vendor store page url then we can check your vendor store page and send you the style accordingly.
Thanks.
- February 11, 2020 at 9:46 pm #106731r_guayaquilParticipant
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. - February 12, 2020 at 12:42 pm #106808Sarmistha ChakrabortyMember
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.
- February 12, 2020 at 9:25 pm #106863r_guayaquilParticipant
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://” . $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
});- February 13, 2020 at 12:12 pm #106923Sarmistha ChakrabortyMember
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.
- February 14, 2020 at 12:31 am #107062r_guayaquilParticipantThis reply has been marked as private.
- February 14, 2020 at 1:55 pm #107127Sarmistha ChakrabortyMember
Hi,
Remove the style,
#wcfmmp-store div.store_info_parallal:first-of-type { display: block; }
Thanks.
- March 25, 2020 at 10:11 am #113051r_guayaquilParticipantThis reply has been marked as private.
- March 25, 2020 at 12:16 pm #113069Sarmistha ChakrabortyMember
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.
- March 26, 2020 at 1:58 am #113210r_guayaquilParticipantThis reply has been marked as private.
- March 26, 2020 at 12:40 pm #113251Sarmistha ChakrabortyMember
- March 26, 2020 at 9:01 pm #113355r_guayaquilParticipant
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!
- March 28, 2020 at 10:01 am #113632Sarmistha ChakrabortyMember
- March 28, 2020 at 8:27 pm #113705r_guayaquilParticipant
Hi,
Now looks perfect. Thanks so much! 🙂
- AuthorPosts
- You must be logged in to reply to this topic.