Consulting on the Rental Pro Inventory Modification on Vendor Dashboard

MultivendorX Pro

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #191693
      Chris
      Participant

      Hi support,

      I’m trying to improve the user experience of my vendors in adding an inventory before uploading a product. I’ve removed some parts which is not needed for my vendors and would like to change the words to suit my product needs so that my vendors could understand better. However, I was facing difficulties in locating the file related to the codes on line 106 to line 118 in modules/rental-pro/templates/html-endpoint-add-inventory.php. Can you please guide me to locate that file?

    • #191694
      Chris
      Participant
      This reply has been marked as private.
    • #191695
      Chris
      Participant
      This reply has been marked as private.
    • #191704

      Chris, if you simply want to rename the fields then all you have to do is use a plugin like loco plugin and rename the fields.
      You can get the instruction here: https://multivendorx.com/docs/knowledgebase/multivendorx-translation-guide/

    • #191735
      Chris
      Participant

      Hi, thanks for suggesting the usage of translate plugin.

      However, I needed to delete the three fields in the top (highlighted in red) and rename all the fields in the bottom (highlighted in pink). I see that you’re using php foreach loop to loop through a block of code for each element in an array in line 106 to 118. Specifically, for title parts, I think I have to edit the origin files of the code used in line 106 to line 108 to delete the title of the top three fields (highlighted in red) and rename all the fields in the bottom (highlighted in pink). For options part, I also have to edit the origin files of the code used in line 110 to line 118 to delete the options for the top three fields (highlighted in red). Do you know which file should be edited for these parts? I tried to search for it but I just couldn’t found it. Your help would be much appreciated. Thanks

    • #191795
      promita
      Keymaster

      Hi @Chris, To delete the three fields add this below code in functions.php of your current active theme.

      
      add_filter('mvx_frontend_dashboard_rental_pro_taxonomies', 'delete_fields', 10, 1);
      function delete_fields($link) {
          $link = array('resource', 'person', 'deposite', 'attributes', 'features');
          return $link;
      }
      
      Copy
    • #191835
      Chris
      Participant

      Hi, thanks for the code. For renaming part, the loco translate doesn’t have these specific strings to translate but its okay, I modified and added some if statements code to achieve my desired outcome and it works. You may close this thread now. Thanks.

    • #191844

      Thanks for informing . If you need help or face issues in future please create a new thread.

Viewing 7 reply threads

The topic ‘Consulting on the Rental Pro Inventory Modification on Vendor Dashboard’ is closed to new replies.