Forum categories

Marketorders (заказы в маркетплейсе). Есть проблема

дата заказа и дата оплаты покупки. статус неоплаченного заказа

webitproff
webitproff • 2024-07-13 14:03 #79

Можно подправить таким образом, - открываем

/public_html/themes/marketplace/plugins/marketorders/marketorders.purchases.tpl

находим в районе строки №52

[{ORDER_ROW_PAID|date('d.m.Y H:i', $this)}]

и меняем на :

<!-- IF {ORDER_ROW_PAID} -->
[{ORDER_ROW_PAID|date('d.m.Y H:i', $this)}]									
<!-- ELSE -->
{ORDER_ROW_DATE|date('d.m.Y H:i', $this)}
<!-- ENDIF -->

таким образом, если есть дата оплаты - проставляем её, а если еще платежа не было - ставим дату создания заказа.

как и гарантийный срок по оплате, если он установлен в настройках N-дней, - наступает с дня оплаты.

 

This post was edited by webitproff (2024-07-13 14:23, 2 years ago)
🗿

🧙‍♂️ Well met, good traveler! Fate has guided your steps to our humble realm. Here, wise sages and masters of the coding craft ⚒️📜 gather to unravel the mysteries of the code ✨⚙️, share their knowledge, and add new chapters to our chronicles.
⬅️ To the left lie ancient scrolls 📚 filled with forgotten wisdom. ⬆️ Straight ahead, friendly folk offer counsel 💬 to those in need. ➡️ To the right, you may become a chronicler ✍️ yourself, sharing your craft and leaving words of wisdom for those yet to come.
📝 Delay no longer—tell us the name by which you are known, complete the rite of registration 🛡️, and join our fellowship!
🏰 Our brotherhood holds no secret initiation, yet many halls remain closed to wandering guests, for some knowledge 💎 is reserved for those who choose to walk this path beside us.