X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   HERE is how to change invoice numbering with MYSQL (https://forum.x-cart.com/showthread.php?t=13213)

neonrider 10-27-2005 03:38 PM

Not solved
 
I asked my host to help me and here's what they wrote:

"The permissions of both perl and the file /var/www/vhosts/store.domain.com/httpdocs/patch.pl is setup correctly in the server. But when i logged in i was still getting the error."

P.S. My host gave me this "formula" to enter into "pearl path" field:

/usr/bin/perl

After I entered it, the patch/upgrade error disappeared. I hope this helps others as well. All I needed was these three words! /usr/bin/perl

I just entered that patch: ALTER TABLE xcart_orders AUTO_INCREMENT = xxxxxx; (where I replaced x'es with my desired number) and then I placed a test order and the order number is still "old".

UPDATE: I just found a partial solution: before I was trying to change a higher number (3000) to a lower number (2600) which for some logical reason did not work. Maybe because I already had test orders running at 3015...3016... etc. But now I patched the "sql" to the number "3500" and it worked. So the problem was that you can not go to a LOWER number, especially if a higher number order already exists. Perhaps I'll now try to delete ALL orders and see if I can get 2600 set up finally.

OK, now all is clear:

You can use:

ALTER TABLE xcart_orders AUTO_INCREMENT = xxxxxx;

only if you want to change lower order numeration into a bigger one.
And if you wish to change let's say 3015 into 2015 then you have to delete ALL the existing orders in your cart and only then you will be able to go below the existing numbers.

HWT 10-28-2005 08:05 AM

Slightly off topic but...

Does anybody know how to change the starting RMA number for XRMA? I just issued our first RMA yesterday and felt pretty stupid as it gave the customer RMA #1.

"Yes, we've been around since God made Adam...your just our first return...what's the matter w/you?! Your RMA number is #1" :)

I checked through all of the SQL tables I thought would be appropriate, but couldn't find the field. Anybody know where it is?

rjcbear 10-28-2005 09:30 AM

HWT,

Contact X-cart they made a modification to the RMA so the number in the RMA will be the same as the order id.

It works great for me.

Kind regards,
Ricky

smartoption 07-09-2006 02:47 PM

Hi all

Does anyone know how to make the order numbers go up in 5's or 10's

Thanks


All times are GMT -8. The time now is 08:03 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.