Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Layout Change | Product Page
- This topic has 7 replies, 2 voices, and was last updated 6 years, 3 months ago by WCFM Forum.
- AuthorPosts
- July 15, 2018 at 6:49 pm #26379wwsAdminParticipant
Hello team,
I need help for couple of changes.1. Need to push “Downloadable” option when simple product is selected on next line.
2. When variable product is selected, display some help text
3. In simple product when schedule is selected, Placeholder of From and To is displaying “From… F j, Y” & “To… F j, Y” . would like to change it to “From… YYYY-MM-DD” & “To… YYYY-MM-DD”
4. When Variable product is selected under variations, am not able to rename “Downloadable” and “Schedule”(not able to find code of it in wcfm-view-products-manage-tabs.php)
5. Is it possible to Remove Attribute for simple product - July 16, 2018 at 6:11 am #26406WCFM ForumMember
Hi,
Thanks foe get in touch with us.
1. Please try this by overriding WCfM product manager template to your theme folder. Or you may try this using CSS as well.
2. Template override will be easiest way to do so.
3. It’s shows you WP default date format. You can change this from wp-admin -> Setting -> General-> Set Date format YYYY-MM-DD
4. These codes are written at “wc-frontend-manager-ultimate/core/class-wcfmu-frontend.php” at line 363. But best way to manipulate these using this filter – wcfm_product_manage_fields_variations
5. Yes possible.Manipulate this using this filter – wcfm_pm_block_class_attributes, remove “simple” from allowed class list
Thank You
- July 19, 2018 at 5:43 pm #26625wwsAdminParticipant
Hi,
1. am not able to do it can u just help me with it. copying to theme. am not able to replicate it.
2. Tried but not able to figure out. condition
3. done
4. will try can u give me code ?
5. can u give me filter code ? - July 20, 2018 at 1:52 pm #26666WCFM ForumMember
HI,
All these are possible by adding some small code snippet.
Template override not required.Kindly know me, where you want to have those help texts and send me those texts as well.
Thank You
- July 20, 2018 at 2:22 pm #26667wwsAdminParticipant
Hi,
Thanks for immediate reply.
1. Check box option on the right side of dropdown to select product needs to be moved down. Checkbox for download should come below.
2. When product type is selected, help text should be displayed 9n the right side. ()Place where original check box was.Simple Product: Select this option if your product does not have any variations or options like variable sizes, colors, etc
Variable Product: Select this option if your product has variations or options like variable sizes, colors, etc4. When Variable product is selected under variations, am not able to rename “Downloadable” and “Schedule”(not able to find code of it in wcfm-view-products-manage-tabs.php) “using this filter – wcfm_product_manage_fields_variations”, can u help me with filter to rename ?? Downloadable with ”
Is this a digital product? ->. On hovering over the question mark, the following text should appear: “Select this option if your product will be sent as a downloadable link/Image”” And Schedule to rename it to Sale Duration.5.
filter – wcfm_pm_block_class_attributes, remove “simple” from allowed class list. Code for this. - July 20, 2018 at 2:48 pm #26668WCFM ForumMember
Hi,
Here is the code snippet for the purpose –
function wcfm_custom_product_manage_fields_general( $general_fileds, $product_id, $product_type ) { global $WCFM; if( isset( $general_fileds['product_type'] ) ) { $general_fileds['product_type']['attributes'] = array( 'style' => 'width: 100% !important;' ); } $general_fileds = array_slice($general_fileds, 0, 1, true) + array( 'simple-product-hints' => array( 'type' => 'html', 'class' => 'wcfm_ele simple', 'value' => 'Select this option if your product does not have any variations or options like variable sizes, colors, etc' ), 'variable-product-hints' => array( 'type' => 'html', 'class' => 'wcfm_ele variable', 'value' => 'Select this option if your product has variations or options like variable sizes, colors, etc' ), ) + array_slice($general_fileds, 1, count($general_fileds) - 1, true) ; return $general_fileds; } add_filter( 'wcfm_product_manage_fields_general', 'wcfm_custom_product_manage_fields_general', 150, 3 ); function wcfm_pm_block_custom_class_attributes( $classes ) { return 'variable external grouped booking'; } add_filter( 'wcfm_pm_block_class_attributes', 'wcfm_pm_block_custom_class_attributes', 50 ); function wcfm_product_manage_custom_fields_variations( $variation_fields ) { if( isset( $variation_fields['is_downloadable'] ) ) { $variation_fields['is_downloadable']['label'] = 'Is this a digital product?'; $variation_fields['is_downloadable']['hints'] = 'Select this option if your product will be sent as a downloadable link/Image'; } if( isset( $variation_fields['sale_price'] ) ) { $variation_fields['sale_price']['desc'] = 'Sale Duration'; } return $variation_fields; } add_filter( 'wcfm_product_manage_fields_variations', 'wcfm_product_manage_custom_fields_variations', 50 );
Thank You
- July 21, 2018 at 6:33 am #26679wwsAdminParticipant
HI team,
Really thanks for the help.
and special thanks to Shivv.
Kudos.
- July 22, 2018 at 7:06 am #26701WCFM ForumMember
Hi,
That’s pleasure. You are welcome 🙂
Please don’t forget to add a review for me – https://wordpress.org/support/plugin/wc-frontend-manager/reviews/
Thank You
- AuthorPosts
- The topic ‘Layout Change | Product Page’ is closed to new replies.