Esempio n. 1
0
    $customer_zipcode_lbl = JText::_('COM_REDSHOP_ZIP');
    $customer_zipcode = $this->userdata->zipcode;
}
$template_desc = str_replace('{zipcode_lbl}', $customer_zipcode_lbl, $template_desc);
$template_desc = str_replace('{zipcode}', $customer_zipcode, $template_desc);
$customer_add_lbl = '';
$customer_add = '';
if ($this->userdata->address) {
    $customer_add_lbl = JText::_('COM_REDSHOP_ADDRESS');
    $customer_add = $this->userdata->address;
}
$template_desc = str_replace('{address_lbl}', $customer_add_lbl, $template_desc);
$template_desc = str_replace('{address}', $customer_add, $template_desc);
$edit_account_link = '<a class="btn btn-default" href="' . $accountbillto_link . '">' . JText::_('COM_REDSHOP_EDIT_ACCOUNT_INFORMATION') . '</a>';
$template_desc = str_replace('{edit_account_link}', $edit_account_link, $template_desc);
$template_desc = $carthelper->replaceNewsletterSubscription($template_desc, 1);
if (SHIPPING_METHOD_ENABLE) {
    $shipping_image = '<img src="' . REDSHOP_FRONT_IMAGES_ABSPATH . 'account/order.jpg" align="absmiddle">';
    $update_link = '<a href="' . $accountshipto_link . '">' . JText::_('COM_REDSHOP_UPDATE_SHIPPING_INFO') . '</a>';
    $template_desc = str_replace('{shipping_image}', $shipping_image, $template_desc);
    $template_desc = str_replace('{shipping_title}', JText::_('COM_REDSHOP_SHIPPING_INFO'), $template_desc);
    $template_desc = str_replace('{edit_shipping_link}', $update_link, $template_desc);
} else {
    $template_desc = str_replace('{shipping_image}', '', $template_desc);
    $template_desc = str_replace('{shipping_title}', '', $template_desc);
    $template_desc = str_replace('{edit_shipping_link}', '', $template_desc);
}
// For redCRM user bulk order functionality
if (isset($this->userdata->debitor_id) && $this->userdata->debitor_id != "" && $this->userdata->debitor_id != 0) {
    $bulkorder_link = "<a href='" . JRoute::_('index.php?option=com_redcrm&view=bulk_order&Itemid=' . $Itemid) . "'>" . JText::_('COM_REDSHOP_BULK_ORDER_LINK') . "</a>";
    $bulkorder_image = '<img src="' . $url . 'administrator/components/com_redcrm/assets/images/bulk_order16.png" align="absmiddle">';