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 AbstractLogger extends AbstractLoggerCore {} | |
class Address extends AddressCore {} | |
class AddressFormat extends AddressFormatCore {} | |
class AdminTab extends AdminTabCore {} | |
class AdminController extends AdminControllerCore {} | |
class Alias extends AliasCore {} | |
class Attachment extends AttachmentCore {} | |
class Attribute extends AttributeCore {} |
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
ALTER TABLE `PREFIX_cart_product` ADD `id_customization` INT(10) NOT NULL DEFAULT 0 AFTER `id_product_attribute`; | |
ALTER TABLE `PREFIX_cart_product` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_cart`, `id_product`, `id_product_attribute`, `id_customization`, `id_address_delivery`); | |
ALTER TABLE `PREFIX_order_detail` ADD `id_customization` INT(10) NULL DEFAULT 0 AFTER `product_attribute_id`; |
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
public function deleteProduct($id_product, $id_product_attribute = null, $id_customization = null, $id_address_delivery = 0) | |
{ | |
if (isset(self::$_nbProducts[$this->id])) { | |
unset(self::$_nbProducts[$this->id]); | |
} | |
if (isset(self::$_totalWeight[$this->id])) { | |
unset(self::$_totalWeight[$this->id]); | |
} |
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
public function addCustomizedData(array $products, Cart $cart) | |
{ | |
return array_map(function (array $product) use ($cart) { | |
$product['customizations'] = []; | |
$data = Product::getAllCustomizedDatas($cart->id, null, true, null, (int)$product['id_customization']); | |
if (!$data) { | |
$data = []; |
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
ALTER TABLE `ps_cart_product` ADD `id_customization` INT(10) NOT NULL DEFAULT '0' AFTER `id_product_attribute`; | |
ALTER TABLE `ps_cart_product` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_cart`, `id_product`, `id_product_attribute`, `id_customization`, `id_address_delivery`); | |
ALTER TABLE `ps_order_detail` ADD `id_customization` INT(10) NULL DEFAULT '0' AFTER `product_attribute_id`; | |
ALTER TABLE `ps_customized_data` ADD `price` DECIMAL(20,6) NOT NULL DEFAULT '0' , ADD `weight` DECIMAL(20,6) NOT NULL DEFAULT '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
ALTER TABLE `ps_cart_product` ADD `id_customization` INT(10) NOT NULL DEFAULT '0' AFTER `id_product_attribute`; | |
ALTER TABLE `ps_cart_product` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_cart`, `id_product`, `id_product_attribute`, `id_customization`, `id_address_delivery`); | |
ALTER TABLE `ps_order_detail` ADD `id_customization` INT(10) NULL DEFAULT '0' AFTER `product_attribute_id`; | |
ALTER TABLE `ps_customized_data` ADD `id_module` INT(10) NOT NULL DEFAULT '0', ADD `price` DECIMAL(20,6) NOT NULL DEFAULT '0', ADD `weight` DECIMAL(20,6) NOT NULL DEFAULT '0'; | |
ALTER TABLE `ps_customization_field` ADD `is_module` TINYINT(1) NOT NULL DEFAULT '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
function getSourceFileOfNode(node) { | |
while (node && node.kind !== 256 /* SourceFile */) { | |
if (node.text == 'NgModule'){ | |
return node; | |
} | |
node = node.parent; | |
} | |
return node; | |
} |
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
/\/|'/; | |
'.ctd_panel_content .ctd_preview'; |
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 di.inputs FROM ps_dynamicproduct_input di | |
LEFT JOIN ps_customized_data cd ON di.id_customization = cd.id_customization | |
LEFT JOIN ps_customization cu ON cu.id_customization = cd.id_customization | |
LEFT JOIN ps_orders od ON od.id_cart = cu.id_cart | |
WHERE od.id_order = 8 | |
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
private $param$: $type$; | |
public get$name$ () { | |
return this.$param$; | |
} | |
public set$name$ ($param$: $type$) { | |
this.$param$ = $param$; | |
} |
OlderNewer