{if !empty($lastProduct)}
 {lang key="recommendations.productAdded"}
 {$lastProduct.product.name}  {$lastProduct.product.productGroup.name}
{if !$lastProduct.pricing->isFree()}  {$lastProduct.pricing->price()->toFull()} {if $lastProduct.pricing->setup() && $lastProduct.pricing->setup()->toNumeric() > 0} + {$lastProduct.pricing->setup()->toFull()} {lang key="ordersetupfee"} {/if} {/if}  {lang key='orderpaymentterm'|cat:$lastProduct.pricing->cycle()}
{/if}
{if !in_array($templatefile, ['viewcart', 'checkout', 'complete'])}

{lang key="recommendations.explain.product"}

{elseif !$recommendStyle && $templatefile != 'complete'}

{lang key="recommendations.explain.generic"}

{elseif $templatefile == 'complete'}

{lang key="recommendations.title.generic"}

{if !empty($productRecommendations.order)} {lang key="recommendations.title.yourOrder"} {else} {lang key="recommendations.title.yourProducts"} {/if}

{/if} {if $productRecommendations} {foreach $productRecommendations as $categoryKey => $categoryRecommendations} {if $templatefile == 'complete' && $categoryKey == 'own' && !empty($productRecommendations.own) && !empty($productRecommendations.order)}

{lang key="recommendations.title.yourProducts"}

{/if} {foreach $categoryRecommendations as $categoryRecommendation} {if $recommendStyle && $templatefile != 'complete'}

{lang key="recommendations.explain.ordered" productName=$categoryRecommendation.name}

{/if} {foreach $categoryRecommendation.recommendations as $recommendation} {assign var="price" value=$recommendation->pricing()->first()}
isFree()}class="w-hidden hidden"{/if}>{lang key="orderfree"} {if !$recommendation->isFree() && $price} {if $price->isOneTime()} {$price->price()->toFull()} {elseif $price->isRecurring()} {$price->breakdownPrice()} {/if} {/if} {if !$recommendation->isFree() && !is_null($price->setup()) && $price->setup()->toNumeric() > 0} {$price->setup()->toFull()} {lang key="ordersetupfee"} {/if}
{lang key="addtocart"}
{if $recommendation.shortDescription} {else} {/if}
{$recommendation.productGroup.name} - {$recommendation.name}
{if empty($recommendation.tagline)} {lang key="recommendations.taglinePlaceholder"} {else} {$recommendation.tagline} {/if}

{$recommendation.shortDescription}

{/foreach} {/foreach} {/foreach} {/if}