问题标签 [orders]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 订单插入,同一订单中的多个项目
我有一个购物车,它在 Sessions 中存储每件商品的 itemId 和数量,直到我们结账。
客户付款后,我继续将信息插入数据库的 ORDERS 表中。
我的问题是:我应该如何处理来自有多个项目的客户的一个订单?多个数量很简单,因为我的 ORDERS 表有一个“数量”字段。但是多个项目呢?推荐什么?我应该为同一个订单的每件商品插入不同的行吗?
目前我有这个:
php - 创建 WooCommerce 订单
我需要对我的商店进行一些自定义,但我不知道如何使用 WC_Order 类在 PHP 中创建 WooCommerce 订单。我怎样才能做到这一点?
这是我尝试过的代码:
php - WooCommerce 将商品添加到订单
我正在尝试将一个项目添加到现有订单中,但它无法正常工作......每次我执行它下面的代码广告和空项目,有什么帮助吗?
$item 是 var 女巫从我的另一个订单接收项目本身,我放了一个 print_r($item) 并且看起来没问题。
magento - 在 Magento 中创建订单时覆盖库存检查
有没有办法强制 Magento 将商品添加到订单中,即使它缺货并且配置设置为跟踪库存并且不允许延期交货?换句话说,我希望能够以编程方式创建一个带有项目的订单,并且无论项目库存的状态和后端的设置如何,我都不希望它失败。
magento - 如何设置最低采购订单金额
客户下单时,如何设置最低订单金额?
ie) 订单总额不低于 500 美元。
我知道如何获得总订单金额。但我不知道在哪里放置该代码以及在哪里检查
如果客户购买的总额低于 500 美元,他们将不允许在购物车上结账。
magento - Magento 1.7.0.2 启用贝宝标准后,我的帐户中不显示订单
我对 magento 的订单有一些关键问题。当我启用贝宝标准付款方式后,订单不会显示在我的帐户部分。我也启用了IPN。但它也对我不起作用。我正在使用 Magento 1.7.0.2 版本。而且我确信它是为启用的贝宝标准支付创建的。
提前谢谢你!
crm - CRM 2011 保存订单时出现跟踪错误 - 在 MetadataCache 中找不到名称为“new_customtestingentity”的实体
这是一个谜题!
当我将 CRM 2011 报价转换为订单时,我可以保存订单记录并照常使用。但是,当我单击“保存”按钮尝试创建新订单时,会出现一个对话框,显示“发生错误”并且记录无法保存。CRM 跟踪如下,但我可以理解问题所在 - 我什至从未创建过名为“new_customtestingentity”的实体
我尝试过的事情:-a)将状态码字段重命名为其原始名称(我之前已更改它们)b)禁用表单中的 onsave javascript 事件 c)重新启用默认功能区菜单(我隐藏了一些未使用的 bussons之前)
痕迹:
Crm 异常:消息:在 MetadataCache 中找不到名称为“new_customtestingentity”的实体。错误代码:-2147217150 [2013-06-17 10:09:36.345] 处理:w3wp |组织:d8e7913e-0f93-45b7- ad9d-6a48d10b0de3 |线程:33 |类别:应用程序|用户:00000000-0000-0000-0000-000000000000 |级别:错误|ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ErrorInformation.LogError ilOffset = 0x17
>MSCRM 错误报告:
错误:引发了“System.Web.HttpUnhandledException”类型的异常。
错误消息:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
错误详细信息:引发了“System.Web.HttpUnhandledException”类型的异常。
源文件:不可用
行号:不可用
堆栈跟踪信息:[ArgumentException:此实体的无效状态:salesorder:0 参数名称:状态] 在 Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state) 在 Microsoft.Crm.Application.Platform.AttributeCollection .CreateOptionSetValueFromValue(String name, Object value, AttributeType attributeType, String entityLogicalName) at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(Entity entity, String name, String childAttributeName, Object parentProperty, AttributeMetadata attributeMetadata, Object value, IOrganizationContext context) at Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement) 在 Microsoft.Crm 中的 Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name, Object value, Boolean throwIfKeyExists)。Application.Forms.EndUserForm.RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd) 在 Microsoft.Crm.Application .Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler() 在 Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application .Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd) 在 Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler .ConfigureFormHandler() 在 Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender (EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd) 在 Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler .ConfigureFormHandler() 在 Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender (EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd) 在 Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler() 在 Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft .Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI .Page.ProcessRequestMain(布尔型 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint)Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd) 在 Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler() 在 Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft .Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI .Page.ProcessRequestMain(布尔型 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint)Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI。 System.Web.UI.Page.ProcessRequestMain 处的 Control.PreRenderRecursiveInternal()(布尔值 includeStagesBeforeAsyncPoint,布尔值 includeStagesAfterAsyncPoint)Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI。 System.Web.UI.Page.ProcessRequestMain 处的 Control.PreRenderRecursiveInternal()(布尔值 includeStagesBeforeAsyncPoint,布尔值 includeStagesAfterAsyncPoint)
[HttpUnhandledException:引发了“System.Web.HttpUnhandledException”类型的异常。] System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System .Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequest() 在 System.Web.UI.Page.ProcessRequest(HttpContext context) 在 System.Web.HttpApplication.CallHandlerExecutionStep。 System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值&完成同步)
[2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x57
意外:没有错?[2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x23B System.Web.HttpUnhandledException:Microsoft Dynamics CRM 遇到错误。管理员或支持人员的参考编号:#5F67091F:System.Web.HttpUnhandledException (0x80004005):引发了“System.Web.HttpUnhandledException”类型的异常。---> System.ArgumentException:此实体的无效状态:salesorder:0 参数名称:Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state) at Microsoft.Crm.Application.Platform.AttributeCollection 的状态. ProcessRequest() 在 System.Web.UI.Page.ProcessRequest(HttpContext context) 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值&同步完成)[2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-0000-00000-00000000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?Boolean& completedSynchronously) [2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-000000000-00000-00000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?Boolean& completedSynchronously) [2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-000000000-00000-00000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?
magento - 如何重写或添加自定义选项卡到销售订单视图?
我想将自定义选项卡添加到销售订单视图页面。我尝试了以下代码,但没有任何反应。
我的module.xml
代码如下:
我的块类是:
上面的代码有什么错误吗?
php - 添加新列后,Amin 面板订单网格搜索不起作用?
我在管理面板订单网格中添加了三个新列(社区版本 1.7.0.2)但现在搜索不起作用。当我按Purchased On
日期搜索时,它显示以下错误消息。
我的收藏如下。
请问有什么建议吗?
magento - Magento 在订单中添加操作
我正在使用 Magento 社区 1.7。当我转到 Sales-->Orders 时,我会看到所有订单。目前我可以勾选某些订单,并且使用操作下拉菜单,我可以打印发票、取消、保留等。我想知道是否有任何方法可以添加诸如“要求退款”、“欺诈”之类的操作。这些操作不必做任何事情,只需更改状态,以便我以后可以清楚地看到这些订单的状态。有任何想法吗?