Required template changes in version 4.12
Changes to be done in design_user templates in order to work "send cart by email" feature after 4.12 OpenBizBox update:
1. in shopping_cart.tpl user should modify his "Continue shopping" button to
this code:
<? if (SHOPPINGCART_SENDBYMAIL_STATUS == 'true'):?>
<td class="c">
<?=button(IMAGE_BUTTON_SHOW_SEND_BY_MAIL, null,
array('class' => 'info-button', 'id' => 'cart_send_show'),
"button_send.gif") ?>
</td>
<? else: ?>
<td class="c">
<?=button(IMAGE_BUTTON_CONTINUE_SHOPPING,
obbLib::hrefLink(FILENAME_DEFAULT), array('class' =>
'shopping-cart-continue'), "button_continue_shopping.gif") ?>
</td>
<? endif ?>
and add this lines right before last div:
<? if (SHOPPINGCART_SENDBYMAIL_STATUS == 'true'):?>
<div style="display:none" id="cart_send_contents">
<br>
<form name="cart_send_form" action="" method="post">
<input name="action" value="send_cart_mail" type="hidden">
<table class="centerBoxTable" border="0" cellpadding="0"
cellspacing="0" width="100%">
<tbody>
<tr>
<td class="centerBoxTopLeft"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
<td class="centerBoxTopCenter"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
<td class="centerBoxTopRight"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
</tr>
<tr>
<td class="centerBoxMidLeft"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
<td class="centerBoxMidCenter">
<table style="display:none"
class="centerBoxContents" border="0" cellpadding="0" cellspacing="5"
width="100%" id="cart_send_working"><tbody>
<tr>
<td align="center"><img
src="<?=DIR_WS_CURRENT_SKIN?>/images/ajax-loading.gif"><p><?=SHOPPINGCART_SENDBYMAIL_TEXT_WORKING?></p></td>
</tr>
</tbody></table><table class="centerBoxContents"
border="0" cellpadding="0" cellspacing="5" width="100%"
id="cart_send_table"><tbody>
<tr style="display:none">
<td colspan="2"
valign="top"><h3><?=SHOPPINGCART_SENDBYMAIL_TEXT_HEADER?></h3>
<p><?=sprintf(SHOPPINGCART_SENDBYMAIL_TEXT_EMAIL_SENT, '<span
id="cart_send_recepient"></span>')?></p>
</td>
</tr>
<tr>
<td colspan="2"
valign="top"><h3><?=SHOPPINGCART_SENDBYMAIL_TEXT_HEADER?></h3>
<p><?=SHOPPINGCART_SENDBYMAIL_TEXT_INFO?></p>
</td>
</tr>
<tr>
<td
valign="top"><?=SHOPPINGCART_SENDBYMAIL_FIELD_SENDER?></td>
<td><input name="sender_name" type="text"><input
name="sender_email"<? //Hidden by javascript, it MUST be empty when
submitted! ?> type="text"></td>
</tr>
<tr>
<td
valign="top"><?=SHOPPINGCART_SENDBYMAIL_FIELD_RECP_NAME?></td>
<td><input name="recievers_name"
type="text"></td>
</tr>
<tr>
<td
valign="top"><?=SHOPPINGCART_SENDBYMAIL_FIELD_RECP_EMAIL?></td>
<td><input name="recievers_email"
type="text"></td>
</tr>
<tr>
<td
valign="top"><?=SHOPPINGCART_SENDBYMAIL_FIELD_COMMENT?></td>
<td><textarea name="comment" rows="5"
cols="80"></textarea></td>
</tr>
<tr>
<td colspan="2" align="right"
valign="top"><?=button(IMAGE_BUTTON_SEND_SHOPPINGCART, null, array('class'
=> 'send-button', 'id' => 'cart_send_mail'), "button_send.gif") ?></td>
</tr>
</tbody></table></td>
<td class="centerBoxMidRight"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
</tr>
<tr>
<td class="centerBoxBotLeft"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
<td class="centerBoxBotCenter"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
<td class="centerBoxBotRight"><img
src="/images/pixel_trans.gif" alt="" border="0" height="1" width="1"></td>
</tr>
</tbody>
</table></form>
</div>
<script type="text/javascript">
function submit_cart_send_form() {
$('#cart_send_table').hide();
$('#cart_send_working').show();
$.post("<?=obbLib::hrefLink(FILENAME_SHOPPING_CART)?>",
$('form[name="cart_send_form"]').serialize(), function (data, status){
if (data == 'Success') {
$('#cart_send_recepient').text($('input[name="recievers_name"]').val());
$('#cart_send_table').find('tr').toggle();
} else if (data == 'Invalid-Email') {
alert("<?=SHOPPINGCART_SENDBYMAIL_ERROR_INVALID_EMAIL?>");
} else {
alert("<?=SHOPPINGCART_SENDBYMAIL_ERROR?>");
}
$('#cart_send_working').hide();
$('#cart_send_table').show();
});
return false;
}
$(document).ready(function(){
<? //Hide the sender_email field so that robots might think it is
real and fill it out, it should be empty! ?>
$('input[name="sender_email"]').hide();
$('#cart_send_show').click(function (){
$('#cart_send_contents').fadeIn();
return false;
});
$('form[name="cart_send_form"]').submit(submit_cart_send_form);
$('#cart_send_mail').click(submit_cart_send_form);
});
</script>
<? endif >
Also make sure You are not hidding css class ".mainTableCustomerRow" if You will use "Shopping cart popup feature".
Changes in templates and extensions
If you are using custom design theme and/or custom extensions or packages, you will need to make updates there.
These 2 constants are no longer supported:
- DIR_FS_CATALOG_BANNERS
- DIR_FS_PAGES
These 3 should be updated:
- old DIR_FS_FE_TEMPLATES with new one DIR_FS_TEMPLATES
- old DIR_FS_CATALOG_MODULES with new one DIR_FS_MODULES
- old DIR_FS_CATALOG_LANGUAGES with new one DIR_FS_LANGUAGES
You must do these changes in nearest future. Right after 4.12.0 release old constants are still working for backward compatibility. It will be totally removed from 4.13.0 release, so, please, take your time to check and make updates, if needed.

