else {
CRM_Core_DAO::storeValues($productDAO, $products[$productDAO->id]);
}
+ $products[$productDAO->id] += ['thumbnail' => '', 'image' => ''];
}
$options = $temp = [];
$temp = explode(',', $productDAO->options);
if (count($products)) {
$form->assign('showPremium', $formItems);
$form->assign('showSelectOptions', $formItems);
- $form->assign('products', $products);
$form->assign('premiumBlock', $premiumBlock);
}
}
+ $form->assign('products', $products ?? NULL);
}
/**
{include file="CRM/common/CMSUser.tpl"}
</div>
<div class="crm-public-form-item crm-section premium_block-section">
- {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="makeContribution"}
+ {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="makeContribution" preview=false}
</div>
{if $honoreeProfileFields && $honoreeProfileFields|@count}
{literal}
<script>
CRM.$(function($) {
- var is_separate_payment = {/literal}{if $membershipBlock.is_separate_payment}{$membershipBlock.is_separate_payment}{else}0{/if}{literal};
+ var is_separate_payment = {/literal}{if $isShowMembershipBlock && $membershipBlock.is_separate_payment}{$membershipBlock.is_separate_payment}{else}0{/if}{literal};
// select a new premium
function select_premium(premium_id) {