plus, of course, search engine

ok, i admit - i'm terrible!

Do you mean fields that the users theirselves can label and fill? For example: Three "empty" fields, which you with your phpwcms would use for "height", "width" and "weight". But I would use the three fields for "Quantity", "Quality" and "Trinity"?Terrible Man wrote:if we could define several customizable fields for each property of the objects (like weight, height, etc.)
These category-details will be the source for the fields and labels other parts of the product-space. But this would not be just interesting for "products", but for other things, too.Example wrote:Category: Cars
- Color (red|blue|green|etc.)
- Creator (Toyota|Nissan|Honda|etc.)
- etc.
Category: Drinks
- Type (Coctail|longdrinks|alcohol-free|etc.)
- Quantity (2cl|300ml|etc.)
- Time needed (1 minute|5 minutes|neverending story|etc.)
- etc.
Code: Select all
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE `phpwcms_products_prices` CHANGE `amount` `value` BLOB
#
#-----[ FIND ]------------------------------------------
#
case "products": //Produktbearbeitung
switch ($p) {
case 0: include_once "./include/inc_module/mod_company/inc_tmpl/products.structlist.tmpl.php"; break; //Productlist
case 1: include_once "./include/inc_module/mod_company/inc_tmpl/products.edit.tmpl.php"; break; //Productedit
case 2: include_once "./include/inc_module/mod_company/inc_tmpl/products.edit.tmpl.php"; break; //Productedit
case 3: include_once "./include/inc_module/mod_company/inc_tmpl/products.prices.tmpl.php"; break; //Preise
case 4: include_once "./include/inc_module/mod_company/inc_tmpl/products.releases.tmpl.php"; break; //Releases
case 5: include_once "./include/inc_module/mod_company/inc_lib/products.delete.inc.php"; break; //Releases
}
break;
#
#-----[ REPLACE WITH ]------------------------------------------
#
case "products": //Produktbearbeitung
switch ($p) {
case 0: include_once "./include/inc_module/mod_company/inc_tmpl/products.structlist.tmpl.php"; break; //Productlist
case 1: include_once "./include/inc_module/mod_company/inc_tmpl/products.edit.tmpl.php"; break; //Productedit
case 2: include_once "./include/inc_module/mod_company/inc_tmpl/products.edit.tmpl.php"; break; //Productedit
case 3: //Preise
switch(intval($_GET["s"]))
{
case 1: include_once "./include/inc_module/mod_company/inc_tmpl/products.prices.edit.tmpl.php"; break; //New Price
case 2: include_once "./include/inc_module/mod_company/inc_tmpl/products.prices.edit.tmpl.php"; break; //Edit Price
case 3: include_once "./include/inc_module/mod_company/inc_lib/products.prices.delete.inc.php"; break; // Delete price
default: include_once "./include/inc_module/mod_company/inc_tmpl/products.prices.tmpl.php"; break; // List prices
}
break;
case 4: include_once "./include/inc_module/mod_company/inc_tmpl/products.releases.tmpl.php"; break; //Releases
case 5: include_once "./include/inc_module/mod_company/inc_lib/products.delete.inc.php"; break; //Releases
}
break;
Update instructions from version 0.3 to 0.4{PRODUCTS:CATEGORY:productname}
Displays the product category.
{PRODUCTS:SYSTEM_REQ:productname}
Displays the system requirements for a product. Intended for software.
{PRODUCTS:CONTACT_NAME:productname}
Displays the name of the person/team/whatever to contact in matters with this product.
{PRODUCTS:PRICELIST:productname}
Displays a table with all different positions and prices/values for this products. See example-screenshot
Code: Select all
###########################################################################################
## MOD Title: phpwcms Company Mod
## MOD Author: Jérôme < spam@jerome-gamez.de > (Jérôme Gamez) http://jerome-gamez.de/
##
## Update instructions from 0.3 -> 0.4
##
###########################################################################################
#
#-----[ OPEN ]------------------------------------------
#
include/inc_front/content.func.inc.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
require_once ('./include/inc_module/mod_company/inc_front/company.func.inc.php');
#
#-----[ OPEN ]------------------------------------------
#
include/inc_conf/inc.conf.php
#
#-----[ FIND ]------------------------------------------
#
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
#
#-----[ AFTER, ADD ]------------------------------------------
#
$phpwcms["modules"] = "include/inc_module"; //default: "include/inc_module"
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
<link rel="stylesheet" type="text/css" href="<?php echo ".".$phpwcms["templates"]."inc_css/".$block["css"] ?>">
#
#-----[ AFTER, ADD ]------------------------------------------
#
<link rel="stylesheet" type="text/css" href="<?php echo "./".$phpwcms["modules"]; ?>/mod_company/inc_css/mod_company.css">
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM