Order ID skips

funCy

No avatar

2008-05-07 16:29

Hi,

I've been using quickcart for a few days now and it's realy good.
I have only 1 problem.
Whenever a new order comes in it just will have a few numbers between it,

For example:

Order 1431, and after a while a new order comes in and suddenly goed to 1434.

Now I found the solution for this and it apears to come from the robots from search engines such as google. I tried the first solution:

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.

1. in file templates/products_list.tpl find code:

<a href="?p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="basket" title="$lang[Add_to_basket]">$lang[Add_to_basket]</a><a href=" p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="price" title="$lang[Add_to_basket]"



and replace it with following:


<a href="?p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="basket" title="$lang[Add_to_basket]" rel="nofollow">$lang[Add_to_basket]</a><a href="?p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="price" title="$lang[Add_to_basket]" rel="nofollow"
Unfortunately some robots ignore rel="nofollow" 

,

But it didnt word for me. The second solution is:

2. In file templates/products_list.tpl find following code:


<a href="?p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="basket" title="$lang[Add_to_basket]" rel="nofollow">$lang[Add_to_basket]</a><a href="?p=ordersBasket&amp;sOption=add&amp;iProduct=$aList[iProduct]&amp;iQuantity=1" class="price" title="$lang[Add_to_basket]" rel="nofollow"
Change this code for the following:
<
form action="" method="get" class="basket">
  <
fieldset>
    <
input type="hidden" name="p" value="ordersBasket" />
    <
input type="hidden" name="sOption" value="add" />
    <
input type="hidden" name="iProduct" value="$aList[iProduct]" />
    <
input type="hidden" name="iQuantity" value="1" />
    <
em><input type="submit" value="$lang[Add_to_basket]" class="submit" /></em>
  </
fieldset>
</
form>
<
div class="price"><em>$lang[Price]:</em><span>$aList[sPrice]</span>$configcurrency_symbol]</div



This modyfication change link to form. Now you need to customise its design by style modyfication.

BUT, here is my question. How do I customize the style modification and what do I change? My webshop is allready online so I don't want to mess things up.

Thanks in advance,

Kevin

» Quick.Cart v2.x

funCy

No avatar

2008-05-09 18:46

I tried the second solution but it didn't help, if i make a new order after a few hours the same thing happens. it skips 2 or 3 numbers. Can anyone help?

treewood (OpenSolution)

Avatar: treewood

2008-05-10 11:48

funCy - in Quick.Cart v2.x order will skip numbers and there is no solution for that. In Quick.Cart v3.x orders will never skips. This solution you written is for order disapear not skips

Back to top
about us | contact