Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Dispaying SKU instead of productid in XCART 3.5.4

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-03-2004, 10:02 AM
  jvleigh's Avatar 
jvleigh jvleigh is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Kentucky, USA
Posts: 30
 

Default 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
Reply With Quote
  #2  
Old 03-03-2004, 01:09 PM
  jvleigh's Avatar 
jvleigh jvleigh is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Kentucky, USA
Posts: 30
 

Default

Found a solution:

Edit in includes/func.php:

$product["producttitle"]="$product[product] #$product[productid]";

with

$product["producttitle"]="$product[product] #$product[productcode]";
Reply With Quote
  #3  
Old 06-06-2004, 11:48 PM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

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
Reply With Quote
  #4  
Old 06-07-2004, 03:53 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

Can you post a URL?
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want.
Reply With Quote
  #5  
Old 06-07-2004, 08:38 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

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
Reply With Quote
  #6  
Old 06-07-2004, 08:39 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

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.
Reply With Quote
  #7  
Old 06-07-2004, 09:59 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

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
Reply With Quote
  #8  
Old 06-07-2004, 10:38 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

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.
Reply With Quote
  #9  
Old 06-07-2004, 10:56 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

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
Reply With Quote
  #10  
Old 06-07-2004, 11:09 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:19 AM.

   

 
X-Cart forums © 2001-2020