variables from one .tpl to another .tpl ?

Hi,

I try to paste some variables from one simple file to another:



skins\basic\customer\addons\affiliate\views\partners\list.tpl

skins\basic\customer\addons\affiliate\views\affiliate_plans\list.tpl



They have different arrays.

The first one contains array $partner. Examples:

{$partner.balance}, {$partner.plan}, {$partner.approved}
```<br />
The second - array $affiliate_plan. Examples:<br />
```php
{$affiliate_plan.name}, {$affiliate_plan.min_payment}, {$affiliate_plan.commissions}
```<br />
How can I add variables from the first file to the second one? When I just enter {$partner.plan} to the second file it doesn't work <img src="upload://2gefrk5yIQmBF7b3nb7uvIojpeG.gif" class="bbc_emoticon" alt=":("><br />
<br />
The links to this pages are: <br />
{$index_script}?dispatch=partners.list<br />
{$index_script}?dispatch=affiliate_plans.list

Did you clear cs-cart cache after the change?

[quote name='Flow' timestamp='1313486647' post='119602']

Did you clear cs-cart cache after the change?

[/quote]

Yes, of course.

You are looking at two separate 'views' which means there are two separate 'modes' for the affiliates controller. Hence you will need to look at these 'modes' and duplicate the 'affiliate_plans' and 'partner' variables from one to the other.



A 'view' is generally the result of something like ?dispatch=affiliates.partners and ?dispatch=affiliates.affiliate_plans. Hence they are normally 2 very separate objects.

Great! It work!

Thank you tbirnseth!



I just copy variables from

…\addons\affiliate\controllers\customer\partners.php

to

…\addons\affiliate\controllers\customer\affiliate_plans.php