Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Italian vat and fiscal code

    On the italian release on zencart (www.zen-cart.it) there is 2 fields named p.iva and fiscal code (codice fiscale) very important for italian law and fiscal.
    I've added a new template, and after that I see these value on all pages of admin-order, create account, edit account and so on, but I cannot receive/see these values into email order confirmation, admin side and customer side.
    Why? Where I was wrong?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Italian vat and fiscal code

    The emails are generated in the includes/classes/order.php file and must reference/include the two new fields in order for them to appear in the order email sent to first the customer and then the admin.
    To ensure understanding across languages, when you say you created a new template, to what are you referring? Store side template? Admn template? Email template?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    order.zip
    New template is only for store front. No edit admin or email template
    If you see the attached order file, you can find the "vat, cf" new query and installed plugin https://www.zen-cart.com/downloads.php?do=file&id=1771

  4. #4
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    order.php.zip
    Hello try this file
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  5. #5
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    same issue (stesso problema)
    What are difference from my file?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Italian vat and fiscal code

    While not where I can easily perform a difference in files, it does appear that the second provided one has less usage of billing_vat and billing_cf.

    The issue with the emails is that the function: send_order_email has no reference to either of these two fields from any of the places that the value(s) have been stored... (session, orders table, billing information, etc...

    Both of these would need to be addressed by both methods of email (assuming that both html and standard text are offered by the site to the customer). They both would need to be in an applicable sequence to be displayed and may need to modify the html template for that email so that it would include the two new fields as/where appropriate.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    the attache order.php file in previous post is the same to original version of italina zencart realease, where vat and fiscalcode print well of email order confirmation. Only I've added the twitch wholesale plugin. Maybe other files that generate email confirmation order?

  8. #8
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    Hai ragione non ci sono le voci ne in admin ne sulle email, ho aggiunto questo su
    admin/order.php under ENTRY_EMAIL_ADDRESS
    PHP Code:
                  <!-- IVA_INTRACOM  -->
                  <tr>
                    <td class="main"><strong><?php echo ENTRY_VAT?></strong></td>
                    <td class="main"><?php echo $order->billing['vat']; ?></td>
                  </tr>
                  <!-- IVA_INTRACOM Fine -->
                  <!-- Codice fiscale -->
                  <tr>
                    <td class="main"><strong><?php echo ENTRY_CF?></strong></td>
                    <td class="main"><?php echo $order->billing['cf']; ?></td>
                  </tr>        
                  <!-- Codice fiscale fine -->
    spuntano le voci iva e CF ma non riesco ad estrapolare i dati, magari in due ci riusciamo.

    You're right, there are rumors it in admin it on email, I added this on admin / order.php under ENTRY_EMAIL_ADDRESS sprouting rumors VAT and CF but I can not extrapolate the data in two maybe we succeed.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  9. #9
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    634
    Plugin Contributions
    0

    Default Re: Italian vat and fiscal code

    I don't understand why can't see vat & fiscalcode into email. The file is the same as the stock italian version.
    Maybe issue linked with payment/shipping?

  10. #10
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Italian vat and fiscal code

    Does this mean that the italian version already provides emails that include the vat and the fiscal code? I do/did see that the includes/functions/function_customers.php file I think it was that adds the vat and fiscal code for a customer into their address information. That may be what is missing?

    Goto github via above link, at top of screen, type in vat for the search field, 3 pages of results showing each file in which vat is included.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Dispplaying Both With VAT and Without VAT Prices on Products
    By BoydBreen in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Jul 2013, 09:44 PM
  2. Vat & fiscal code in the order
    By lanparty77 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 12 Oct 2011, 09:39 PM
  3. How to add PRICE With VAT and Without VAT?
    By staycu in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2011, 06:16 PM
  4. I have a problem with cupons and vat - EU VAT Mod
    By oberheimer in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Feb 2011, 04:31 PM
  5. Replies: 0
    Last Post: 28 Feb 2008, 03:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR