/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Orders
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Orders
mkdir
upload
Name
Size
Mode
Actions
checkout.php
6002
0644
edit
dl
rm
summary.php
7941
0644
edit
dl
rm
view_order.php
9163
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Orders/checkout.php
(6002B)
<?php echo $this->Form->create($cart); ?> <div class="container py-5"> <div class="block__heading"> <h1><?php echo __('Detalii comandă') ?></h1> </div> <div class="row"> <div class="col-lg-8"> <div class="card-light p-4"> <div class="title"> <h3><?php echo __('Adresa de livrare'); ?></h3> </div> <div class="inner p-4"> <?php if (!empty($cart->user_id)) : ?> <?php if (!empty($cart->user_address_id) || !empty($auth)) : ?> <!-- list addresses --> <?php echo $this->Cell('AddAddress::addresses', [$cart->user_id, isset($userAuth) ? $userAuth->uuid : null, $cart]) ?> <?php else : ?> <div class="row"> <!-- if I want to change the address and i am not login --> <?php echo $this->element('inputs_form_add_address', ['counties' => $counties, 'cities' => $cities]); ?> </div> <?php endif ?> <?php else : ?> <div class="row"> <!-- add address if i am not login --> <?php echo $this->element('inputs_form_add_address', ['counties' => $counties, 'cities' => $cities]); ?> <div class="col-lg-6"> <?php echo $this->Form->control('Users.email'); ?> </div> <div class="col-lg-6"> <?php echo $this->Form->control('Users.password'); ?> </div> </div> <div class="custom-checkbox"> <?php echo $this->Form->control('Users.gdpr_active', [ 'type' => 'checkbox', 'label' => '<span>GDPR Active</span>', 'escape' => false ]); ?> </div> <?php endif ?> <?php echo $this->Form->error('user_address_id', null, array('class' => 'error-message')) ?> </div> </div> <div class="card-light p-4 mt-4"> <div class="title"> <h3><?php echo __('Modalitate de plată') ?></h3> </div> <div class="inner p-4"> <div class="custom-checkbox checkboxes-inline"> <?php echo $this->Form->control('payment_method_id', [ 'type' => 'radio', 'options' => $paymentMethods, 'label' => false, 'templates' => [ 'nestingLabel' => '{{hidden}}<label{{attrs}}>{{input}}<span>{{text}}</span></label>', ] ]) ?> </div> </div> </div> <div class="card-light p-4 mt-4"> <div class="title"> <h3><?php echo __('Notă comandă') ?></h3> </div> <div class="inner p-4"> <?php echo $this->Form->control( 'Carts.notes', [ 'label' => false, 'placeholder' => __('Scrie aici...') ] ); ?> </div> </div> </div> <div class="col-lg-4"> <div class="card-light"> <div class="rounded bg-white p-3"> <div class="block__heading dashed"> <h3><?php echo __('Sumar comanda'); ?></h3> </div> <div class="block__cart summary"> <div class="subtotal mt-2"> <div class="row"> <div class="col-lg-8"> <?php echo __('Subtotal') ?>: </div> <div class="col-lg-4 text-right"> <?php echo $this->Number->format($totalPriceCart, ['precision' => 0, 'after' => ' Lei']); ?> </div> </div> </div> <div class="subtotal mt-2"> <div class="row"> <div class="col-lg-8"> <?php echo __('Cost livrare și procesare') ?>: </div> <div class="col-lg-4 text-right"> <span class="text-primary font-weight"><?php echo __('Gratuit') ?></span> </div> </div> </div> <div class="total mt-2 py-3"> <div class="text"><?php echo __('Total') ?></div> <div class="amount"> <?php echo $this->Number->format($totalPriceCart, ['precision' => 0, 'after' => ' Lei']); ?></div> </div> <div class="call-to-action"> <?php echo $this->Form->button(__('Continua'), ['class' => 'btn full primary size-lg']); ?> </div> </div> </div> </div> </div> </div> </div> <?php echo $this->Form->end(); ?> <?php if (!empty($cart->user_id)) { echo $this->Cell('AddAddress::popup', [$cart->user_id, isset($userAuth) ? $userAuth->uuid : null, $cart]); }; ?>
Save
cmd:
run