| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <form method="post" action="{$smarty.server.PHP_SELF}?a=view">
- <div class="panel panel-default cart-item">
- <div class="panel-heading">
- <div class="row">
- <div class="{if $showqtyoptions || $showAddonQtyOptions}col-6{else}col-7{/if}">
- <strong class="fw-500">{$LANG.orderForm.productOptions}</strong>
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="col-sm-2 text-center">
- <strong class="fw-500">{$LANG.orderForm.qty}</strong>
- </div>
- {/if}
- <div class="col">
- <strong class="fw-500">{$LANG.orderForm.priceCycle}</strong>
- </div>
- </div>
- </div>
- {foreach $products as $num => $product}
- <div class="panel-body">
- <div class="row">
- <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
- <span class="item-title">
- <span class="item-heading small text-muted mb-2">{$LANG.orderproduct}</span>
- <span class="fw-500 inline">{$product.productinfo.groupname} - {$product.productinfo.name}</span>
- {if $product.domain}
- <span class="item-domain">
- <i>{$product.domain}</i>
- </span>
- {/if}
- </span>
- {if $product.configoptions}
- <div class="item-addons">
- <div class="prod-addons-container configuration">
- {foreach key=confnum item=configoption from=$product.configoptions}
- <span class="item-group inline">{$configoption.name}: </span>
- <span class="item-name inline"> {if $configoption.type eq 1 || $configoption.type eq 2}{$configoption.option}{elseif $configoption.type eq 3}{if $configoption.qty}{$configoption.option}{else}{$LANG.no}{/if}{elseif $configoption.type eq 4}{$configoption.qty} x {$configoption.option}{/if}</span><br />
- {/foreach}
- </div>
- </div>
- {/if}
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="col-2 item-qty{if !$product.allowqty} prod-qty-empty{/if}">
- {if $product.allowqty}
- <input type="number" name="qty[{$num}]" value="{$product.qty}" class="form-control text-center" min="0" />
- <button type="submit" class="btn btn-xs btn-default">
- {$LANG.orderForm.update}
- </button>
- {/if}
- </div>
- {/if}
- <div class="col item-price">
- <span class="pricing-heading small text-muted mb-2">{$LANG.orderprice}</span>
- <span>
- <strong>{$product.pricing.totalTodayExcludingTaxSetup}</strong><span class="cycle inline">{if $product.billingcycle !="free"}/{/if}{if $product.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $product.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $product.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $product.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $product.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $product.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $product.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span>
- </span>
- {if $product.pricing.productonlysetup}
- <small class="text-muted">+ {$product.pricing.productonlysetup->toPrefixed()} {$LANG.ordersetupfee}</small>
- {/if}
- {if $product.proratadate}<br /><small class="text-muted">({$LANG.orderprorata} {$product.proratadate})</small>{/if}
- </div>
- <div class="item-actions">
- <a href="{$WEB_ROOT}/cart.php?a=confproduct&i={$num}" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.edit}">
- <i class="fas fa-edit"></i>
- </a>
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('p', '{$num}')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- {if $product.addons}
- <div class="w-100"></div>
- <div class="item-addons col">
- <div class="prod-addons-container">
- {foreach $product.addons as $addonnum => $addon}
- <div class="row">
- <div class="{if $showqtyoptions || $showAddonQtyOptions}col-6{else}col-7{/if}">
- <span class="addon-item-group inline">
- {$LANG.orderaddon}:
- </span>
- <span class="addon-item-title inline">
- {$addon.name}
- </span>
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="col-4 col-md-2 addon-item-qty{if $addon.allowqty !== 2} addon-qty-empty{/if}">
- {if $addon.allowqty === 2}
- <input type="number" name="paddonqty[{$num}][{$addonnum}]" value="{$addon.qty}" class="form-control text-center" min="0" />
- <button type="submit" class="btn btn-xs btn-default">
- {$LANG.orderForm.update}
- </button>
- {/if}
- </div>
- {/if}
- <div class="col addon-item-price">
- {if $addon.billingcycle != "free"}
- <span>{$addon.totaltoday}<span class="cycle inline">/{if $addon.billingcycle =="free"}{$LANG.orderpaymenttermfree}{elseif $addon.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $addon.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $addon.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $addon.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $addon.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $addon.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $addon.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span></span>
- {else}
- -
- {/if}
- {if $addon.setup}<small class="text-muted">+ {$addon.setup->toPrefixed()} {$LANG.ordersetupfee}</small>{/if}
- {if $addon.isProrated}<br /><small class="text-muted">({$LANG.orderprorata} {$addon.prorataDate})</small>{/if}
- </div>
- </div>
- {/foreach}
- </div>
- </div>
- {/if}
- </div>
- </div>
- {/foreach}
- {foreach $addons as $num => $addon}
- <div class="panel-body">
- <div class="row">
- <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
- <span class="item-title">
- <span class="fw-500 inline">{$addon.name} - {$addon.productname}</span>
- {if $addon.domainname}
- <span class="item-domain">
- <i>{$addon.domainname}</i>
- </span>
- {/if}
- </span>
- {if $addon.setup}
- <span class="item-setup">
- {$addon.setup} {$LANG.ordersetupfee}
- </span>
- {/if}
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="col-2 item-qty{if $addon.allowqty !== 2} prod-qty-empty{/if}">
- {if $addon.allowqty === 2}
- <input type="number" name="addonqty[{$num}]" value="{$addon.qty}" class="form-control text-center" min="0" />
- <button type="submit" class="btn btn-xs">
- {$LANG.orderForm.update}
- </button>
- {/if}
- </div>
- {/if}
- <div class="col item-price">
- {if $addon.billingcycle != "free"}
- <span>{$addon.totaltoday}<span class="cycle inline">/{if $addon.billingcycle =="free"}{$LANG.orderpaymenttermfree}{elseif $addon.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $addon.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $addon.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $addon.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $addon.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $addon.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $addon.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span></span>
- {else}
- -
- {/if}
- {if $addon.setup}<small class="text-muted">{$addon.setup->toPrefixed()} {$LANG.ordersetupfee}</small>{/if}
- {if $addon.isProrated}<br /><br /><small class="text-muted">({$LANG.orderprorata} {$addon.prorataDate})</small>{/if}
- </div>
- <div class="item-actions">
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('a', '{$num}')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- </div>
- </div>
- {/foreach}
- {foreach $domains as $num => $domain}
- <div class="panel-body">
- <div class="row">
- <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
- <span class="item-title">
- {if $domain.type eq "register"}<span class="fw-500 inline">{$LANG.orderdomainregistration}</span>{else}<span class="fw-500 inline">{$LANG.orderdomaintransfer}</span>{/if}
- {if $domain.domain}
- <span class="item-domain">
- {$domain.domain}
- </span>
- {/if}
- </span>
- <div class="item-addons">
- <div class="prod-addons-container configuration">
- {if $domain.dnsmanagement}{$LANG.domaindnsmanagement}<br />{/if}
- {if $domain.emailforwarding}{$LANG.domainemailforwarding}<br />{/if}
- {if $domain.idprotection}{$LANG.domainidprotection}<br />{/if}
- </div>
- </div>
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="prod-qty prod-qty-empty col-2">
-
- </div>
- {/if}
- <div class="col item-price">
- {if count($domain.pricing) == 1 || $domain.type == 'transfer'}
- <span class="inline strong" name="{$domain.domain}Price">{$domain.price}</span>
- <span class="cycle inline">{$domain.shortYearsLanguage}</span>
- <span class="renewal cycle">
- {if isset($domain.renewprice)}<small class="text-muted">{lang key='domainrenewalprice'}</small> <span class="renewal-price">{$domain.renewprice->toPrefixed()}{$domain.shortRenewalYearsLanguage}{/if}</span>
- </span>
- {else}
- <span classs="d-none" name="{$domain.domain}Price"></span>
- <div class="dropdown">
- <button class="btn btn-default p-2 dropdown-toggle" type="button" id="{$domain.domain}Pricing" name="{$domain.domain}Pricing" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
- <strong>{$domain.price}</strong>/{$domain.regperiod}{$domain.yearsLanguage}
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu" aria-labelledby="{$domain.domain}Pricing">
- {foreach $domain.pricing as $years => $price}
- <li>
- <a class="dropdown-item" href="#" onclick="selectDomainPeriodInCartCustom('{$domain.domain}', '{$price.register}', {$years}, '{if $years == 1}{lang key='orderForm.year'}{else}{lang key='orderForm.years'}{/if}');return false;">
- {$years} {if $years == 1}{lang key='orderForm.year'}{else}{lang key='orderForm.years'}{/if} @ {$price.register}
- </a>
- </li>
- {/foreach}
- </ul>
- </div>
- <span class="renewal cycle">
- <small class="text-muted">{lang key='domainrenewalprice'}</small> <span class="renewal-price">{if isset($domain.renewprice)}{$domain.renewprice->toPrefixed()}{$domain.shortRenewalYearsLanguage}{/if}</span>
- </span>
- {/if}
- </div>
- <div class="item-actions">
- <a href="{$WEB_ROOT}/cart.php?a=confdomains" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.edit}">
- <i class="fas fa-edit"></i>
- </a>
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('d', '{$num}')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- </div>
- </div>
- {/foreach}
- {foreach $renewalsByType['services'] as $num => $service}
- <div class="panel-body">
- <div class="row">
- <div class="col-sm-7">
- <span class="item-title fw-500">
- {lang key='renewService.titleAltSingular'}
- </span>
- <span class="item-group">
- {$service.name}
- </span>
- <span class="item-domain">
- {$service.domainName}
- </span>
- </div>
- <div class="col item-price">
- <span>{$service.recurringBeforeTax}</span>
- <span class="cycle">{$service.billingCycle}</span>
- </div>
- <div class="item-actions">
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('r','{$num}','service')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- </div>
- </div>
- {/foreach}
- {foreach $renewalsByType['domains'] as $num => $domain}
- <div class="panel-body">
- <div class="row">
- <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
- <span class="item-title fw-500">
- {$LANG.domainrenewal}
- </span>
- <span class="item-domain">
- {$domain.domain}
- </span>
- <div class="item-addons">
- <div class="prod-addons-container configuration">
- {if $domain.dnsmanagement}{$LANG.domaindnsmanagement}<br />{/if}
- {if $domain.emailforwarding}{$LANG.domainemailforwarding}<br />{/if}
- {if $domain.idprotection}{$LANG.domainidprotection}<br />{/if}
- </div>
- </div>
- </div>
- {if $showqtyoptions || $showAddonQtyOptions}
- <div class="prod-qty prod-qty-empty col-2">
-
- </div>
- {/if}
- <div class="col item-price">
- <span>{$domain.price}</span>
- <span class="cycle">{$domain.regperiod} {$LANG.orderyears}</span>
- </div>
- <div class="item-actions">
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('r','{$num}','domain')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- </div>
- </div>
- {/foreach}
- {foreach $upgrades as $num => $upgrade}
- <div class="panel-body">
- <div class="row">
- <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
- <span class="item-title">
- {$LANG.upgrade}
- </span>
- <span class="item-group">
- {if $upgrade->type == 'service'}
- {$upgrade->originalProduct->productGroup->name}<br>{$upgrade->originalProduct->name} => {$upgrade->newProduct->name}
- {elseif $upgrade->type == 'addon'}
- {$upgrade->originalAddon->name} => {$upgrade->newAddon->name}
- {/if}
- </span>
- <span class="item-domain">
- {if $upgrade->type == 'service'}
- {$upgrade->service->domain}
- {/if}
- </span>
- </div>
- {if $showqtyoptions || $showUpgradeQtyOptions}
- <div class="col-2 item-qty{if !$upgrade->allowMultipleQuantities} prod-qty-empty{/if}">
- {if $upgrade->allowMultipleQuantities}
- <input type="number" name="upgradeqty[{$num}]" value="{$upgrade->qty}" class="form-control text-center" min="{$upgrade->minimumQuantity}" />
- <button type="submit" class="btn btn-xs">
- {$LANG.orderForm.update}
- </button>
- {/if}
- </div>
- {/if}
- <div class="col item-price">
- <span>{$upgrade->newRecurringAmount}</span>
- <span class="cycle">{$upgrade->localisedNewCycle}</span>
- </div>
- <div class="item-actions">
- <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('u', '{$num}')">
- <i class="fas fa-trash"></i>
- </button>
- </div>
- </div>
- {if $upgrade->totalDaysInCycle > 0}
- <div class="row row-upgrade-credit">
- <div class="col-sm-7">
- <span class="item-group">
- {$LANG.upgradeCredit}
- </span>
- <div class="upgrade-calc-msg">
- {lang key="upgradeCreditDescription" daysRemaining=$upgrade->daysRemaining totalDays=$upgrade->totalDaysInCycle}
- </div>
- </div>
- <div class="col-sm-4 item-price">
- <span>-{$upgrade->creditAmount}</span>
- </div>
- </div>
- {/if}
- </div>
- {/foreach}
- <div class="panel-footer white">
- <div class="d-flex align-items-center space-between">
- <span>
- <a href="{$WEB_ROOT}/cart.php" class="btn btn-default btn-xs" id="continueShopping">
- <i class="fas fa-reply"></i>
- <span>{$LANG.orderForm.continueShopping}</span>
- </a>
- {if $taxenabled && !$loggedin}
- <a data-toggle="modal" data-target="#estimate-taxes" class="btn btn-default btn-xs" href="#">{$LANG.orderForm.estimateTaxes}</a>
- {/if}
- </span>
- <button type="button" class="btn btn-default btn-xs" id="btnEmptyCart">
- <i class="fas fa-trash"></i>
- <span>{$LANG.emptycart}</span>
- </button>
- </div>
- </div>
- </div>
- </form>
|