This topic is locked
[SOLVED]

 Dual Logos

6/13/2020 9:10:51 PM
PHPRunner General questions
R
RBrogen author

Hi Everyone,
I have 2 business logos, one for my sports division and one for my portrait division. To maintain brand continuity, I would like to have my order receipts display the correct logo based on the type of order it is. So in essence I'm trying to do is below if statement on the top of my order form. Any insight in being able to do this would be greatly appreciated.

$sessionType = $values['session_ProductLine'];
if ($sessionType == 31 ) {
$pageObject->hideItem("portraitlogo", $recordId);

$pageObject->showItem("sportslogo", $recordId);
} else {
$pageObject->showItem("portraitlogo", $recordId);

$pageObject->hideItem("sportslogo", $recordId);
}
R
RBrogen author 6/13/2020



Hi Everyone,
I have 2 business logos, one for my sports division and one for my portrait division. To maintain brand continuity, I would like to have my order receipts display the correct logo based on the type of order it is. So in essence I'm trying to do is below if statement on the top of my order form. Any insight in being able to do this would be greatly appreciated.

$sessionType = $values['session_ProductLine'];
if ($sessionType == 31 ) {
$pageObject->hideItem("portraitlogo", $recordId);

$pageObject->showItem("sportslogo", $recordId);
} else {
$pageObject->showItem("portraitlogo", $recordId);

$pageObject->hideItem("sportslogo", $recordId);
}



I got it working with above code.