Remove Invoice Settings for Vendor

WCMp PDF Invoice

Remove Invoice Settings for Vendor Resolved

Viewing 4 reply threads
  • Author
    Posts
    • #80903
      sumanth
      Participant

      Remove Invoice settings from vendor dashboard . i want default admin settings should be applied to vendor.

    • #81558

      Hi @sumanth, in order to add this modification i.e. default admin settings should be applied to vendor, this needs good amount of custom code.

      We will share a procedure on how to do that. For example, if admin enabled the Subtotal, the same should be enabled for vendor. For this follow this :
      Override this template by copying it to

      yourtheme/wcmp-pdf-invoices/vendor-pdf-invoices-settings.php
      Copy

      , in line no 56 :

      <?php $setting = get_option( 'wcmp_pdf_invoices_settings_name', true ); ?>
       <div class="form-group">
       <label class="control-label col-sm-3"><?php _e('Subtotal', 'wcmp-pdf_invoices'); ?></label>
       <div class="col-md-6 col-sm-9">
       <input type="checkbox" id="is_subtotal_vendor" name="is_subtotal_vendor" class="checkbox" value="Enable" <?php if ($setting['is_subtotal_admin'] != '') echo 'checked="checked"'; ?>>
      </div>  
      </div>
      Copy

      Now, apply the same changes for the rest of the fields.

    • #81882
      sumanth
      Participant
      This reply has been marked as private.
    • #83288
      This reply has been marked as private.
    • #96649

      I presume that your issue is resolved, since, we haven’t heard back from you.
      We are marking this thread as resolved.
      Kindly open a new thread if you face any further query

Viewing 4 reply threads

The topic ‘Remove Invoice Settings for Vendor’ is closed to new replies.

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price