Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Vendors Store
- This topic has 34 replies, 3 voices, and was last updated 4 years, 11 months ago by
r_guayaquil.
- AuthorPosts
- June 11, 2019 at 5:05 pm #67017
r_guayaquil
ParticipantHi,
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 #67072
WCFM Forum
MemberHI,
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 #67112
r_guayaquil
ParticipantHi,
I added it in the registration form. Or where do i have to add it?
Thanks!
- June 12, 2019 at 5:32 am #67121
WCFM Forum
MemberOK, 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 #67224
r_guayaquil
ParticipantHi,
I dont know much about coding. Can you please guide me?
Thanks!
- June 13, 2019 at 8:06 pm #67464
WCFM Forum
MemberHI,
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 #67489
r_guayaquil
Participant - June 15, 2019 at 3:47 pm #67839
WCFM Forum
MemberThanks, 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 #71598
r_guayaquil
ParticipantHi,
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 #72233
WCFM Forum
MemberHI,
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 #72480
r_guayaquil
ParticipantHi,
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 #72671
WCFM Forum
MemberHI,
What URL it’s opening in browser? I can not see that in screenshot!
Thank You
- July 16, 2019 at 3:33 pm #72677
r_guayaquil
ParticipantHi,
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 #72760
WCFM Forum
Memberhttp://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 #72835
r_guayaquil
ParticipantHi,
Should I add this checking to that code?
Yes, please!
Thanks a lot!
- July 17, 2019 at 1:25 pm #72840
WCFM Forum
MemberHi,
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 #72858
r_guayaquil
ParticipantHi,
Thanks a lot! 🙂
- July 18, 2019 at 12:23 pm #72951
WCFM Forum
MemberYou 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 #73144
r_guayaquil
ParticipantHi,
Yes, I would love to do it.
Thanks a lot for all the help!
- July 20, 2019 at 5:09 am #73154
WCFM Forum
MemberMy pleasure!
Have a great weekend 🙂
- February 11, 2020 at 12:10 am #106558
r_guayaquil
ParticipantHi,
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 #106641
Sarmistha Chakraborty
MemberHello,
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 #106731
r_guayaquil
ParticipantHi,
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 #106808
Sarmistha Chakraborty
MemberHi,
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 #106863
r_guayaquil
ParticipantHi,
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 #106923
Sarmistha Chakraborty
MemberHi,
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 #107062
r_guayaquil
ParticipantThis reply has been marked as private.- February 14, 2020 at 1:55 pm #107127
Sarmistha Chakraborty
MemberHi,
Remove the style,
#wcfmmp-store div.store_info_parallal:first-of-type { display: block; }
Thanks.
- March 25, 2020 at 10:11 am #113051
r_guayaquil
ParticipantThis reply has been marked as private.- March 25, 2020 at 12:16 pm #113069
Sarmistha Chakraborty
MemberHello,
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 #113210
r_guayaquil
ParticipantThis reply has been marked as private.- March 26, 2020 at 12:40 pm #113251
Sarmistha Chakraborty
Member
- March 26, 2020 at 9:01 pm #113355
r_guayaquil
ParticipantHi,
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 #113632
Sarmistha Chakraborty
Member
- March 28, 2020 at 8:27 pm #113705
r_guayaquil
ParticipantHi,
Now looks perfect. Thanks so much! 🙂
- AuthorPosts
- You must be logged in to reply to this topic.