X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Product ID # to SKU # on the details page (https://forum.x-cart.com/showthread.php?t=3999)

elabdesigns 08-15-2003 04:07 AM

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? :wink:

shan 08-15-2003 04:28 AM

try

{$product.productcode}

elabdesigns 08-15-2003 05:14 AM

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?

PhilJ 08-15-2003 12:22 PM

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

info@auction-help.com 08-20-2003 02:35 AM

It works great!
 
:D It works great - Thanks for the mod !

summitmn 07-31-2004 09:16 AM

this worked well for me also. great mod. thanks.

Jason @ streetwerke 08-20-2004 08:54 AM

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 08-20-2004 08:54 AM

Double post. The DELETE function should be enabled. :?


All times are GMT -8. The time now is 05:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.