简体   繁体   English

我如何将商店添加到主页 - Shopware 5.7.6

[英]How can i Adding the shop to the homepage - Shopware 5.7.6

shopware 5.7.6 - I want to bring the products on the shop page to the homepage, but there are only sliders or single products on the element page in the shopping world section. shopware 5.7.6 - 我想把店铺页面的商品带到首页,但是购物世界部分的元素页面只有滑块或者单品。 I want to shoot all or at least the number of products I have determined, but I don't know how to do it.我想拍摄所有或至少我确定的产品数量,但我不知道该怎么做。

I assume you want to show all your products on the homepage, at least, that's how I understand your question.我假设你想在主页上展示你所有的产品,至少,这就是我理解你的问题的方式。 Unfortunately, I have to tell you, that there is no easy way to achieve this goal.不幸的是,我必须告诉你,实现这个目标没有简单的方法。

  1. Use the given elements使用给定的元素

You have already found the two elements you can use to show off your products.您已经找到了可以用来展示您的产品的两个元素。 But there is no way to automatically produce a page, where all products are shown at once.但是没有办法自动生成一个页面,所有产品都同时显示。 You have to do that on your own, with placing the elements on your page, with one element for each product.您必须自己完成,将元素放置在页面上,每个产品都有一个元素。

But you can use the category teaser to show some random products of a category.但是您可以使用类别预告片来显示某个类别的一些随机产品。 Depending on how you have structured your categories and products, it may make this task a bit easier.根据您构建类别和产品的方式,它可能会使这项任务更容易一些。 Maybe, but I never tried it, you can expand the category element in such a way that there is enough room for all products.也许吧,但我从未尝试过,您可以扩展类别元素,以便为所有产品提供足够的空间。

  1. Use the code element使用代码元素

If you are familiar with webdevelopement, you could use the code element to build your own element in a kind of way.如果您熟悉 web 开发,您可以使用代码元素以某种方式构建您自己的元素。 There you could pass all your products, but this will also require some work.在那里你可以传递你所有的产品,但这也需要一些工作。 As I said, there is no easy way to achieve your goal.正如我所说,没有简单的方法可以实现您的目标。

  1. Build a plugin构建一个插件

If you are familiar with PHP, smarty, JS and jQuery, you could build a plugin, to create an own element for your pages.如果您熟悉 PHP、smarty、JS 和 jQuery,您可以构建一个插件,为您的页面创建自己的元素。 This may be the hardest way to achieve your goal, but it will also be the most rewarding regarding stability and functionality.这可能是实现目标最难的方法,但在稳定性和功能方面它也是最有价值的。

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

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