php-excel-templator icon indicating copy to clipboard operation
php-excel-templator copied to clipboard

Fixed bug with using 2 variables in 1 cell

Open develgold opened this issue 4 years ago • 7 comments

develgold avatar Apr 07 '22 09:04 develgold

It will not work on two-dimensional arrays. I already tried to make this feature earlier. If you want to use multiple variables in one cell just use another variable which contains both values. It will be easier and more reliable.

alhimik1986 avatar Apr 07 '22 11:04 alhimik1986

Can you show an example where it doesn't work?

develgold avatar Apr 08 '22 04:04 develgold

You need to change the order of the parameters, first {document_id} after [product_name]

develgold avatar Apr 09 '22 11:04 develgold

It's a bug anyway. It should work with any order of parameters.

alhimik1986 avatar Apr 10 '22 12:04 alhimik1986

Then perhaps one should process strings first and then arrays

develgold avatar Apr 11 '22 04:04 develgold

Are you suggesting that I personally implement it?

alhimik1986 avatar Apr 12 '22 07:04 alhimik1986