How to access the data for Custom created table in merchant portal gui module.
I have created a custom database table in TestArticle Module → PyzTestArticle now i want to fetch data for that table in Merchant portal Gui module i have setup all the things using facade dependency but always i get 0 data row from that table not able to acess the data for that table .
what ACL entity or ACL metrchant portal configuration i have to do for using that.
Answers
-
We have a dedicated course to the Merchant portal:
The backend part is the same as for any backoffice module. You need to have a controller to provide the data to the view.
The course goes step by step on the frontend part but also shows you how to create a new module, customer´s orders, and show that data in an angular table
0 -
Thanks for replying , i am facing issue while creting a new component in existing module name SalesMerchantPortalGui want to create a new component so what process i have to follow for that i have extended entry.ts and created mp.public-api . The content of entry.ts us import { registerNgModule } from '@mp/zed-ui';
import { ComponentsModule } from './app/components.module';
registerNgModule(ComponentsModule);and mp.public-api is
export * from './app/test-article-table/test-article-table.module';export * from './app/components.module';and This is my component.module.ts : -
import { NgModule } from '@angular/core';import { WebComponentsModule } from '@spryker/web-components';import { ButtonAjaxComponent, ButtonAjaxModule } from '@spryker/button';import { ChipsComponent, ChipsModule } from '@spryker/chips';import { CardModule, CardComponent } from '@spryker/card';import { TabsModule, TabsComponent, TabComponent } from '@spryker/tabs';
import { TestArticleTableComponent } from './test-article-table/test-article-table.component'; import { TestArtileTableModule } from './test-article-table/test-article-table.module'; import { ComponentsModule as CoreComponentsModule } from '@mp/sales-merchant-portal-gui';
@NgModule({ imports: [ CoreComponentsModule, WebComponentsModule.withComponents([ TestArticleTableComponent ]), ButtonAjaxModule, ChipsModule, CardModule, TabsModule, TestArtileTableModule ],})export class ComponentsModule {}i created one component also render this in view but the component is not apearing in my view when i load on browser only conponent tag is there not the conent inside that coponent , what procedure i have to follow if want to create new component in existing module.
0 -
it's pretty hard to see if there is any issue in the code. In the course, we do exactly what you're trying to accomplish. Follow that example where we create the component and render it:
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random