Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.176.0 (2023-09-14)
Features
- Add possibility to change item dimensions unit (mm,cm,m,in,ft) (ed2c0bc)
<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.
<?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); |
<?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; |
let inserted = false | |
try | |
inserted = db.insert(.....) | |
catch | |
console.log(e) | |
if (inserted) | |
throw redirect(....) |
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; |
<?php | |
Fichier /classes/M4OrderDetail.php | |
Ligne 142 | |
// add customization summary | |
$customization_summary = ''; | |
if ((int) $detail['id_customization']) { | |
$value = (int) Db::getInstance()->getValue(' | |
SELECT `value` |
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; |
{* | |
add this code to the modal.tpl file after {foreach from=$product.attributes item="property_value" key="property"} | |
file path /themes/[your theme]/modules/ps_shoppingcart/modal.tpl | |
or /modules/ps_shoppingcart/modal.tpl | |
screenshot: https://share.cleanshot.com/tD7VrX5k | |
If you want to hide the preview image then add this code to your theme: | |
div#blockcart-modal .dsn-side-thumbnail{ | |
display: none; | |
} |
document.addEventListener("dp-loaded", function () { | |
document.querySelector(".dp_step_next").addEventListener("click", function () { | |
if (!document.querySelector(".tn_invalid")) { | |
var topPos = window.jQuery(".dp_steps").offset().top - 70 | |
window.scrollTo({ | |
top: topPos, | |
behavior: "smooth" | |
}) | |
} | |
}) |