Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Vendor Add Product Attributes Issues
Tagged: Attributes Sort Selection
- This topic has 3 replies, 2 voices, and was last updated 4 years, 9 months ago by sarah.
- AuthorPosts
- February 25, 2020 at 9:30 am #108629sarahParticipant
I am very close to launching my marketplace, but have a couple issues involving attributes I haven’t been able to fix.
1) The Woocommerce attribute custom sort order doesn’t seem to work with WCFM. If I select the custom sort order, I am able to make the attributes appear in the correct order on the backend Woocommerce > Products > Attributes area. However, if I log in as a vendor and click on the drop-down in the Add Product front end screen to select attributes, they are listed in alphabetical order. I’m trying to list sizes, so alphabetical order isn’t logical for the user. Am I missing a setup? Or is there a function to fix this?
2) My vendors will be selling clothing items, so they will need to use multiple sizes as variations. On my iPhone this works fine. However, on my desktop browsers (both Safari and Chrome), selecting more than 4 attributes causes the white space to shift and the Add Product menu (Inventory, Attributes, Variations, etc.) disappears. The only way to make it reappear is to remove the extra attributes. Is there a CSS code that could be added to fix this?
- February 25, 2020 at 10:03 pm #108797CraigParticipant
Sarah do you have a screen shot of what you mean in number 2? I would like to do a test on my marketplace to see if it is doing the same thing.
– also a good way to trouble shoot – (but not on your live site) is to switch the theme ti “storefront” which is a confirmed compatible theme to help determine if the issue is your theme or a plugin issue….and then you can switch it back to your normal theme once you did some verification.
Have you ever done that before? (don’t do it on your live side because everyone is affected with the appearance change – do it in a test server or local copy of your site) - February 25, 2020 at 11:36 pm #108806sarahParticipant
Craig, you’re totally right. I switched to Twenty Twenty theme and the attributes box populates the selections all into the box rather than as an extended list. I’m using MyListing theme, so I guess I need to contact them for a fix. I attached a screenshot so you can see what it looks like.
The custom sort order is still an issue though.
Attachments:
You must be logged in to view attached files. - March 5, 2020 at 11:49 pm #110146sarahParticipant
WCLOVERS support is amazing! They fixed both of my issues. I’ve included the code below in case anyone else runs across these problems and needs help.
1) Custom sort order doesn’t work for attribute terms
Add to child functions.php
// Custom sort order for attribute terms
add_filter( ‘wcfm_product_attribute_terms’, function( $args ) {
if( isset( $args[‘orderby’] ) ) {
$args[‘orderby’] = ‘menu_order’;
}
return $args;
});2) Product category and attribute term drop-downs do not display properly. (I think this was a conflict with Select2 and the MyListing theme.)
Add to child style.css
/* Select2 fix for Add Product dropdowns */
.wcfm-dashboard-page .select2-container–default .select2-selection–multiple .select2-selection__choice__remove:before {
display: inline-block;
font-size: 10px !important;
}
.wcfm-dashboard-page .select2-container–default .select2-selection–multiple .select2-selection__choice {
display: inline-block !important;
width: auto !important;
padding: 0 5px !important;
}
- AuthorPosts
- You must be logged in to reply to this topic.