MaxenceTP

Forum Replies Created

Viewing 15 posts - 586 through 600 (of 609 total)
  • Author
    Posts
  • in reply to: Bugs and changes on the “Vendor page” #122323
    MaxenceTP
    Participant

    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/13fwsud

    in reply to: Bugs and changes on the “Vendor page” #122078
    MaxenceTP
    Participant

    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 correct

    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_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 works

    in reply to: Bugs and changes on the “Vendor page” #122136
    MaxenceTP
    Participant

    I 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 correct

    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_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 works

    in reply to: Bugs and changes on the “Vendor page” #122012
    MaxenceTP
    Participant

    Hey, any update ? 🙂

    in reply to: Bugs and changes on the “Vendor page” #121733
    MaxenceTP
    Participant

    I 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

    in reply to: Bugs and changes on the “Vendor page” #121722
    MaxenceTP
    Participant

    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

    in reply to: Bugs and changes on the “Vendor page” #120680
    MaxenceTP
    Participant

    Hello! Any news please ? :'(

    in reply to: Bugs and changes on the “Vendor page” #120216
    MaxenceTP
    Participant

    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/11rfd43

    And 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/1153uib

    add_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;
    }
    Copy

    Regarding 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/1153tfe

    Thanks for your help 🙂

    in reply to: Bugs and changes on the “Vendor page” #120266
    MaxenceTP
    Participant

    Hey !

    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/11rfd43

    And 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/1153uib

    add_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;
    }
    Copy

    Regarding 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/1153tfe

    Thanks for your help 🙂

    in reply to: Bugs and changes on the “Vendor page” #120157
    MaxenceTP
    Participant
    This reply has been marked as private.
    in reply to: Bugs and changes on the “Vendor page” #119846
    MaxenceTP
    Participant
    This reply has been marked as private.
    in reply to: Bugs and changes on the “Vendor page” #119756
    MaxenceTP
    Participant

    I 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 FTP

    in reply to: Bugs and changes on the “Vendor page” #119578
    MaxenceTP
    Participant

    Okay thanks, keep me informed 🙂

    in reply to: Bugs and changes on the “Vendor page” #119461
    MaxenceTP
    Participant

    That doesn’t change anything :/
    Have you tried this code on our developpement website ?

    in reply to: Bugs and changes on the “Vendor page” #119371
    MaxenceTP
    Participant
    This reply has been marked as private.
Viewing 15 posts - 586 through 600 (of 609 total)