[英]Shopware 6 custom entity fields are not updated via admin api
我在 entities.xml 中定義了一個自定義實體: 當我使用管理員 api 插入新的自定義實體時,我沒有更新所有字段。 請求 url: 請求正文: 實體已創建,但字段“media_hash”和“data”仍為 null。 我如何更新這些字段? ...
[英]Shopware 6 custom entity fields are not updated via admin api
我在 entities.xml 中定義了一個自定義實體: 當我使用管理員 api 插入新的自定義實體時,我沒有更新所有字段。 請求 url: 請求正文: 實體已創建,但字段“media_hash”和“data”仍為 null。 我如何更新這些字段? ...
[英]Shopware 6 custom endpoint for admin api doesn't return only the requested fields
我有一個用於返回一些產品的管理員 api 的自定義端點。 當我調用此端點時,我只想接收標准中描述的產品 ID 和名稱。 但我得到了完整的 object。 我在下面發布了一個示例響應: 我怎樣才能只獲得請求的字段(id,name)? ...
[英]How to add entity extension in Shopware 6 App?
我想查詢某個Shopware app的商品listing中商品的分類,這樣就可以查詢到所有分類的customFields。 這甚至可以通過應用程序實現嗎? 我已經嘗試通過導航頁面加載。 當我覆蓋 box-standard.html.twig 並訪問產品時,我無法訪問那里的類別。 對於每個產品,我都 ...
[英]How to authenticate Shopware 6 <base-app-url> correctly
使用Admin SDK可以進一步豐富 Shopware 6 中的管理。如應用程序安裝指南中所述,需要在應用程序的清單文件中提供入口點 (base-app-url)。 由於每個請求都需要進行適當的身份驗證,因此此 GET 請求也需要進行身份驗證。 但是,我無法以與使用來自模塊的 GET 請求成功執行此 ...
[英]App registration on localhost or own domain
我正在開發 Shopware 6 應用程序,在注冊過程中遇到了第一個問題。 當我單擊install時,出現錯誤Could not sign payload with store secret for app: app_name 。 注冊請求甚至從未到達應用程序服務器,因為此錯誤阻止了發送注冊請求。 ...
[英]How can I set lineItem data payload in shopware6 using html inputs
我正在使用一些輸入來創建購物車訂單項: 我如何將有效負載設置為此以與購物車收集器/處理器中的 getPayload() 或 getPayloadValue() 一起使用,因為使用 要么 不起作用 ...
[英]How can I access the names of variant products in Shopware 6?
如何通過產品存儲庫獲取變體產品的名稱? 例如 T 恤 L。或者只有選項。 這是我的代碼:$cri2 = new Criteria(); $cri2->addFilter(new EqualsFilter('parentId', $itemProductId)); $cri2->addF ...
[英]How to make product properties aggregations in Shopware 6 app script?
我想在應用程序腳本中制定條件以獲取產品的聚合屬性(ManyToManyAssociationField“屬性”)。 我已經知道獲取像“制造商”這樣的 ManyToOneAssociationField 的聚合很重要 但我不明白如何為 ManyToManyAssociationField 做這件事 ...
[英]How to access request data in Shopware 6 custom endpoint?
我想訪問通過 POST 發送到應用程序腳本的自定義端點的數據。 請求服務似乎不包含任何內容。 為了 我明白了 有沒有辦法訪問隨請求一起發送到應用程序腳本的自定義端點的數據? ...
[英]Shopware 6 PayPal Invoice Purchase does not include order_transaction custom_fields swag_paypal_pui_payment_instruction on some orders
我們偶爾會觀察到 PayPal 發票采購訂單中的缺失數據。 我們有一個中間件可以監聽“state_enter.order_transaction.state.paid”webhook,然后將訂單轉發到 ERP 系統。 到目前為止,我們已經在 order_transaction => cust ...
[英]Shopware 6 App - Override .../storefront/page/product-detail/buy-widget.html.twig
當我嘗試覆蓋 buy-widget.html.twig 文件時。 Shopware 什么都不做。 只有索引覆蓋有效。 但不是子文件。 我的代碼是: 為什么這不起作用? ...
[英]Custom Route in an App for using in Cloud Shops
是否可以在雲商店中也有效的應用程序中添加自定義路由? 我在文檔中找不到任何相關信息。 ...
[英]Shopware 6 App | How to translate custom fields
我們構建了一個應用程序並想要 Shopware 6 自定義字段的片段/翻譯 ( https://developer.shopware.com/docs/guides/plugins/apps/custom-data/custom-fields ) 是否可以為每個類別添加翻譯文本?<custom ...
[英]How to verify Shopware 6 App confirmation request correctly with Node.js
因此,我開始深入研究 Shopware 6 應用程序開發,並希望根據官方文檔創建我自己的應用程序。 但是,我更喜歡使用 Node.js/Express 而不是 PHP 來開發應用程序。盡管如此,我還是對如何在官方 Shopware AppBundle 中處理注冊和確認請求感到鼓舞。 特別是Reque ...
[英]Shopware 6 Update product price via App Scripting
是否有可能在全球范圍內降低產品價格? 通過 Shopware 應用程序? 我已經在 product-page-loaded 掛鈎上試過了,但它不起作用。 ...
[英]fetching cart data on login page in shopware app
在我們的應用程序中,我們試圖在登錄/注冊頁面 (@Storefront/storefront/component/account/register.html.twig) 上獲取購物車數據。 以下是我們現在正在做的事情: 我們從https://developer.shopware.com/docs/g ...
[英]How to Log data in a SaaS Cloud Shop
據我所知,Shopware 不允許設置權限“log_entry”,因此使用 API 端點“api/log-entry”向 SaaS 實例中的 Shopware 日志添加條目。 :( 最好的解決方案是為此添加自己的“日志”實體並通過管理中自己的列表視圖向店主提供數據嗎? 如果是這樣,那就太糟糕了,因 ...
[英]How to save custom input field from checkout page to order in Shopware6 app?
我將自定義輸入字段添加到結帳頁面,如下所示: 我需要保存此輸入字段中的信息以進行訂購。 這不是插件,這是一個應用程序集成。 似乎應用程序沒有事件訂閱者。 我怎樣才能實現這個字段保存? 我查看了 Shopware 6 應用程序文檔,但沒有找到正確的解決方案。 ...
[英]shopware 6 admin module for app not showing app in menu
我制作了一個 shopware 應用程序,並在 manifest.xml 中添加了管理模塊的標簽: 您知道為什么管理模塊沒有顯示在菜單中嗎? 該應用程序已安裝並激活。 模塊源是有效的 url。 稍后編輯我的清單中確實有設置標簽。 我在整個清單下方發布 該應用程序的注冊工作正常。 但是管理模塊沒有顯示 ...
[英]How can cart table associate with another table?
我有表 table_name(id, cart_token, data, created_at, updated_at ),它想使用令牌列 (table_name.cart_token = cart.token) 與購物車表相關聯。 只要購物車表沒有 CartEntity 和 CartDefini ...