Forum Replies Created
-
AuthorPosts
-
MaxenceTPParticipant
Hey! The problem with the rating star is solved with the font-size.
I disabled all plugins on the site except Woocommerce and WCMP. The theme is the basic one of WordPress.
The problem is still present, I let you look directly on my site to be able to correct the problem of the tab “Review” which does not appear as well as the stars which do not appear on the vendor-list for some vendors.Thanks for your help !
MaxenceTPParticipantAbout the point 2 can you directly check on my website the problem ?
You have the credentials above.MaxenceTPParticipantThe test website is back up.
The code in the function.php should solve the problem with the stars ?
What about the review tab that doesn’t appear ?MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantI feel like you’ve broken everything :/
MaxenceTPParticipantLooks like you desactivated important plugins. I cannot login again into the website..
Try to re-enable the SSL pluginMaxenceTPParticipantThanks ! I’m waiting
MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantOups, it’s not done 🙂
MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantI thank you very much for your help.
To hide the sellers without products it works, to sort them I modified your code and it works too. If you are interested, here is how I did it :add_filter('wcmp_vendor_list_data', 'wcmp_vendor_list_vendors_customize'); function wcmp_vendor_list_vendors_customize($vendor_list_data) { $wcmp_all_vendors = $vendor_list_data['vendors']; $vendor_list_vendors = array(); $vendors_list_nb_products = array(); foreach ($wcmp_all_vendors as $vendor_id) { $vendor = get_wcmp_vendor( $vendor_id ); $vendor_products = count ($vendor->get_products()); if ($vendor_products != 0) { $vendors_list_nb_products[] = $vendor_products; $vendor_list_vendors[] = $vendor_id; } } array_multisort($vendors_list_nb_products, SORT_DESC, $vendor_list_vendors); $vendor_list_data['vendors'] = $vendor_list_vendors; $vendor_list_data['vendor_total'] = count($vendor_list_vendors); $vendor_list_data['total'] = ceil($vendor_list_data['vendor_total'] / $vendor_list_data['per_page']); return $vendor_list_data; }
CopyMaxenceTPParticipantOkay, I’m still waiting
-
AuthorPosts