Button Tex – Adding a external/affiliate product

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Button Tex – Adding a external/affiliate product

Viewing 5 reply threads
  • Author
    Posts
    • #65894
      r_guayaquil
      Participant

      Hi,

      Is there a way i can set as default the button text when adding a new external/affiliate product? I dont want the vendors to type any text they would like.

      Thank you!

      Attachments:
      You must be logged in to view attached files.
    • #66055
      WCFM Forum
      Keymaster

      HI,

      It’s possible to set default text and make that field non-editable for vendors.

      Please know me what you want to set as “Default Label”?

      Thank You

    • #66060
      r_guayaquil
      Participant

      Hi,

      Thats awesome. I want to set as defualt label “VER OFERTA”.

      Thanks a lot!

    • #66105
      WCFM Forum
      Keymaster

      HI,

      Please add this code snippet to your site –

      add_filter( 'wcfm_product_manage_fields_pricing', function( $pricing_fields, $product_id, $product_type ) {
      	if( isset( $pricing_fields['button_text'] ) ) {
      		$pricing_fields['button_text']['value'] = 'VER OFERTA';
      		$pricing_fields['button_text']['attributes'] = array( 'readonly' => true );
      	}
      	return $pricing_fields;
      }, 50, 3 );

      Thank You

    • #66150
      r_guayaquil
      Participant

      Hi,

      Thanks for the code. It works perfect!

      The vendors wont have any problems uploading their products with a csv file as long as the button text in the file is always VER OFERTA right?. Also, the code wont cause problems with updates ?

      Thank you so much!

    • #66251
      WCFM Forum
      Keymaster

      HI,

      The vendors wont have any problems uploading their products with a csv file as long as the button text in the file is always VER OFERTA right?. Also, the code wont cause problems with updates ?

      – Vendor will not able to change this and update will not hamper anything.

      Thank You

Viewing 5 reply threads
  • You must be logged in to reply to this topic.