How to change product ID from numeric to another

thiemek

No avatar

2007-05-08 17:07

Hello,

How can i change de product ID
exsample ID 1 has to be SA001

you can also email at: thiemekoster@hotmail.com

» Quick.Cart v1.x

treewood (OpenSolution)

Avatar: treewood

2007-05-09 12:23

thiemek - in database is impossible to that without big modifications but it can be done when You want display this id in for example products list etc. Where You want to display this id?

thiemek

No avatar

2007-05-10 15:29

i want it in the product list
for example

ID Name
EX001 Example 1

treewood (OpenSolution)

Avatar: treewood

2007-05-10 16:47

thiemek - then do this
1. edit core/products.php and go throwProductsData() function and paste this

$aList['sProductId'] = 'EX'.sprintf'%03.0f'$aList['iProduct'] );

before

$content .= $tpl->tbHtml$sFile'LIST_LIST' );


2. edit core/products.php, throwProduct() function and paste

$aList['sProductId'] = 'EX'.sprintf'%03.0f'$aList['iProduct'] );

before

return $aList;


4. edit templates/products_list.tpl block LIST_LIST and put variable $aList[sProductId] in this block to display ID
5. edit templates/products_more.tpl and templates/products_print.tpl block SHOW and put variable $aData[sProductId] in this block to display ID

Works?

thiemek

No avatar

2007-05-10 17:29

in the it's show the ID in the show, but know how can ik change it in the admin or what file

it's show EX001 EX002 , etc because EX stands in the code

But it works great

vaikis

No avatar

2007-05-10 17:31

treewood said ".. in database is impossible to do that without big modifications "

thiemek

No avatar

2007-05-10 17:38

to bad, but can i change it by hand in a file?

merci

No avatar

2007-05-11 10:19

No, you can't change it by hand, it won't work properly without lots of modyfications.

Back to top
about us | contact