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
.dp_group_options_qty .content { | |
display: grid; | |
grid-auto-flow: column; | |
grid-template-rows: 1fr 1fr; | |
grid-auto-columns: auto; | |
justify-items: center; | |
justify-content: start; | |
column-gap: .5rem; | |
row-gap: 0; | |
} |
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 | |
/** @var $id_product */ | |
/* @var DynamicInputField[] $input_fields */ | |
/* @var $dropdown */ | |
/* @var $dropdown_ref */ | |
use DynamicProduct\classes\models\dynamic_fields\DropDownField; | |
use DynamicProduct\classes\models\DynamicField; |
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 | |
// The ID of the current product | |
/** @var int $id_product */ | |
// The selected combination ID | |
/** @var int $id_attribute */ | |
// The current selected quantity | |
/** @var int $quantity */ |
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' |
NewerOlder