Layout Change | Product Page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 7 reply threads
  • Author
    Posts
    • #26379
      wwsAdmin
      Participant

      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

    • #26406
      WCFM Forum
      Keymaster

      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

    • #26625
      wwsAdmin
      Participant

      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 ?

    • #26666
      WCFM Forum
      Keymaster

      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

    • #26667
      wwsAdmin
      Participant

      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, etc

      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) “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.

    • #26668
      WCFM Forum
      Keymaster

      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

    • #26679
      wwsAdmin
      Participant

      HI team,

      Really thanks for the help.

      and special thanks to Shivv.

      Kudos.

    • #26701
      WCFM Forum
      Keymaster

      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

Viewing 7 reply threads
  • The topic ‘Layout Change | Product Page’ is closed to new replies.