问题标签 [orocommerce]
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.
orocrm - Oro JavaScript 模块化不起作用
可悲的是,我的 oro 自定义 javascript 组件没有加载
我的 reuiqrejs.yml 在这里
公司/Bundle/BarcodeBundle/Resources/config/requirejs.yml
公司/Bundle/BarcodeBundle/Resources/public/js/app/components/custom-component.js
我的 custom-component.js 如下
我对加载组件的看法是
公司/Bundle/BarcodeBundle/Resources/views/Barcode/test.html.twig
我不知道代码有什么问题
Oro 参考:https ://oroinc.com/orocrm/doc/2.3/cookbook/how-to-replace-inline-javascript-with-component
orocommerce - 使用 API 仅从 orocommerce 获取已发货的订单
我想从我的 orocommerce 商店获取具有内部状态的订单,这些订单将对此进行过滤。在文档中我没有得到任何帮助。感谢乌特帕尔梅蒂
php - 变量“organization_name”不存在。在 OroCommerce 中
我在 OroCommerce 中创建了一个新实体:Task.php
并且数据库具有任务值。
然后我在 Resources/config/oro/ 中创建一个 datagrids.yml
然后,我创建一个控制器和视图
以及 Resources/views/Task/task.html.twig 中的视图
最后,我访问如下网址:http://localhost/task
它给了我一些错误: 变量“organization_name”不存在 我应该如何解决这个错误?
谢谢!!
-- 添加异常堆栈跟踪
变量“organization_name”不存在。
500 内部服务器错误 - Twig_Error_Runtime
堆栈跟踪
在第 3 行的 vendor/oro/customer-portal/src/Oro/Bundle/FrontendBundle/Resources/views/Organization/logo_frontend.html.twig -
{% 设置路由 = 'oro_frontend_root' %}
{% if isDesktopVersion() %}
在 Twig_Template ->getContext (array('assetic' => array('debug' => false, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'ws' => array('port' => '8080', 'host' => '*', 'path' => ''), 'commerce' => array('layout' => 'OroFrontendBundle:: base.html.twig'), 'bap' => array('layout' => '::base.html.twig'), 'oro_ui_content_provider_manager' => object(ContentProviderManager), 'route' => 'oro_frontend_root') , '机构名称')
symfony - 如何将新列添加到现有表 symfony - orocommerce
我正在开发一个orocommerce项目,它使用 vendor/oro/bundles/bundle_name
在该捆绑包中,它有一个名为“ oro_customer_user ”的实体,因此我想使用我的新捆绑包在该表中添加一个新列。
我已经搜索了很多,但仍然没有运气。
几乎所有的解决方案都说我需要修复供应商/oro/bundles/bundle_name,我不想这样做。
但是仍然有一些解决方案说我需要使用DoctrineMigrationsBundle但我不确定。
https://symfony.com/doc/master/bundles/DoctrineMigrationsBundle/index.html
请指教,谢谢:)
php - OroCommerce - Symfony:如何覆盖实体(自定义客户注册帐户)
我正在尝试制作一个自定义客户注册表单
,为此,我必须覆盖这 2 个文件:
CustomerBundle\Layout\DataProvider\FrontendCustomerUserRegistrationFormProvider.php
和
CustomerBundle\Form\Type\FrontendCustomerUserRegistrationType.php
所以我把这段代码放在config/config.yml中,它按预期工作:
但我也需要覆盖实体,因此它将在客户注册表单中呈现一个新列。
我注意到FrontendCustomerUserRegistrationType有这个代码:
所以CustomerBundle\Resources\config\services.yml也有:
所以我已经使用config/config.yml覆盖它:
但它不起作用,它会抛出一个错误:
表单的视图数据应该是 My_Code\Bundle\CustomerBundle\Entity\CustomerUser 类的实例,但它是 Oro\Bundle\CustomerBundle\Entity\CustomerUser 类的实例。您可以通过将“data_class”选项设置为 null 或添加将 Oro\Bundle\CustomerBundle\Entity\CustomerUser 类的实例转换为 My_Code\Bundle\CustomerBundle\Entity\CustomerUser 的实例的视图转换器来避免此错误。
我认为它会使FrontendCustomerUserRegistrationType的覆盖出错并失败。
这是我重写的FrontendCustomerUserRegistrationType.php:
哦,我还使用oro:migrations在“oro_customer_user”表中创建了成功 2 列“test”和“test2” 。
只需询问您何时需要检查更多文件,感谢您的帮助:)
php - Symfony - Orocommerce:表单的视图数据应该是实体的一个实例
我正在尝试覆盖 Symfony-Orocommerce 中的表单/类型,起初,我收到了这个错误:
无法从“Oro\CustomerBundle\Entity\CustomerUser”类型的对象中读取索引“namePrefix”,因为它没有实现 \ArrayAccess。
在关注这篇文章之后,我遇到了另一个我无法解决的错误:(
表单的视图数据应该是 MyCode\Bundle\CustomerBundle\Entity\CustomerUser 类的一个实例,但它是 Oro\Bundle\CustomerBundle\Entity\CustomerUser 类的一个实例。您可以通过将“data_class”选项设置为 null 或...来避免此错误
这是我的代码:
MyCode\Bundle\CustomerBundle\Controller\CustomerUserController.php
我在这里所做的就是将CustomerUserType更改为MyCodeCustomerUserType,仅此而已。
CustomerBundle\Resources\config\services.yml
MyCode\Bundle\CustomerBundle\Form\Type\CustomerUserType.php
感谢阅读,祝你有美好的一天:)
php - Symfony - Orocommerce:缺少表“t0”的 FROM 子句条目
我正在尝试自定义 symfony - orocommerce 的“ updateAction ”客户,在尝试了很多之后,它在日志文件中抛出了这个错误消息:
未捕获的 PHP 异常 Doctrine\DBAL\Exception\TableNotFoundException:“执行时发生异常:
t1.pbs_approval_number AS pbs_approval_number_27, t1.business_name AS business_name_28, t1.australian_business_number AS australian_business_number_29, t1.business_phone_number AS business_phone_number_30, t1.fax_number AS fax_number_31, t1.pharmacy_owner_full_name AS pharmacy_owner_full_name_32, t1.ahpra_no AS ahpra_no_33, t1.group_name AS group_name_34, t1. group_contact_name AS group_contact_name_35, t1.group_contact_email AS group_contact_email_36, t1.group_contact_phone_number AS group_contact_phone_number_37, t1.customer_id AS customer_id_38, t1.owner_id AS owner_id_39, t1.website_id AS website_id_40, t1.organization_id AS organization_id_41 FROM oro_customer = user't. 带参数 [“94”]:australian_business_number AS australian_business_number_29, t1.business_phone_number AS business_phone_number_30, t1.fax_number AS fax_number_31, t1.pharmacy_owner_full_name AS pharmacy_owner_full_name_32, t1.ahpra_no AS ahpra_no_33, t1.group_name AS group_name_34, t1.group_contact_name AS group_contact_name_35, t1.group_contact_email AS group_contact_email_36, t1.group_contact_phone_number AS group_contact_phone_number_37, t1.customer_id AS customer_id_38, t1.owner_id AS owner_id_39, t1.website_id AS website_id_40, t1.organization_id AS organization_id_41 FROM oro_customer_user t1 WHERE t0.id = ?' 带参数 [“94”]:australian_business_number AS australian_business_number_29, t1.business_phone_number AS business_phone_number_30, t1.fax_number AS fax_number_31, t1.pharmacy_owner_full_name AS pharmacy_owner_full_name_32, t1.ahpra_no AS ahpra_no_33, t1.group_name AS group_name_34, t1.group_contact_name AS group_contact_name_35, t1.group_contact_email AS group_contact_email_36, t1.group_contact_phone_number AS group_contact_phone_number_37, t1.customer_id AS customer_id_38, t1.owner_id AS owner_id_39, t1.website_id AS website_id_40, t1.organization_id AS organization_id_41 FROM oro_customer_user t1 WHERE t0.id = ?' 带参数 [“94”]:t1.ahpra_no AS ahpra_no_33, t1.group_name AS group_name_34, t1.group_contact_name AS group_contact_name_35, t1.group_contact_email AS group_contact_email_36, t1.group_contact_phone_number AS group_contact_phone_number_37, t1.customer_id AS customer_id_38, _1.0_id AS_owner_id_39, tweb owner.id_39, organization_id AS organization_id_41 FROM oro_customer_user t1 WHERE t0.id = ?' 带参数 [“94”]:t1.ahpra_no AS ahpra_no_33, t1.group_name AS group_name_34, t1.group_contact_name AS group_contact_name_35, t1.group_contact_email AS group_contact_email_36, t1.group_contact_phone_number AS group_contact_phone_number_37, t1.customer_id AS customer_id_38, _1.0_id AS_owner_id_39, tweb owner.id_39, organization_id AS organization_id_41 FROM oro_customer_user t1 WHERE t0.id = ?' 带参数 [“94”]:身份证=?带参数 [“94”]:身份证=?带参数 [“94”]:
SQLSTATE [42P01]:未定义表:7 错误:缺少表“t0”第 1 行的 FROM 子句条目:...rganization_id_41 FROM oro_customer_user t1 WHERE t0.id = '9
可以这样写:
在搜索了这个之后,似乎我没有以正确的方式扩展实体,所以我可以知道该怎么做吗?
这是我的代码:
MyCode\Bundle\CustomerBundle\Controller\CustomerUserController
MyCode\Bundle\CustomerBundle\Entity\CustomerUser
请帮忙,谢谢。
orocommerce - orocommerce 安装失败您请求了一个不存在的参数“web_backend_prefix”
我完成了在 azure CentOS 和 nginx 上安装 orocommerce 的所有步骤。所以现在我得到以下错误
$ ./bin/console oro:install --env=prod --timeout=900
“在 ParameterBag.php 第 102 行:您请求了一个不存在的参数“web_backend_prefix”。
有人有想法吗?
orocrm - ORO CRM:在 config.yml 中找不到捆绑资源
添加 AppBundle 后,我正在尝试从头开始安装 ORO CRM。
bin/console oro:install --env=prod
出现以下错误:
在 FileLoader.php 第 168 行:
[Symfony\Component\Config\Exception\FileLoaderLoadException] @AppBundle/Resources/config/config 中不存在文件“@AppBundle/Resources/config/config.yml”(位于:/home/project/src/config)。 yml(从“/home/project/src/config/config.yml”导入)。确保“AppBundle”包在应用程序内核类中正确注册和加载。如果捆绑包已注册,请确保捆绑包路径“@AppBundle/Resources/config/config.yml”不为空。
在 FileLocator.php 第 71 行:
[Symfony\Component\Config\Exception\FileLocatorFileNotFoundException] 文件“@AppBundle/Resources/config/config.yml”不存在(在:/home/project/src/config)。
php - 如何使我的简单 Datagrid 具有默认的前端样式?
这就是我当前数据网格的显示方式:
我试图扩展核心frontend-product-search-grid
,但它似乎也没有风格
我的datagrids.yml
我的产品bybrand.yml
我的产品bybrand.html.twig
这就是我希望它展示的方式: