![]() |
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 |
Found a solution:
Edit in includes/func.php: $product["producttitle"]="$product[product] #$product[productid]"; with $product["producttitle"]="$product[product] #$product[productcode]"; |
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?
|
Can you post a URL?
|
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
|
Did you upload func.php from a different version of x-cart?
|
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? |
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.
|
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?
|
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. |
All times are GMT -8. The time now is 01:42 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.