| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Dispaying SKU instead of productid in XCART 3.5.4 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Dispaying SKU instead of productid in XCART 3.5.4
I researched this topic and the solutions are for earlier versions of X-Cart.
I'm wondering which templates I need to alter to display the SKU (productcode) instead of the productid for the listed products. Thank you for any help on this matter. Jeremy |
|||||||||
#2
|
|||||||||
|
|||||||||
Found a solution:
Edit in includes/func.php: $product["producttitle"]="$product[product] #$product[productid]"; with $product["producttitle"]="$product[product] #$product[productcode]"; |
|||||||||
#3
|
|||||||
|
|||||||
Hi, I tried doing this, and it worked in the administration area where you pic a product to modify, but in the customer end of it it didn't show up. Also now, since I made this change, none of my thumbnails are showing up. They are the thumbnails from the practice layout. I tried changing the func.php back to the way it was before, but the pictures still are not loading. Can anyone help please?
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#4
|
|||||||||
|
|||||||||
Can you post a URL?
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
#5
|
|||||||
|
|||||||
I managed to fix the problem by uploading a new func.php to the directory. Is there any harm in doing this? I made some slight changes to x-cart before doing this, such as changing of the colors, and much of the text, and a few settings. Will bringing in a new func.php, and deleting the old one cause any errors or problems in the future? Thanks
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#6
|
|||||||||
|
|||||||||
Did you upload func.php from a different version of x-cart?
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
#7
|
|||||||
|
|||||||
no, I uploaded it from the same version that I unzipped on my harddrive. xcart 3.5.8.
I read in another post that it was good to have copies of all the .php's as backup, just in case. Will I run into any problems even though I used the same version?
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#8
|
|||||||||
|
|||||||||
You shouldn't have any problems that I can see. However if you made any changes to func.php before you overwrote it, you will lose those now. Do you have a copy of your old func.php? You can run a "diff" command on the files to point out any changes and see if there was something you forgot about.
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
#9
|
|||||||
|
|||||||
Wow, you are really fast with replying kpayne. I appreciate all your help. I did save the old func.php in another folder just in case. I don't know what a "diff" command is or how to run it though. Can I do that through the file manager? Also, I still wonder why the images didn't show up anymore after I changed the func.php the first time. because even when I switched it back they still didn't show up. very odd. Is it possible that I have permissions or settings off somwhere?
__________________
xcart v3.5.8 (Unix) and xcart v4.0.13 |
|||||||
#10
|
|||||||||
|
|||||||||
A diff command is a shell command. You can do the same thing in windows by using another program like Ultra Compare.
As far as the images not showing up, a URL would be very helpful. Also, check your log directory and look at x-errors_php.txt as well as the images log. See if there are any relevant entries there.
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|