S
S
Sergey Ignatiev2018-07-26 08:02:18
MODX
Sergey Ignatiev, 2018-07-26 08:02:18

How to integrate your own layout into miniShop2 / MODX?

Hello.
I've looked at the documentation , but still haven't figured out how to add my own styling to elements when using miniShop2. For example, how to create a product output chunk?
In pdoTools, such a procedure is described in great detail and clearly, it is easy to understand.
Please tell me, if possible, “point your finger” where to look at the documentation in order to understand how to add your own layout / styles when displaying page elements through miniShop2 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Tarasov, 2018-07-26
@serebro223

Good afternoon!
Well, how about, for example, the output of goods through msProducts,
we look at the parameter table here: https://docs.modx.pro/components/minishop2/snippet...
By default, tpl.msProducts.row is used, create your own chunk, for example, myNewChunk, edit it according to your layout, then when displaying products, in addition to other parameters, specify:


This logic works for every withdrawal - in the cart, in the mini-cart, in the order, etc.

S
Sergey Ignatiev, 2018-07-26
@serebro223

My inattention .... I should have looked at the documentation for snippets ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question