Translate Invoice

WCMp PDF Invoice

Resolved
Viewing 34 reply threads
  • Author
    Posts
    • #115494
      James
      Participant

      Hello,
      How do i translate the invoice ?
      How can i change the info in the bottom of the invoice :
      website is “https://name.com” and i want it to be “name.com”
      email isn’t the one it suppose to be.
      Best Regards.
      James.

    • #115514

      Hello,

      Thank you for reaching out to us.

      Regarding invoice translation, you can use Loco translator to translate it.
      Kindly refer to our knowledge base document (https://multivendorx.com/knowledgebase/wcmp-translation-guide/) which will help you further.

      Regarding the other part, can you please provide us some more details about your query so that we can guide you more efficiently.

    • #115527
      James
      Participant

      Hello,

      thanks for the answer, my 2nd question was :

      i want to change the website and the email you can see at the bottom of an invoice how can i do it ?

      Best Regards.

      James.

    • #115547

      Hello,

      Can you please share a screenshot explaining where you want to change the website and email. It would be more helpful for the team to understand the requirement and guide you accordingly.

    • #115553
      James
      Participant
      This reply has been marked as private.
    • #115580

      Hi,
      using below filter you can change the text

      apply_filters('wcmp_pdf_invoice_pdf_footer_content', implode(' | ', $footer_content), $footer_content, $pdf_type, $args);
      Copy

      Regards,

    • #115610
      James
      Participant

      Hello,

      Thanks for the answer, but where do i put this code line ? 🙂

      Bests Regards.

      James.

    • #115628

      Hi,
      You have to add custom code using above filter and change the footer content.

      Kindly add your custom code on your active theme function.php using above filter.

      Let me know if you need any help.

      Regards,

    • #115705
      James
      Participant

      Hello,

      Do you have any tutorial to give me ? because i dont know how and where to acces the “theme function.php” and i don’t want to crash my website 😀

      An other question in my product customer have choice off option to select when they buy the product and a text to add on it. and on the invoice there is only the text, how do i do to make the option chosen by the customer on the invoice ?

      Best regards.

      James.

    • #115721

      Hello,

      Please add this code in the function.php of the current active theme :

      add_filter('wcmp_pdf_invoice_pdf_footer_content','wcmp_pdf_invoice_content_change', 10, 1);
      function wcmp_pdf_invoice_content_change(  $added_footer_content ){
      $new_footer_content = array('your_web_site', 'your_email');// change this as per your requirement.
      $added_footer_content = implode(' | ', $new_footer_content);
      return $added_footer_content;
      }
      Copy

      Regarding the other part, can you please explain your requirement further with the help of some screenshot / video clip so that we can guide you more efficiently.

    • #115753
      James
      Participant
      This reply has been marked as private.
    • #115786

      Our team is looking into it and will update you by tomorrow.

    • #115861

      Hi,
      our replies are inline:
      — The problems with adding this code in the function php of the theme it’s i need to do it ina child theme because it would erase the code at the next theme update. dont you have an other solution like updating you’r pluggins with the possibility to custom the footer
      >> Kindly create a child theme and add this on the child theme function.php

      — For the other part i will give you 2 screenshots then you will understand :
      >> to show more mata data on PDF please use below filter

      wcmp_pdf_extra_items_added
      Copy

      Regards,

    • #115902
      James
      Participant

      Hello,
      Thanks for this answer i have done the child theme,

      1rts part work fine but for the second part ca you give me the full code i have to add in function.pvp because the “wcmp_pdf_extra_items_added” doesn’t work.

      Best Regards.

      James.

    • #115963

      Hi,
      please add this code in the function.php of the current active theme :

      add_filter( 'wcmp_pdf_extra_items_added', 'wcmp_add_meta_data', 20, 1);
      function wcmp_add_meta_data($show_order_itemmeta){
      	$show_order_itemmeta = array(
                  '_qty',
      		    '_tax_class',
      		    '_product_id',
      		    '_variation_id',
      		    '_line_subtotal',
      		    '_line_subtotal_tax',
      		    '_line_total',
      		    '_line_tax',
      		    'method_id',
      		    '_vendor_item_commission',
      		    'cost',
      		    'commission',
      		    '_vendor_id',
      		    'vendor_id',
      		    '_vendor_order_item_id'
                          );
      return $show_order_itemmeta;
      }
      Copy

      Regards,

    • #115967
      James
      Participant
      This reply has been marked as private.
    • #115970
      James
      Participant

      It’s might be a problems from somewhere else now i can’t create the variation anymore from vendor dashbord when i click add nothing happen

      https://snipboard.io/gwCGfx.jpg

      Best Regards.

      James.

    • #116026

      Due to the weekend the team is away and we will update you by Monday.

    • #116108

      Hi,
      Our replies are inline:
      >> solve the problem :

      “-option1 : (color) : degraded pink
      -option2 : (type of font) : font 1
      -option3 : (thermostick) : with thermostick
      -text : Sasha”
      — For this you have to add the absolute meta key using the below hook

      wcmp_pdf_extra_items_added
      Copy

      kindly check out the meta key name and add this using this hook.

      >> It’s might be a problems from somewhere else now i can’t create the variation anymore from vendor dashbord when i click add nothing happen
      — Our latest version of WCMp supports bootstrap and the same bootstrap support needs to be created in our WCMp advance frontend manager. So that’s why we are facing issues in the variable product type on the vendor dashboard.
      Our team has already started working on it and we will try to update you by 2 to 3 working days.

      Regards

    • #116466
      James
      Participant

      Hello,
      The problem about bootstrap is solve.
      I use the code you gave me and it doesn’t work.
      The meta key name you talk about what is ?
      Each vendor can create different variation so there is no particular variation id every product can have different variations names
      Best Regards.
      James.

    • #116591

      Hi,
      as per our default flow vendor dashboard order details page shows the some default meta which is saved. kindly check the video – https://www.loom.com/share/63543785ee284930bd36443a3dfad913.
      and the rest of meta are saved from some 3rd party plugin.
      We get all product meta using Woocommerce function ‘get_formatted_meta_data()’ then show some particular product meta on the pdf.
      If you want to show them in the PDF than you have to add the meta on this above filter. to find out the meta keys then you have to add some custom code to checkout all meta keys.

      Regards,

    • #116596
      James
      Participant

      Hello,
      The variations are from “advanced frontend manager WCMp” i guess it’s you’r plugin.
      The texte name is from “Woocommerce product addon” but it show on the invoice already if i dont change the codes, i guess if i change the code i will have to ask “Woocommerce support” to have the meta to put in the code you gave me.
      But with the code you gave me it doesn’t show the variations from “advanced frontend manager” (variable product). so it doesn’t solve the prob :/
      Just to make sure you understand my demand i want to have the variations the customer selected on the invoice (when i use the code you gave me it doesn’t show it)
      And every product have different type of variations as you can see on this link :
      https://little-square.com/boutique/prenom-brode-sur-patch-forme-nuage-couleur-au-choix-police-decriture-au-choix-option-thermocollant/
      Best Regards.
      James.

    • #116601
      WCMp Admin
      Keymaster
      This reply has been marked as private.
    • #116615
      James
      Participant
      This reply has been marked as private.
    • #116666

      Kindly share the admin and vendor access (staging site) and FTP access, our team will be debugging your site. While sharing the access, please mark the replay as private.

    • #116679
      James
      Participant
      This reply has been marked as private.
    • #116770

      Hi,
      Kindly share the FTP details.

      Regards,

    • #116784
      James
      Participant
      This reply has been marked as private.
    • #116827

      Kindly share the FTP access details with us so that our team can debug and fix the issue that you are facing. Kindly mark the reply as private while sharing the access.

    • #116836
      James
      Participant
      This reply has been marked as private.
    • #116904

      Hi,
      To find out those meta key name we have to add some code and check those meta keys name on your end. To add and check we need the FTP of staging site. Without FTP we can’t check the meta keys name.
      Regards,

    • #116912
      James
      Participant

      Hello,
      I see, only the FTP is the same for the staging site and the real website because the staging site WP staging site pluggin.
      And i don’t want to mess with the real website :/
      Let’s me know where you can have the meta keys name in the FTP and i look at it for you and send you the meta keys names in private reply.
      Best Regards.
      James.

    • #116964

      Hi,

      So you have to find out the meta keys by some custom coding on your end. you can use this function get_formatted_meta_data( ” ) for get all meta data from the item variable.
      then find out the meta key and add those in the above filter.

      Regards,

    • #117003
      James
      Participant

      Hello,
      where do i use the function << get_formatted_meta_data (“) >> ?
      Best regards.
      James.

    • #117145

      Hi,
      using this function you can get all item meta but it needs some custom code to check out.
      On function.php using some hook and filter or any template override kindly check this on your end.

      Regards,

Viewing 34 reply threads

The topic ‘Translate Invoice’ is closed to new replies.