Add-ons
<%= user_menu %>
Includes a one off setup fee of <%= billing.currency_symbol.html %><%= sprintf("%.2f", if billing.include_tax? then item.setup_fee_incvat else item.setup_fee end) %><% end %> <% if product.has_free_products? %>
includes free domains <% product.free_products_list.each do | free_product | %> <%= free_product["free_name"] %> <% end %> <% end %> <% if item.extra_data['link_to'] %> linked to <%= item.extra_data['link_to'] %><% end %>
<% seen_upsell_text = Hash.new %>
<% addon_name_with_to_upsell_text.each_key do |aname_with| %>
<% a_upsell_with = aname_with.split(/_/)[1] %>
<% aut_name = aname_with.split(/_/)[0] %>
<% if upsold_name_to_domain.has_key?(aut_name +"_" + item.name) and upsold_name_to_domain[aut_name + "_" + item.name] == item.name %><% seen_upsell_text[aname_with] = 1 %><% next %><% end %>
<% if ((a_upsell_with == 'domain' and product.type.include?('domain')) or (a_upsell_with == 'package' and product.type.include?('package'))) %>
<% if not seen_upsell_text.has_key?(aname_with) %>
<% seen_upsell_text[aname_with] = 1 %>
<% end %> <% end %>
Order Addons
<% if basket.current_items.empty? %> <% else %> <% upsellable_item_list.each do |item| %> <% product = item.product %> <% if product.type.include?('package') %>Hosting: <% end %><%= product.name.html %><% if item.name != "" %>: <%= item.name.html %><% end %><% if item.setup_fee > 0 %>Includes a one off setup fee of <%= billing.currency_symbol.html %><%= sprintf("%.2f", if billing.include_tax? then item.setup_fee_incvat else item.setup_fee end) %><% end %> <% if product.has_free_products? %>
includes free domains <% product.free_products_list.each do | free_product | %> <%= free_product["free_name"] %> <% end %> <% end %> <% if item.extra_data['link_to'] %> linked to <%= item.extra_data['link_to'] %><% end %>
<%= addon_name_with_to_upsell_text[aname_with] %> | |
<%= aprod.name %> at <%= billing.currency_symbol.html %><%= qup_inc_tax %> <%= aprod.base_renewal_period %> |
<% end %> <% end %>