Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Problem with Variable inside a block

$
0
0
Hi there,

maybe someone of you can help me.

I'm tryin to work on the payment methods. I need to use a new one in a self-made template.

I used Azure as base.

The following doesn't make sense to me and i have not the slightest clue how to work with it:
Code:

[{foreach key=sPaymentID from=$oView->getPaymentList() item=paymentmethod name=PaymentSelect}]
                                                [{ assign var="inptcounter" value="`$inptcounter+1`"}]
                                                [{$sPaymentID}]
                        [{block name="select_payment"}]
                                                [{$sPaymentID}]
                                                        [{if $sPaymentID == "oxidcashondel"}]

As you see for testing purpose i use [{$sPaymentID}] to show me the found ids.
Problem is:
outside the block there are four
inside the block only three...
but why? And how do i prevent this?

Hope you can help me

Viewing all articles
Browse latest Browse all 6951

Trending Articles