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

Product ID # to SKU # on the details page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 08-15-2003, 04:07 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Product ID # to SKU # on the details page

I know I am just not thinking at the moment, but does anyone know how to change the product ID # to the SKU # on the details page?

For ex. I want the product ID # that get generated after each product to change to the SKU #.

Can be done in two ways:

-Change the product ID # to the SKU# in the database

-Change the display on the details page to display the SKU# instead of the product ID #

Any thoughts?
Reply With Quote
  #2  
Old 08-15-2003, 04:28 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try

{$product.productcode}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-15-2003, 05:14 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Thanks Shan!

But now how can I change the product title to not show the product ID but show the SKU # {$product.productcode} on the details page.

I looked at the dialog.tpl file but I can't take the product ID number out there, so where do I need to look?

Anyone?
Reply With Quote
  #4  
Old 08-15-2003, 12:22 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,950
 

Default

in v3.4.* try looking in xcart/include/func.php

around line 1190 look for

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

change to

Quote:
$product["producttitle"]="$product[product] - #$product[productcode]";

That will display the product code instead of the product ID
Reply With Quote
  #5  
Old 08-20-2003, 02:35 AM
 
info@auction-help.com info@auction-help.com is offline
 

Member
  
Join Date: Jul 2003
Posts: 15
 

Default It works great!

It works great - Thanks for the mod !
Reply With Quote
  #6  
Old 07-31-2004, 09:16 AM
 
summitmn summitmn is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Manitou Springs, CO USA
Posts: 105
 

Default

this worked well for me also. great mod. thanks.
Reply With Quote
  #7  
Old 08-20-2004, 08:54 AM
 
Jason @ streetwerke Jason @ streetwerke is offline
 

Member
  
Join Date: Aug 2004
Posts: 21
 

Default

I'm running v4.0.2, and I just did this mod. It works fine, however in v4.0.2, it's line 1962 of the "func.php" code that needs to be changed from "productid" to "productcode".

Thanks!
__________________
Jason
streetwerke.com
X-Cart 4.0.11 Gold(AOM/Pconf/GiftReg/Affiliate)
MySQL 4.0.24-standard
PHP 4.3.11
Reply With Quote
  #8  
Old 08-20-2004, 08:54 AM
 
Jason @ streetwerke Jason @ streetwerke is offline
 

Member
  
Join Date: Aug 2004
Posts: 21
 

Default

Double post. The DELETE function should be enabled.
__________________
Jason
streetwerke.com
X-Cart 4.0.11 Gold(AOM/Pconf/GiftReg/Affiliate)
MySQL 4.0.24-standard
PHP 4.3.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:21 AM.

   

 
X-Cart forums © 2001-2020