- migliorie grafiche

This commit is contained in:
Surya Paolo
2023-12-30 23:58:35 +01:00
parent b6204c7612
commit 6313476d54
2 changed files with 12 additions and 4 deletions

View File

@@ -745,15 +745,21 @@ module.exports.getmsgorderTelegram = async function (ordersCart) {
msg += '<br>Note: ' + ordersCart.note; msg += '<br>Note: ' + ordersCart.note;
msg += '<br><br>Lista Prodotti:'; msg += '<br><br>Lista Prodotti: (🍊🥑🍋)';
for (const ord of ordersCart.items) { for (const ord of ordersCart.items) {
msg += '<br>'; msg += '<br>';
let qtystr = '' let qtystr = ''
if (ord.order.quantity > 0) if (ord.order.quantity > 0)
qtystr += 'Ordinate: ' + ord.order.quantity qtystr += ord.order.quantity;
if (ord.order.quantitypreordered > 0) if (ord.order.quantitypreordered > 0)
qtystr += ' Pre-Ordinate: ' + ord.order.quantitypreordered qtystr += ord.order.quantitypreordered;
msg += '✅ [' + qtystr + '] ' + ord.order.product.productInfo.name + ' (' + ord.order.price + ' € ' + (ord.order.after_price ? ord.order.after_price : '') + ' Tot=' + ord.order.TotalPriceProduct + '€ )';
qtystr += ' ' + tools.getUnitsMeasure(ord.order.product.productInfo.weight, true);
if (ord.order.quantitypreordered > 0)
qtystr += ord.order.quantitypreordered + ' Pre-Ordinati'
msg += '✅ [' + qtystr + '] ' + ord.order.product.productInfo.name + ' a ' + ord.order.price + '€ ' + (ord.order.after_price ? ord.order.after_price : '') + '<br>Totale = ' + ord.order.TotalPriceProduct + '€';
} }
msg += '<br>'; msg += '<br>';

View File

@@ -144,6 +144,8 @@ const SiteSchema = new Schema({
showViewUsers: { type: Boolean, default: false }, showViewUsers: { type: Boolean, default: false },
showViewBooking: { type: Boolean, default: false }, showViewBooking: { type: Boolean, default: false },
showViewProfile: { type: Boolean, default: false }, showViewProfile: { type: Boolean, default: false },
showViewCart: { type: Boolean, default: false },
showViewOrders: { type: Boolean, default: false },
enablePwa: { type: Boolean, default: false }, enablePwa: { type: Boolean, default: false },
lang: { lang: {
type: Number, type: Number,