Toutes les modifications notables de ce projet seront documentées dans ce fichier. Consultez les directives de commit pour plus d'informations.
- CartButton utilise la configuration
dynamic_tabpour activer le bon onglet
| window.dp = { | |
| hook(container) { | |
| const product_actions = document.querySelector('.product-actions,.js-product-actions'); | |
| if (product_actions) product_actions.prepend(container); | |
| }, |
| Document 1: | |
| { | |
| "pageContent": "You can use the getField function to get the properties of a field.\n\njs\n\nwindow.dp.methods.getField(field_name);\nvar props = window.dp.methods.getField(\"width\");\n\nThe value of props will have this shape\n\njs\n\n{\n active: 1\n common: 0\n description: \"\"\n dir: \"/dynamicproduct/images/field\"\n ext: \".jpg\"\n favorite: 0\n force_id: false\n id: 66\n id_group: \"0\"\n id_product: 11\n id_unit: 0\n image_url: null\n init: 0\n label: \"Width\"\n linked: \"0\"\n name: \"width\"\n options: []\n position: \"2\"\n settings: {\n color: null\n dir: null\n display_in_popup: null\n display_secondary_value_price: null\n display_value_price: null\n ext: \".jpg\"\n extensions: null\n extra: null\n force_id: false\n hide_when_empty: 1\n id: null\n id_field: 66\n id_unit: null\n init: null\n max: null\n max_date: null\n max_size: null\n min: null\n min_date: null\n min_height: null\n min_width: null |
| You are a helpful assistant for managing DynamicProduct logic and answering questions about DynamicProduct. | |
| Available tools: | |
| <tools> | |
| [46]: | |
| - name: create_field | |
| description: Create a new dynamic field | |
| parameters: | |
| type: object | |
| properties: |
| Product Configuration: | |
| active: true | |
| required: false | |
| exclude: false | |
| displayed_price: 0 | |
| displayed_price_label: | |
| display_starting_from: true | |
| display_dynamic_price: false | |
| display_customization_cost: false | |
| recalc: false |
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "jsonMode": "expressionData", | |
| "jsonData": "={{ $json.documentation }}", | |
| "textSplittingMode": "custom", | |
| "options": {} | |
| }, | |
| "id": "0a52ad6e-9c9c-415f-b1ec-f1782678cdd5", |
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "jsonMode": "expressionData", | |
| "jsonData": "={{ $json.data }}", | |
| "textSplittingMode": "custom", | |
| "options": {} | |
| }, | |
| "id": "38837bb1-6a07-4a22-b400-072aac4af3ac", |
| { | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "id": "071695a2-8238-4f65-864d-d7600c30895b", | |
| "cid": "Ikx1Y2FzIFBleXJpbiI", | |
| "name": "Simple Memory", | |
| "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", | |
| "creator": "Lucas Peyrin", | |
| "position": [ |
| SELECT o.id_order, | |
| d.id_design, | |
| d.id_product, | |
| fl.label as label, | |
| layer_lang.label as selected, | |
| CONCAT('https://myshop/', dp.preview) as image | |
| FROM `pr_orders` o | |
| JOIN `pr_productdesigner_design` d ON o.id_cart = d.id_cart | |
| JOIN pr_customized_data cd ON cd.value = d.id_design | |
| JOIN pr_customization c ON c.id_customization = cd.id_customization AND c.in_cart |
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "jsonMode": "expressionData", | |
| "jsonData": "={{ $json.data }}", | |
| "textSplittingMode": "custom", | |
| "options": {} | |
| }, | |
| "id": "38837bb1-6a07-4a22-b400-072aac4af3ac", |