From d00c7eccc83b38680dac62022a2d71676688e81b Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Mon, 18 Dec 2023 16:37:26 +0100 Subject: [PATCH] Corretto l'url delle immagini dei prodotti ! --- .env.development | 2 +- emails/ecommerce/makeorder/it/html.pug | 2 +- emails/ecommerce/order_completed/it/html.pug | 2 +- emails/ecommerce/order_confirmed/it/html.pug | 12 ++++++------ emails/newsletter/it/html.pug | 12 ++++++------ 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.env.development b/.env.development index 0e58657..4e08963 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ DATABASE=test_PiuCheBuono UDB=paofreeplanet PDB=mypassword@1A SEND_EMAIL=0 -SEND_EMAIL_ORDERS=0 +SEND_EMAIL_ORDERS=1 PORT=3000 appTelegram_TEST=["1","13"] appTelegram=["1","13"] diff --git a/emails/ecommerce/makeorder/it/html.pug b/emails/ecommerce/makeorder/it/html.pug index b40bbd6..a9f632e 100755 --- a/emails/ecommerce/makeorder/it/html.pug +++ b/emails/ecommerce/makeorder/it/html.pug @@ -19,7 +19,7 @@ html } body(yahoofix, style="background: #ffffff") - - var baseimg = baseurl + '/statics/' + - var baseimg = baseurl + '/' span(id='body_style', style='display:block') table(cellpadding="10", cellspacing="0", width="600", align="center") tr diff --git a/emails/ecommerce/order_completed/it/html.pug b/emails/ecommerce/order_completed/it/html.pug index 81500cf..5f4a874 100755 --- a/emails/ecommerce/order_completed/it/html.pug +++ b/emails/ecommerce/order_completed/it/html.pug @@ -19,7 +19,7 @@ html } body(yahoofix, style="background: #ffffff") - - var baseimg = baseurl + '/statics/' + - var baseimg = baseurl + '/' span(id='body_style', style='display:block') table(cellpadding="10", cellspacing="0", width="600", align="center") tr diff --git a/emails/ecommerce/order_confirmed/it/html.pug b/emails/ecommerce/order_confirmed/it/html.pug index 089d136..0381c0e 100755 --- a/emails/ecommerce/order_confirmed/it/html.pug +++ b/emails/ecommerce/order_confirmed/it/html.pug @@ -19,7 +19,7 @@ html } body(yahoofix, style="background: #ffffff") - - var baseimg = baseurl + '/statics/' + - var baseimg = baseurl + '/'; span(id='body_style', style='display:block') table(cellpadding="10", cellspacing="0", width="600", align="center") tr @@ -40,11 +40,11 @@ html - var index = 0 each product in orders.items - - var descr = product.name - - var img = product.img - - var price = product.price - - var after_price = product.after_price - - var qty = product.quantity + - var descr = product.order.product.name + - var img = product.order.product.img + - var price = product.order.product.price + - var after_price = product.order.product.after_price + - var qty = product.order.product.quantity - index = index + 1 table(cellpadding="0", cellspacing="0", width="100%", summary="", border="0", align="center") diff --git a/emails/newsletter/it/html.pug b/emails/newsletter/it/html.pug index e8d423d..c02fe88 100755 --- a/emails/newsletter/it/html.pug +++ b/emails/newsletter/it/html.pug @@ -11,11 +11,11 @@ -} - var urlcal = baseurl + '/calendario-eventi/' -- var imginstagram = baseurl + '/statics/images/images/footer-instagram-icon.png' -- var imgtwitter = baseurl + '/statics/images/images/footer-twitter-icon.png' -- var imgyoutube = baseurl + '/statics/images/images/footer-youtube-icon.png' -- var imgfb = baseurl + '/statics/images/images/footer-facebook-icon.png' -- var baseimg = baseurl + '/statics/' +- var imginstagram = baseurl + '/images/images/footer-instagram-icon.png' +- var imgtwitter = baseurl + '/images/images/footer-twitter-icon.png' +- var imgyoutube = baseurl + '/images/images/footer-youtube-icon.png' +- var imgfb = baseurl + '/images/images/footer-facebook-icon.png' +- var baseimg = baseurl + '/' doctype html html head @@ -50,7 +50,7 @@ html tr td.logoContainer a(href=baseurl, title='logo') - img.logo(src=baseurl+"/statics/images/logo.png", height=dataemail.height_logo) + img.logo(src=baseurl+"/images/logo.png", height=dataemail.height_logo) tr td.testomail