Jump to content

How to NOT to load old carts / orders when make an order manually


Recommended Posts

Hi,

 

I'm on 1.5.6.1

 

I have both off-line and on-line shops and I have made an account for all off-line sales to keep the stock taking easy.

 

However as time goes by, my off-line sales account has a lot of orders and when I try to add new sales on the end of the day, it takes a while to load up because the Admin-Order page loads all carts and order history when a customer selected.

 

Is there way to Prestashop stop load carts and order history when making a manual orders?

 

There may be some answer in 

 

admin/themes/default/template/controllers/orders/form.tpl file, but I'm not very much Java / Ajax / PHP person. :(

 

Cheers

 

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Me also

how to remove old cart records in the bo if possible to help clean the database. If that is recommended or not also. we do not want to delete the olde orders, Just the unprocessed carts if it will help reduce the database.

 

Cheers.

Link to comment
Share on other sites

  • 11 months later...

Had the same problem, very slow backoffice order process
I removed the following from admin/themes/default/template/controllers/orders/form.tpl
Started at line 1113 in prestashop 1.6.0.14

		<div id="carts">
			<button type="button" id="show_old_carts" class="btn btn-default pull-right" data-toggle="collapse" data-target="#old_carts_orders">
				<i class="icon-caret-down"></i>
			</button>

			<ul id="old_carts_orders_navtab" class="nav nav-tabs">
				<li class="active">
					<a href="#nonOrderedCarts" data-toggle="tab">
						<i class="icon-shopping-cart"></i>
						{l s='Carts'}
					</a>
				</li>
				<li>
					<a href="#lastOrders" data-toggle="tab">
						<i class="icon-credit-card"></i>
						{l s='Orders'}
					</a>
				</li>
			</ul>
			<div id="old_carts_orders" class="tab-content panel collapse in">
				<div id="nonOrderedCarts" class="tab-pane active">
					<table class="table">
						<thead>
							<tr>
								<th><span class="title_box">{l s='ID'}</span></th>
								<th><span class="title_box">{l s='Date'}</span></th>
								<th><span class="title_box">{l s='Total'}</span></th>
								<th></th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
				<div id="lastOrders" class="tab-pane">
					<table class="table">
						<thead>
							<tr>
								<th><span class="title_box">{l s='ID'}</span></th>
								<th><span class="title_box">{l s='Date'}</span></th>
								<th><span class="title_box">{l s='Products'}</span></th>
								<th><span class="title_box">{l s='Total paid'}</span></th>
								<th><span class="title_box">{l s='Payment'}</span></th>
								<th><span class="title_box">{l s='Status'}</span></th>
								<th></th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</div>

It seems to much faster now.
You still need to regularly remove old carts and unfinished orders from "Customer" "Shopping Carts" to speed up the website but you wont have problems with slow loading BO order.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...