Jump to content

Personnaliser son N° de COMMANDE


stephan

Recommended Posts

Peut-être pas dans la bonne catégorie ce post ?

Bref,

Dans l'idée , il faut transformer tous les index id_order dans les tables , de int en bigint .
ça se fait sans trop de problème.

là ou ça se complique, et, oui, c'est dans la prog.

J'aurais besoin d'aide en php :

je cherche un équivalent de intval() pour les type bingint, quoique, normalement on pourrais s'en passer ?

et là :

$id_order = intval(Tools::getValue('id_order')))



Tools::getValue me retourne quoi ? la chaine ou la valeur ??
j'ai peur que ce soit un intval derrière, d'ou ma première question ....

Merci à vous.

Link to comment
Share on other sites

ALTER TABLE `ps_order_detail` CHANGE `id_order` `id_order` BIGINT( 10 ) UNSIGNED NOT NULL  
ALTER TABLE `ps_orders` CHANGE `id_order` `id_order` BIGINT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT 
ALTER TABLE `ps_order_discount` CHANGE `id_order` `id_order` BIGINT( 10 ) UNSIGNED NOT NULL
ALTER TABLE `ps_order_history` CHANGE `id_order` `id_order` BIGINT( 10 ) UNSIGNED NOT NULL
ALTER TABLE `ps_order_slip` CHANGE `id_order` `id_order` BIGINT( 10 ) UNSIGNED NOT NULL
ALTER TABLE `ps_orders` AUTO_INCREMENT 2009000001  



Ben voilà .... !

11684_ow87AiYtuOVWI8rUfOX4_t

11685_q5qd1WvTq64ffrUXYpSm_t

11686_890hQmUFIeBPj5gJCDC8_t

Link to comment
Share on other sites

  • 2 weeks later...

J'ai un doute quand à la numérotation de ps_order_history

Passage en bigint

ALTER TABLE `ps_order_history` CHANGE `id_order_history` `id_order_history` BIGINT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT  



La numérotation s'envole très haut pour un nombre de commande peu important !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...