I have a task to print product price tags, but it turns out that I need to use the process product fields for printing. Previously discussed that to do so would be approximately 20 hours of improvements. That's a lot for the client.
I am thinking about the option when I will print the document template, but in this format
We have an action to issue a document, there is a checkmark "http://joxi.ru/RmzZ0ZPCM3gpDm"
Can we make it not be a new document but just a new page in the document? And to create not for each product, but for each line. That is, I can have 2 identical products but just with different values, respectively, I need 2 price tags (2 pages)
I would then be able to set my own dimensions in the document template
[file]4620[/file]
And in general, then get as many pages as there are rows and for each row get its own page with the values of the process product fields, which is generally what is needed.
How much will it improve? Will such functionality work at all?
I have a task to print product price tags, but it turns out that I need to use the process product fields for printing. Previously discussed that to do so would be approximately 20 hours of improvements. That's a lot for the client. I am thinking about the option when I will print the document template, but in this format We have an action to issue a document, there is a checkmark "http://joxi.ru/RmzZ0ZPCM3gpDm" Can we make it not be a new document but just a new page in the document? And to create not for each product, but for each line. That is, I can have 2 identical products but just with different values, respectively, I need 2 price tags (2 pages) I would then be able to set my own dimensions in the document template
And in general, then get as many pages as there are rows and for each row get its own page with the values of the process product fields, which is generally what is needed. How much will it improve? Will such functionality work at all?
Gubko Alexander Sergeevich wrote: Can we make it not be a new document but just a new page in the document? And to create not for each product, but for each line. That is, I can have 2 identical products but just with different values, respectively, I need 2 price tags (2 pages)
Set up a template for yourself through the old style (which is foreach) so that at each iteration there is a new page.
[quote]
Gubko Alexander Sergeevich wrote:
Can we make it not be a new document but just a new page in the document? And to create not for each product, but for each line. That is, I can have 2 identical products but just with different values, respectively, I need 2 price tags (2 pages)
[/quote]
Set up a template for yourself through the old style (which is foreach) so that at each iteration there is a new page.
Is there an example of a template using foreach somewhere? I would at least look, and then redid it on my own. Or maybe you can write an example with 1 some tag, so that it moves each next page by 1 page?
Is there an example of a template using foreach somewhere?
I would at least look, and then redid it on my own.
Or maybe you can write an example with 1 some tag, so that it moves each next page by 1 page?
Gubko Alexander Sergeevich wrote: Is there an example of a template using foreach somewhere? I would at least look, and then redid it on my own. Or maybe you can write an example with 1 some tag, so that it moves each next page by 1 page?
you can output the array with {|foreach from=$productsArray item="p"|} {|$p.name|} {|/foreach|} but for each element to be a separate page - I can’t answer you if you can do this or not
Gubko Alexander Sergeevich wrote: I just don't quite understand how. I can do it, is there any example? Option where each product would be on the trail. page - top, I need it.
To provide you with such an example means to take and draft a ready-made solution for you. I cannot do this.
[quote]
Gubko Alexander Sergeevich wrote:
Is there an example of a template using foreach somewhere?
I would at least look, and then redid it on my own.
Or maybe you can write an example with 1 some tag, so that it moves each next page by 1 page?
[/quote]
you can output the array with
{|foreach from=$productsArray item="p"|}
{|$p.name|}
{|/foreach|}
but for each element to be a separate page - I can’t answer you if you can do this or not
[quote]
Gubko Alexander Sergeevich wrote:
I just don't quite understand how. I can do it, is there any example?
Option where each product would be on the trail. page - top, I need it.
[/quote]
To provide you with such an example means to take and draft a ready-made solution for you. I cannot do this.
you can try like this {|foreach from=$productsArray item="p"|} <p style="page-break-after: always;">{|$p.name|}</p> {|/foreach|} and already inside this element, type it up as you need
you can try like this
{|foreach from=$productsArray item="p"|}
<p style="page-break-after: always;">{|$p.name|}</p>
{|/foreach|}
and already inside this element, type it up as you need
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up