0
Hi, for some reason the vatid value is not saved in the database when the order is created. Can you help me?
Responses (8)
  • Accepted Answer

    Saturday, November 03 2018, 10:24 AM - #Permalink
    0
    VAT id is not imported from Virtuemart, as it is a custom field. a little bit of coding is necessary on the plugin in order to import custom fields.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 03 2018, 12:18 PM - #Permalink
    0
    Ok, I have modified

    - /plugins/system/invoicemanager_virtuemart/invoicemanager_virtuemart.php
    - /administrator/components/com_invoices/tables/invoice.php
    - mysql table invoices_invoices

    and now I can store the vatid and other fields in mysql.
    Now vatid is correctly displayed in invoices, but the other fields? What other files do I need to change to make it work? I need to add a token that gets data from mysql table invoices_invoices.
    Thanks in advantage.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 04 2018, 10:27 AM - #Permalink
    0
    well in that case you would also need to modify the /views/invoice/tmpl/default.php that is where the invoice is rendered.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 04 2018, 12:37 PM - #Permalink
    0
    Ok, online and pdf version gets new tokens, but not in admin invoice preview.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, November 04 2018, 12:38 PM - #Permalink
    0
    yes, for that you need to add the tokens into the VUE.js processor, in file /helpers/helpers.php
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 05 2018, 04:22 PM - #Permalink
    0
    Added tokens in the array $search in /helpers/helpers.php file, without results
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 05 2018, 04:22 PM - #Permalink
    0
    well if you only add them to the $search it will do nothing, you have also to replace them...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 05 2018, 07:34 PM - #Permalink
    0
    ok :D sorry for my basic php knowledge. Now it works... Thank you for help!
    The reply is currently minimized Show
Your Reply