All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COALESCE(SUM(od.product_quantity), 0) FROM ps_dynamicproduct_dropdown_option op | |
LEFT JOIN ps_dynamicproduct_field f on op.id_field = f.id_field | |
LEFT JOIN ps_dynamicproduct_input_field inf on op.id_field = inf.id_field | |
LEFT JOIN ps_dynamicproduct_input inp on inf.id_input = inp.id_input | |
LEFT JOIN ps_order_detail od on inp.id_customization = od.id_customization | |
WHERE op.sku = 'XXXXXX' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { gettable, settable, runed } from './runes.js' | |
const createFruit = (obj) => { | |
// An optional object of default values if the provided prop is nullish | |
const defaults = { | |
color: 'purple', | |
consumed: true, | |
count: 0 | |
} |
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.176.0 (2023-09-14)
- Add possibility to change item dimensions unit (mm,cm,m,in,ft) (ed2c0bc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// path: /override/classes/order/Order.php | |
class Order extends OrderCore | |
{ | |
public function __construct($id = null, $id_lang = null) | |
{ | |
$this->webserviceParameters['associations']['order_rows']['fields']['additional_content'] = ['required' => false, 'xlink_resource' => 'customizations']; | |
parent::__construct($id, $id_lang); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Product | |
{ | |
public static function getProductProperties($id_lang, $row, Context $context = null) | |
{ | |
$row = self::dynamicGetProductProperties($id_lang, $row, $context); | |
if (!Module::isEnabled('groupinc') || (empty($row) || !isset($row) || !isset($row['id_product']))) { | |
return $row; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inserted = false | |
try | |
inserted = db.insert(.....) | |
catch | |
console.log(e) | |
if (inserted) | |
throw redirect(....) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT od.id_order_detail FROM ps_dynamicproduct_input d | |
LEFT JOIN ps_order_detail od ON od.id_customization = d.id_customization | |
WHERE d.date_upd < NOW() - INTERVAL 30 DAY | |
AND ISNULL(od.id_order_detail) | |
LIMIT 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Fichier /classes/M4OrderDetail.php | |
Ligne 142 | |
// add customization summary | |
$customization_summary = ''; | |
if ((int) $detail['id_customization']) { | |
$value = (int) Db::getInstance()->getValue(' | |
SELECT `value` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `pr_tunisoft_customization_field` | |
( | |
`id_customization_field` int(11) NOT NULL, | |
`id_module` int(11) NOT NULL, | |
PRIMARY KEY (`id_customization_field`, `id_module`) | |
) ENGINE = InnoDb | |
DEFAULT CHARSET = utf8; |