- migliorie grafiche
This commit is contained in:
@@ -745,15 +745,21 @@ module.exports.getmsgorderTelegram = async function (ordersCart) {
|
||||
msg += '<br>Note: ' + ordersCart.note;
|
||||
|
||||
|
||||
msg += '<br><br>Lista Prodotti:';
|
||||
msg += '<br><br>Lista Prodotti: (🍊🥑🍋)';
|
||||
for (const ord of ordersCart.items) {
|
||||
msg += '<br>';
|
||||
let qtystr = ''
|
||||
if (ord.order.quantity > 0)
|
||||
qtystr += 'Ordinate: ' + ord.order.quantity
|
||||
qtystr += ord.order.quantity;
|
||||
if (ord.order.quantitypreordered > 0)
|
||||
qtystr += ' Pre-Ordinate: ' + 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 += ord.order.quantitypreordered;
|
||||
|
||||
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>';
|
||||
|
||||
@@ -144,6 +144,8 @@ const SiteSchema = new Schema({
|
||||
showViewUsers: { type: Boolean, default: false },
|
||||
showViewBooking: { type: Boolean, default: false },
|
||||
showViewProfile: { type: Boolean, default: false },
|
||||
showViewCart: { type: Boolean, default: false },
|
||||
showViewOrders: { type: Boolean, default: false },
|
||||
enablePwa: { type: Boolean, default: false },
|
||||
lang: {
|
||||
type: Number,
|
||||
|
||||
Reference in New Issue
Block a user