Skip to content

Instantly share code, notes, and snippets.

++ Delegado Efectivo
Nombre
Apellidos
Dirección
Residencia
Teléfono
Teléfono de emergencia
fecha de nacimiento
Género
'use strict';
/**
* Controller handling search, category, and suggestion pages.
*
* @module controllers/Search
*/
/* API Includes */
var PagingModel = require('dw/web/PagingModel');
importPackage( dw.system );
importPackage( dw.customer );
importPackage( dw.util );
importPackage( dw.catalog );
importPackage( dw.object );
function GetCategoriesOverrides(Category)
{
if (empty(Category)) {
return;
importPackage( dw.util );
importPackage( dw.system );
importPackage( dw.catalog );
var ProductUtils = require('app_storefront_core/cartridge/scripts/product/ProductUtils.js');
function execute(Product, CurrentVariationModel) {
var pvm : ProductVariationModel = empty(CurrentVariationModel) ? Product.variationModel : CurrentVariationModel;
if (Product.isMaster()) {
//get the first selected variant
<shipping_order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="shipping_order_advice_instruction_log_email">
<body>body</body>
<creator>Shipment ASN Task</creator>
<date>date</date>
<is_html>true</is_html>
<reply_to>[email protected]</reply_to>
<send>true</send>
<send_from>[email protected]</send_from>
<template_merge_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<object_key>
<id>object_id</id>
</object_key>
<object_type>object_type</object_type>
</template_merge_request>
<shipping_order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="shipping_order_advice_instruction_adjust">
<shipping>total_shipping</shipping>
<handling>0</handling>
<reset>not_set</reset>
</instruction>
</instructions>
<key>
<guid>shipping_order_guid</guid>
<shipping_order_advice_request xmlns=“urn:demandware.com:bf:api:core:v1” xmlns:i=“http://www.w3.org/2001/XMLSchema-instance” i:dummy=“”>
<instructions>
<instruction i:type=“shipping_order_advice_instruction_fulfill”>
<items>
<item>
<key>
<id>item_id</id>
</key>
<quantity>qty</quantity>
</item>
<invoice_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="invoice_advice_instruction_sync_item">
<data>
<attributes>
<attribute>
<key>
<id>trackNumber</id>
</key>
<values>
<customer_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="customer_advice_instruction_log_event">
<description>Example Event</description>
<source>Location of event source</source>
</instruction>
</instructions>
<key>
<guid>customer_guid</guid>
</key>