Updates
Update a template for Electronic Invoicing
The 2018 Electronic Invoicing version, introduced in December 2018, includes the features needed to comply with the new electronic invoicing regulations.
On the site, when a customer enters billing details it is now possible to also collect the recipient code or PEC for the electronic invoice. This field is then shown in the customer record, in the order, and therefore on the invoice.
The new templates you can install from the Template Store already include the new field. Older templates must be updated; below we explain how to do it.
Changes can be made via the admin Template Editor or with any editor and an FTP program to upload files to the site.
-
Open the
"/includes/billing-address.html"file (do not confuse with"print-billing-address.html"which will be modified later) and add:
just before the line:<!-- .if invoiceRecipient --> <div> <label for="design-invoice-recipient">{Invoice recipient}:</label> <div> <!-- .show invoiceRecipient --> <!-- .end --> <div style="clear:left">{Invoice recipient note}</div> </div> </div> <!-- .end if --><div class="street"> -
Open the
"/includes/print-billing-address.html"file and add:
just before the line:<!-- .if invoiceRecipient --> <div>{Print invoice recipient}: <!-- .show invoiceRecipient --> <!-- .end --></div> <!-- .end if --><!-- .if billingPhoneNumber --> -
If you are using the Template Editor, go to Translations > Italian and under the Template tab add, at the end, the following entries:
If instead you are editing files via FTP, edit theInvoice recipient=Codice o PEC fatturazione Invoice recipient note=Compilare se si desidera la fattura elettronica Print invoice recipient=Destinatario fattura elettronica"/languages/it/template.ini"file in the template folder.If you use multiple languages on the site, the texts for other languages are shown below:
English
Invoice recipient=Electronic invoice recipient Invoice recipient note=Fill in with you PEC or recipient code if you need an electronic invoice Print invoice recipient=Electronic invoice recipientFrench
Invoice recipient=Destinataire de facture électronique Invoice recipient note=Entrez votre PEC ou votre code de destinataire si vous souhaitez une facture électronique Print invoice recipient=Destinataire de facture électroniqueSpanish
Invoice recipient=Destinatario factura electrónica Invoice recipient note=Rellene con su PEC o código de destinatario si desea una factura electrónica Print invoice recipient=Destinatario factura electrónica - Check the changes in the template preview and if they look good, apply the template to the site.
Update a template to the 2018 GDPR version
The 2018 GDPR version, introduced in May 2018, includes the features needed to comply with the new GDPR privacy regulations.
When you collect a customer's personal data on the site, you must inform them about the data processing performed and, if necessary, request consent.
The new templates provided with the update ("Respy Classic GDPR", "Respy Wide GDPR" and "Axis") are already prepared. Older templates must be updated; below we explain how to do it.
Changes can be made via the admin Template Editor or with any editor and an FTP program to upload files to the site.
Registration and checkout pages
-
Create a new file named for example
"/includes/privacy-processings.html"with the following content:<!-- .if processings --> <div class="privacy-processings"> <!-- .for processings --> <div class="processing"> <label class="title"> <!-- .show consent --><!-- .end --> <span><!-- .show title --> Data processing <!-- .end --></span> <!-- .if isConsentRequired --><span class="design-required">*</span><!-- .end --> </label> <div class="description"> <span><!-- .show description --> We collect data from our customers for advertising purposes <!-- .end --></span> <span class="more-info"><!-- .show moreInfo --> (More info...) <!-- .end --></span> </div> </div> <!-- .end for --> </div> <!-- .end if --> -
Include the
privacy-processings.htmlfile in the following template pages:sign-up-user.htmluser-data.htmlcheckout-addresses.html(orcheckout-form.html)checkout-quote-request.html
by adding the following code:
between the<!-- .include "/includes/privacy-processings.html" --><form>and</form>tags, preferably before the buttons at the end of the form. -
Add in the Template Editor under Translations > System (or directly to the
"languages/it/system.ini"file) the following line:
If you have multiple site languages, do this for all languages.PrivacyProcessingMoreInfo=(Maggiori informazioni...) -
Modify the template CSS by adding the following code:
.privacy-processings { padding: 1em 0; } .privacy-processings .processing { margin-bottom: 1.5em; } .privacy-processings .processing:last-child { margin-bottom: 0; } .privacy-processings .processing label { cursor: pointer; } .privacy-processings .processing input[type="checkbox"] { position: relative; top: 2px; } .privacy-processings .processing .title { padding: .35em 0; } .privacy-processings .processing .description { padding: 0 1.4em; word-break: break-word; } .privacy-processings .processing .more-info a:hover { text-decoration: underline; } .privacy-processings .processing .design-required { color: red; } .sign-up-user-html .privacy-processings { padding-top: 0; } .sign-up-user-html .privacy-processings .processing, .user-data-html .privacy-processings .processing { margin: 0 2px; padding: .35em .625em .75em; } .design-highlight-consent-required { background-color: #FFF1A8; }If you are using an unmodified Respy Wide or Respy Classic template, just add this CSS to the end of the
"/css/base.css"file. If you are using a custom template, you may need to adapt the CSS code to the template in use. - Check the changes in the template preview and if they look good, apply the template to the site.
Orders and quotes pages
To add processing and consents also on orders and quotes already made, allowing a customer to see consents given, revoke a consent, or give a consent not previously given, follow these instructions to modify the template:
-
Modify the template
view.htmlpage by adding the following code immediately after the closing<div>tag with class"document-frame":<!-- .if processings --> <form method="post"> <div> <!-- .include "includes/privacy-processings.html" --> <div class="buttons"> <input type="submit" value="Salva consensi"> </div> </div> </form> <!-- .end if --> - Check the changes in the template preview and if they look good, apply the template to the site.