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
{** If product has a required customization field **} | |
{if $product.customizable == 2} | |
show link | |
{else} | |
show cart btn | |
{/if} |
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
import { defineConfig } from 'cypress'; | |
import { seed } from './cypress/plugins/seed'; | |
import vitePreprocessor from 'cypress-vite'; | |
export default defineConfig({ | |
video: false, | |
e2e: { | |
baseUrl: 'http://localhost:5173', | |
specPattern: '**/*.cy.ts', |
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 extends ProductCore | |
{ | |
public static function getPriceStatic($id_product, $usetax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = null, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true, $id_customization = null) | |
{ | |
// si HT, on désactive l'ecotaxe | |
if (!$usetax) { | |
$with_ecotax = false; | |
} | |
return parent::getPriceStatic($id_product, $usetax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address, $specific_price_output, $with_ecotax, $use_group_reduction, $context, $use_customer_price, $id_customization); // TODO: Change the autogenerated stub |
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
document.addEventListener('dp-loaded', function() { | |
const field_name = 'price_wt'; | |
window.dp_calc.subscribe(function(calc) { | |
if (!calc.input_fields || !calc.input_fields[field_name]) return | |
$('.precio_IVA').text(calc.input_fields[field_name].value_formatted) | |
}) | |
}); |
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
import Main from "Main.svelte" | |
window.mountMyWidget = function(target, props) { | |
const main = new Main({ | |
target: target, | |
props | |
}) | |
console.log(main) | |
} |
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); |