- Aggiornamento template mail (tramite i campi in HTML)

- Aggiornato Carrello
This commit is contained in:
Surya Paolo
2023-12-28 00:50:35 +01:00
parent 15d831eecc
commit f23047bcd5
10 changed files with 96 additions and 29 deletions

View File

@@ -589,7 +589,9 @@ module.exports.getmsgorderTelegram = async function (ordersCart) {
msg += '<br>';
msg += '<br>Totale Prodotti: ' + ordersCart.totalQty + ordersCart.totalQtyPreordered;
let totqta = ordersCart.totalQty + ordersCart.totalQtyPreordered;
msg += '<br>Totale Prodotti: ' + totqta;
msg += '<br>Totale Ordine: ' + ordersCart.totalPrice + ' € 💰';

View File

@@ -40,15 +40,22 @@ const storehouseSchema = new Schema({
website: {
type: String,
},
stockQty: { // in magazzino
type: Number,
default: 0,
email_html_header: {
type: String,
default: '',
},
bookableQty: { // Quantità prenotabili
type: Number,
default: 0,
email_html_footer: {
type: String,
default: '',
},
email_html_makeorder: {
type: String,
default: '',
},
email_html_order_confirmed: {
type: String,
default: '',
},
});
var Storehouse = module.exports = mongoose.model('Storehouse', storehouseSchema);