[*] BO: Improve BackOffice order
This commit is contained in:
1 parent
da29678f80
commit
715fbd2c88
2 files changed
+7
-7
No files matched your search
@@ -431,7 +431,6 @@
|
|||||||
|
|
||||||
$('#id_address_delivery').html(addresses_options);
|
$('#id_address_delivery').html(addresses_options);
|
||||||
$('#id_address_invoice').html(addresses_options);
|
$('#id_address_invoice').html(addresses_options);
|
||||||
|
|
||||||
$('#address_delivery_detail,#address_invoice_detail').html(address_detail);
|
$('#address_delivery_detail,#address_invoice_detail').html(address_detail);
|
||||||
}
|
}
|
||||||
if (res.id_cart)
|
if (res.id_cart)
|
||||||
@@ -534,10 +533,10 @@
|
|||||||
$.each(products, function() {
|
$.each(products, function() {
|
||||||
cart_quantity[this.id_product+'_'+this.id_product_attribute] = this.cart_quantity;
|
cart_quantity[this.id_product+'_'+this.id_product_attribute] = this.cart_quantity;
|
||||||
cart_content += '<tr><td><img src="'+this.image_link+'" title="'+this.name+'" /></td><td>'+this.name+'<br />'+this.attributes_small+'</td><td>'+this.reference+'</td><td><input type="text" size="7" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="product_unit_price" value="'+this.price+'" /> <span class="currency_sign"></span></td><td>';
|
cart_content += '<tr><td><img src="'+this.image_link+'" title="'+this.name+'" /></td><td>'+this.name+'<br />'+this.attributes_small+'</td><td>'+this.reference+'</td><td><input type="text" size="7" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="product_unit_price" value="'+this.price+'" /> <span class="currency_sign"></span></td><td>';
|
||||||
cart_content += '<p><a href="#" class="delete_product" rel="delete_'+this.id_product+'_'+this.id_product_attribute+'" ><img src="../img/admin/delete.gif" /></a>';
|
cart_content += '<div style="float:left;"><a href="#" class="increaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'" ><img src="../img/admin/up.gif" /></a><br /><a href="#" class="decreaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'"><img src="../img/admin/down.gif" /></a></div>';
|
||||||
cart_content += '<a href="#" class="increaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'" ><img src="../img/admin/up.gif" /></a><input type="text" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="cart_quantity" size="2" value="'+this.cart_quantity+'" /></p>';
|
cart_content += '<div style="float:left;"><input type="text" rel="'+this.id_product+'_'+this.id_product_attribute+'" class="cart_quantity" size="2" value="'+this.cart_quantity+'" />';
|
||||||
cart_content += '<p style="float:right"><center><a href="#" class="decreaseqty_product" rel="'+this.id_product+'_'+this.id_product_attribute+'"><img src="../img/admin/down.gif" /></center></a>';
|
cart_content += '<a href="#" class="delete_product" rel="delete_'+this.id_product+'_'+this.id_product_attribute+'" ><img src="../img/admin/delete.gif" /></a>';
|
||||||
cart_content += '</p></td><td>'+this.total+' <span class="currency_sign"></span></td></tr>';
|
cart_content += '</div></td><td>'+this.total+' <span class="currency_sign"></span></td></tr>';
|
||||||
});
|
});
|
||||||
$('#customer_cart tbody').html(cart_content);
|
$('#customer_cart tbody').html(cart_content);
|
||||||
}
|
}
|
||||||
@@ -806,7 +805,7 @@
|
|||||||
</fieldset><br />
|
</fieldset><br />
|
||||||
<form action="{$link->getAdminLink('AdminOrders')}&submitAdd{$table}=1" method="post" autocomplete="off">
|
<form action="{$link->getAdminLink('AdminOrders')}&submitAdd{$table}=1" method="post" autocomplete="off">
|
||||||
<fieldset id="products_part" style="display:none;"><legend><img src="../img/t/AdminCatalog.gif" />{l s='Cart'}</legend>
|
<fieldset id="products_part" style="display:none;"><legend><img src="../img/t/AdminCatalog.gif" />{l s='Cart'}</legend>
|
||||||
<div class="width3">
|
<div>
|
||||||
<p><label>{l s='Search a product:'} </label>
|
<p><label>{l s='Search a product:'} </label>
|
||||||
<input type="hidden" value="" id="id_cart" name="id_cart" />
|
<input type="hidden" value="" id="id_cart" name="id_cart" />
|
||||||
<input type="text" id="product" value="" /></p>
|
<input type="text" id="product" value="" /></p>
|
||||||
@@ -838,7 +837,7 @@
|
|||||||
<th>{l s='Description'}</th>
|
<th>{l s='Description'}</th>
|
||||||
<th>{l s='Ref'}</th>
|
<th>{l s='Ref'}</th>
|
||||||
<th>{l s='Unit price'}</th>
|
<th>{l s='Unit price'}</th>
|
||||||
<th>{l s='Qty'}</th>
|
<th style="width: 65px;">{l s='Qty'}</th>
|
||||||
<th>{l s='Price'}</th>
|
<th>{l s='Price'}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -884,6 +884,7 @@ class FrontControllerCore extends Controller
|
|||||||
$this->context->cookie->is_guest = $customer->isGuest();
|
$this->context->cookie->is_guest = $customer->isGuest();
|
||||||
$this->context->cookie->passwd = $customer->passwd;
|
$this->context->cookie->passwd = $customer->passwd;
|
||||||
$this->context->cookie->email = $customer->email;
|
$this->context->cookie->email = $customer->email;
|
||||||
|
$this->context->cookie->checkedTOS = true;
|
||||||
return $id_cart;
|
return $id_cart;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user