Install Guide for Noodlemans Europe VAT Plugin for CubeCart 5

This install guide has been written for version 5.2.2 of CubeCart and all references to skin modifications have been made using the Kurouto skin. if you are installing in another version or using another skin the line numbers referenced may be different. If there is any doubt open a support ticket for assistance. You will need a demo license key to be able to use this plugin, please request one from support if you do not have one.

SUPPORT IS AVAILABLE FROM http://www.noodleman.co.uk/support

  1. Disable Store Cache

    Log into your store admin area, navigate to "Store Settings -> Advanced" and set "Enable Caching" to Disabled. Save the change




  2. Extract Files

    Extract the files from the .zip file to your servers "modules/plugins" directory. The final path should be "modules/plugins/Europe_VAT"




  3. Add Items To Your Skin

    Open the file "skins/<YOURSKIN>/templates/content.register.php" with your favourite text editor. The javascript code below enables the live checking of VAT numbers.

  4. Around line number 2 FIND:
    AFTER ADD ON A NEW LINE:


  5. Add Items To Your Skin

    Open the file "skins/<YOURSKIN>/templates/content.register.php" with your favourite text editor. The code below adds the extra form item to your skin. You can place this anywhere within your form, but for reference an example line has been given.

  6. Around line number 52 FIND:
    AFTER ADD ON A NEW LINE:


  7. Add Items To Your Skin

    Open the file "skins/<YOURSKIN>/templates/content.checkout.confirm.php" with your favourite text editor. The javascript code below enables the live checking of VAT numbers.

  8. Around line number 25 FIND:
    AFTER ADD ON A NEW LINE:


  9. Add Items To Your Skin

    Open the file "skins/<YOURSKIN>/templates/content.checkout.confirm.php" with your favourite text editor. The code below adds the extra form item to your skin. You can place this anywhere within your form, but for reference an example line has been given.

  10. Around line number 71 FIND:
    AFTER ADD ON A NEW LINE:


  11. Add a new hook

    Open the file "classes/user.class.php" with your favourite text editor. The code below adds a new hook to CubeCart

  12. Around line number 338 FIND:
    AFTER ADD ON A NEW LINE:


  13. Add a new hook

    Open the file "admin/sources/customers.index.inc.php" with your favourite text editor. The code below adds a new hook to CubeCart

  14. Around line number 312 FIND:
    AFTER ADD ON A NEW LINE:


  15. Add Items To Your Skin

    Open the file "admin/skins/default/templates/customers.index.php" with your favourite text editor. The javascript code below enables the live checking of VAT numbers and adds new fields to the edit customer screen.

  16. Around line number 133 FIND:
    AFTER ADD ON A NEW LINE:


  17. Add a new hook

    Open the file "classes/cart.class.php" with your favourite text editor. The code below adds a new hook to CubeCart

  18. Around line number 785 FIND:
    REPLACE WITH:


  19. Add a new hook

    Open the file "classes/tax.class.php" with your favourite text editor. The code below adds a new hook to CubeCart

  20. Around line number 95 FIND:
    AFTER ADD:


  21. Enable The Plugin

    Logged into the admin area, navigate to "Modules --> Plugins", Enable the Europe VAT plugin and save the settings.

  22. Configure The Plugin

    Logged into the admin area, navigate to "Modules --> Plugins --> Europe VAT". Add your license key and enter the form option name.

  23. Refresh Hooks

    Logged into the admin area, navigate to "Settings --> Manage Hooks --> Europe VAT". Press the Save button. This step ensures that all the hooks are active.