简体   繁体   English

在自定义页面上显示OpenCart模块中的内容

[英]Display content from OpenCart Module on custom page

Novice coder here, so please be kind: 新手编码器在这里,所以请客气:

I want to duplicate the content from a homepage testimonial module in OpenCart 3.0.2.0 and display it as a single page showing all the testimonials from most recent to oldest. 我想从OpenCart 3.0.2.0的主页推荐模块中复制内容,并将其显示为一个页面,显示从最新到最旧的所有推荐。

I have tried duplicating and renaming the module itself (incl. all filenames & contents), but must be missing something as I can't get it to perform as the original module did, let alone customize its output on the front end. 我尝试过复制和重命名模块本身(包括所有文件名和内容),但是必须丢失一些内容,因为我无法像原始模块那样执行它,更不用说在前端自定义其输出了。

What would be great is creating a module that just takes the original output and then I can format it the way I want through a page template. 最好是创建一个仅接收原始输出的模块,然后我可以通过页面模板以所需的方式对其进行格式化。

Any help would be hugely appreciated, as I'm up against the limits of my understanding now, and the web only provides tantalising glimpses of parts of the answer...TIA 任何帮助将不胜感激,因为我现在已经超出了我的理解范围,并且网络仅提供了部分答案的诱人信息……TIA

A Screen shot would be nice that explain what you tried 屏幕快照会很好地解释您的尝试

copying information page or shipping module or payment module ? 复制信息页面或运输模块或付款模块?

If your goal is to get a dedicated page to show the module content then this might help you. 如果您的目标是获得一个专门的页面来显示模块内容,那么这可能会对您有所帮助。 You can create an empty information page, use its path in creating a new layout and then you can assign the module to that layout. 您可以创建一个空的信息页面,在创建新布局时使用其路径,然后可以将模块分配给该布局。 This will show the module on that information page and it will look like a dedicated page for that module. 这将在该信息页面上显示该模块,并且看起来像是该模块的专用页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM