Most recent edit on 2009-07-14 10:17:47 by KryptronicWebmaster
Additions:
If you have enabled the display of product numbers you will find that they are added to the display in one of the core files named CCP_Prod.php at line 1445 in the prodshow function/method. This core file resides in the {private}/apps/ccp0/CCP_Prod/ directory. By default the product number, if enabled, is displayed before the product name separated from it by a dash (-).
Deletions:
If you have enabled the display of product numbers you will find that they are added to the display in one of the core files named CCP_Prod.php at line 1445 in the prodshow function/method. This core file resides in the {private}/apps/ccp0/CC_Prod/ directory. By default the product number, if enabled, is displayed before the product name separated from it by a dash (-).
Edited on 2007-04-08 08:33:49 by KryptronicWebmaster
Additions:
ClickCartPro - Skinning (Changing The Look Of Your Site)
Edited on 2007-04-08 08:33:11 by KryptronicWebmaster
Additions:
Changing How Product Name and/or Product Number is Displayed
Warning: This procedure involves modifying a core piece of the software. Any errors made may cause the entire cart to stop working. As this is a core file it is also subject to change when updates are released.
If you have enabled the display of product numbers you will find that they are added to the display in one of the core files named CCP_Prod.php at line 1445 in the prodshow function/method. This core file resides in the {private}/apps/ccp0/CC_Prod/ directory. By default the product number, if enabled, is displayed before the product name separated from it by a dash (-).
The line of code you will be modifying looks like this by default:
$product['name'] = $product['prodnum'] . ' - ' . $product['name'];
You may modify how the product name and product number are displayed in any way you would like. If, for example, you wanted to have the product number shown after the product name with parenthesis around it the code would look like this:
$product['name'] = $product['name'] . ' (' . $product['prodnum'] . ')';
This modification only affects the display of product details. If you want to also change how things are displayed in the category view and other places where a list of products is shown you will need to modify line number 476 in the same file which looks like this by default:
$result[$num]['name'] = $result[$num]['prodnum'] . ' - ' . $result[$num]['name'];
ClickCartPro - Products
ClickCartPro - Administration
Deletions:
Changing How Product Title and/or Part Number is Displayed
Incomplete - This entry is not complete or tested yet. Do not use.
The place where that is built is buried in one of the core CCP pieces of code. You'll find that it is being built in the prodshow method (function) within {private}/apps/ccp0/CC_Prod/CCP_Prod.php (line 1445 in my copy is where the product number is added if the option is turned on).
As this is a critical piece of code I'd be very careful and make sure you have a backup of the original before you touch it. It's also subject to updates of course.
Category view:
Line 476, I changed it from:
$result[$num]['name'] = $result[$num]['prodnum'] . ' - ' . $result[$num]['name'];
To:
$result[$num]['name'] = $result[$num]['name'] . ' - ' . $result[$num]['prodnum'];
Product View:
On Line 1445, I changed it from:
$product['name'] = $product['prodnum'] . ' - ' . $product['name'];
To:
$product['name'] = $product['name'] . ' - ' . $product['prodnum'];
Wiki: Pending Inclusion
Oldest known version of this page was edited on 2007-04-06 08:15:06 by KryptronicWebmaster []
Page view:
Changing How Product Title and/or Part Number is Displayed
Incomplete - This entry is not complete or tested yet. Do not use.
The place where that is built is buried in one of the core CCP pieces of code. You'll find that it is being built in the prodshow method (function) within {private}/apps/ccp0/CC_Prod/CCP_Prod.php (line 1445 in my copy is where the product number is added if the option is turned on).
As this is a critical piece of code I'd be very careful and make sure you have a backup of the original before you touch it. It's also subject to updates of course.
Category view:
Line 476, I changed it from:
$result[$num]['name'] = $result[$num]['prodnum'] . ' - ' . $result[$num]['name'];
To:
$result[$num]['name'] = $result[$num]['name'] . ' - ' . $result[$num]['prodnum'];
Product View:
On Line 1445, I changed it from:
$product['name'] = $product['prodnum'] . ' - ' . $product['name'];
To:
$product['name'] = $product['name'] . ' - ' . $product['prodnum'];
Wiki: Pending Inclusion