Forum Replies Created
-
AuthorPosts
-
MaxenceTPParticipant
Heeeey
>> I’d like sellers who don’t have products yet to be displayed
I’m really struggling to understand what I should do, I’ve been trying to find out for several days. Is it better like that ?remove_action(‘wcmp_vendor_list_vendors_section’, ‘hide_vendors_without_products’);
function hide_vendors_without_products() {
global $WCMp, $vendor_list;if ( $vendor_list[‘vendors’] ) {
foreach ( $vendor_list[‘vendors’] as $vendor_id ) {
$products_array = $vendor_id->get_products();
if (!empty($products_array)) {
$WCMp->template->get_template(‘shortcode/vendor-list/content-vendor.php’,array( ‘vendor_id’ => $vendor_id ));
}
}
} else {
wcmp_no_vendors_found_data();
}
}add_action(‘wcmp_vendor_list_vendors_section’, ‘hide_vendors_without_products’, 1, 2);
>> I would like to fix the star ratings
Okay ! Keep me informed :p>> In the page of a seller, he has reviews but the review tab does not appear. However when I click on the href “review” they are well displayed. However for some sellers it works, but not for all : https://prnt.sc/12yt5ks
Same problem with the WP default theme>> Is it possible to sort the display of the sellers with the seller who has the most products first ?
On the vendors page, the vendor with the most products is the first one, like that : https://prnt.sc/13fwp3q become https://prnt.sc/13fwsudMaxenceTPParticipantHey thanks !
That’s okay for the template.—
>> I’d like sellers who don’t have products yet to be displayed
What do you think of this code ? I’m not sure $vendor_id->get_products(); is correctfunction hide_vendors_without_products() {
global $WCMp, $vendor_list;
if ( $vendor_list[‘vendors’] ) {
foreach ( $vendor_list[‘vendors’] as $vendor_id ) {
$products_array = $vendor_id->get_products();
if (!empty($products_array)) {
$WCMp->template->get_template(
‘shortcode/vendor-list/content-vendor.php’,
array( ‘vendor_id’ => $vendor_id )
);
}
}
} else {
wcmp_no_vendors_found_data();
}
}
add_filter(‘wcmp_vendor_list_vendors_section’, ‘hide_vendors_without_products’, 1, 2);>> I would like to fix the star ratings
I don’t really see what I have to put in custom css, but it’s the default rating stars, I havn’t edited the code : https://prnt.sc/13ar4em>> In the page of a seller, he has reviews but the review tab does not appear. However when I click on the href “review” they are well displayed. However for some sellers it works, but not for all : https://prnt.sc/12yt5ks
Here is a short video : https://youtu.be/3eNq1PzMnPM
The first one is working, but not the second vendor.>> Is it possible to sort the display of the sellers with the seller who has the most products first ?
If you can help me with that, I really appreciate, that’s not really easy to understand how WordPress worksMaxenceTPParticipantI still can’t post my reply since 3 days…
—
Hey thanks !
That’s okay for the template.—
>> I’d like sellers who don’t have products yet to be displayed
What do you think of this code ? I’m not sure $vendor_id->get_products(); is correctfunction hide_vendors_without_products() {
global $WCMp, $vendor_list;
if ( $vendor_list[‘vendors’] ) {
foreach ( $vendor_list[‘vendors’] as $vendor_id ) {
$products_array = $vendor_id->get_products();
if (!empty($products_array)) {
$WCMp->template->get_template(
‘shortcode/vendor-list/content-vendor.php’,
array( ‘vendor_id’ => $vendor_id )
);
}
}
} else {
wcmp_no_vendors_found_data();
}
}
add_filter(‘wcmp_vendor_list_vendors_section’, ‘hide_vendors_without_products’, 1, 2);>> I would like to fix the star ratings
I don’t really see what I have to put in custom css, but it’s the default rating stars, I havn’t edited the code : https://prnt.sc/13ar4em>> In the page of a seller, he has reviews but the review tab does not appear. However when I click on the href “review” they are well displayed. However for some sellers it works, but not for all : https://prnt.sc/12yt5ks
Here is a short video : https://youtu.be/3eNq1PzMnPM
The first one is working, but not the second vendor.>> Is it possible to sort the display of the sellers with the seller who has the most products first ?
If you can help me with that, I really appreciate, that’s not really easy to understand how WordPress worksMaxenceTPParticipantHey, any update ? 🙂
MaxenceTPParticipantI don’t really understand why I can’t post my reply.
—Thank you very much for your answer, I was able to fix most of the problems.
I’ll give you some details about the things I didn’t manage to do :
>> How to change the template used ?
The pages of the site have a div with padding to avoid that the elements of the page are stuck to the edge, like this : https://prnt.sc/12ysi9c
But on the vendor page (not the vendor list page), it is not there. How to add it https://prnt.sc/12yskko ?>> I’d like sellers who don’t have products yet to be displayed
I didn’t find how to use the hook you sent>> I would like to fix the star ratings
I don’t want to change the design of the stars, but in fact the empty stars and the filled ones added on top are offset, which gives this weird effect : https://prnt.sc/12yt2nm>> In the page of a seller, he has reviews but the review tab does not appear. However when I click on the href “review” they are well displayed. However for some sellers it works, but not for all : https://prnt.sc/12yt5ks
>> Is it possible to sort the display of the sellers with the seller who has the most products first ?
Thanks for your help <3
MaxenceTPParticipantThank you very much for your answer, I was able to fix most of the problems.
I’ll give you some details about the things I didn’t manage to do :
>> How to change the template used ?
The pages of the site have a div with padding to avoid that the elements of the page are stuck to the edge, like this : https://prnt.sc/12ysi9c
But on the vendor page (not the vendor list page), it is not there. How to add it https://prnt.sc/12yskko ?>> I’d like sellers who don’t have products yet to be displayed
I didn’t find how to use the hook you sent>> I would like to fix the star ratings
I don’t want to change the design of the stars, but in fact the empty stars and the filled ones added on top are offset, which gives this weird effect : https://prnt.sc/12yt2nm>> In the page of a seller, he has reviews but the review tab does not appear. However when I click on the href “review” they are well displayed. However for some sellers it works, but not for all : https://prnt.sc/12yt5ks
>> Is it possible to sort the display of the sellers with the seller who has the most products first ?
Thanks for your help <3
MaxenceTPParticipantHello! Any news please ? :'(
MaxenceTPParticipantThe width can be changed in the “Page attributes” setting in the WordPress pages. I can change that for vendor list and it works, but vendor pages aren’t WordPress page so I can’t edit the page template. How to change the template used ?
https://prnt.sc/11rfd43And what about the others things ?
– I would like to remove these icons and correct the offset of the star ratings: https://prnt.sc/1153rcu
– I’d like to centre the seller’s name and image, like this: https://prnt.sc/1153s5x
– I’d like sellers who don’t have products yet to be displayed: https://prnt.sc/1153skc
– I would like to remove this part at the top of the page: https://prnt.sc/1153sf1
– I also have a problem with the code below, the sellers appear but in the footer: https://prnt.sc/1153uibadd_filter('wcmp_vendor_list_vendors_query_args', 'remove_limited_vendor_per_page'); function remove_limited_vendor_per_page($args) { $args = array( number' => 100, ); return $args; }
CopyRegarding the page of each vendor :
– I would like to remove the “Policies” tab: https://prnt.sc/1153sut
– And centre the content of the page: https://prnt.sc/1153tfeThanks for your help 🙂
MaxenceTPParticipantHey !
The width can be changed in the “Page attributes” setting in the WordPress pages. I can change that for vendor list and it works, but vendor pages aren’t WordPress page so I can’t edit the page template. How to change the template used ?
https://prnt.sc/11rfd43And what about the others things ?
– I would like to remove these icons and correct the offset of the star ratings: https://prnt.sc/1153rcu
– I’d like to centre the seller’s name and image, like this: https://prnt.sc/1153s5x
– I’d like sellers who don’t have products yet to be displayed: https://prnt.sc/1153skc
– I would like to remove this part at the top of the page: https://prnt.sc/1153sf1
– I also have a problem with the code below, the sellers appear but in the footer: https://prnt.sc/1153uibadd_filter('wcmp_vendor_list_vendors_query_args', 'remove_limited_vendor_per_page'); function remove_limited_vendor_per_page($args) { $args = array( number' => 100, ); return $args; }
CopyRegarding the page of each vendor :
– I would like to remove the “Policies” tab: https://prnt.sc/1153sut
– And centre the content of the page: https://prnt.sc/1153tfeThanks for your help 🙂
MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantI tested it again, it’s working for me. I just copy/paste the SSH key into a key.ppk, then run it, then go to FileZilla.
Make sure you ran the SSH key before trying to access the FTPMaxenceTPParticipantOkay thanks, keep me informed 🙂
MaxenceTPParticipantThat doesn’t change anything :/
Have you tried this code on our developpement website ?MaxenceTPParticipantThis reply has been marked as private. -
AuthorPosts