treewood (OpenSolution)2007-12-31 13:44 | Following solution deal with problem of strange order numbers in database. It can be caused by robots (ex. google etc.), which are clicking on links as "add to basket" link in products list. It can damage "db/orders.php" and "db/orders_products.php" files. Following steps are tested in Quick.Cart v2.2. If You have v1.x then You must search for link to basket in templates/products_list.tpl.
<a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="basket" title="$lang[Add_to_basket]">$lang[Add_to_basket]</a><a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="price" title="$lang[Add_to_basket]">
and replace it with following:
<a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="basket" title="$lang[Add_to_basket]" rel="nofollow">$lang[Add_to_basket]</a><a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="price" title="$lang[Add_to_basket]" rel="nofollow">
Unfortunately some robots ignore rel="nofollow", so if you still have problem despite making modyfication from step 1. you should use more restrictive solution:
<a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="basket" title="$lang[Add_to_basket]" rel="nofollow">$lang[Add_to_basket]</a><a href="?p=ordersBasket&sOption=add&iProduct=$aList[iProduct]&iQuantity=1" class="price" title="$lang[Add_to_basket]" rel="nofollow">
Change this code for the following:
<form action="" method="get" class="basket"> This modyfication change link to form. Now you need to customise its design by style modyfication. |