След това файловете, които трябва да се променят за да се нагласи изгледа на категоряита са browse_1.php,product_type.tpl.php и browse_notables.tpl.php
file:
1. step:
after:
add:
2. step:
after:
add:
3. step:
than after:
add:
4. step:
file:
add anywhere you want to use
Code:
shop.browse.php
1. step:
after:
Code:
require_once(CLASSPATH . 'ps_product_attribute.php' );
$ps_product_attribute = new ps_product_attribute;
around line 32$ps_product_attribute = new ps_product_attribute;
add:
Code:
require_once(CLASSPATH . 'ps_product_type.php' );
$ps_product_type = new ps_product_type;
$ps_product_type = new ps_product_type;
2. step:
after:
Code:
$product_s_desc = $db_browse->f("product_s_desc");
if( empty($product_s_desc) && $product_parent_id!=0 ) {
$product_s_desc = $dbp->f("product_s_desc"); // Use product_s_desc from Parent Product
}
around line 400if( empty($product_s_desc) && $product_parent_id!=0 ) {
$product_s_desc = $dbp->f("product_s_desc"); // Use product_s_desc from Parent Product
}
add:
Code:
$flerd_product_id = $db_browse->f("product_id");
$product_type = $ps_product_type->list_product_type($flerd_product_id);
$product_type = $ps_product_type->list_product_type($flerd_product_id);
3. step:
than after:
Code:
$products[$i]['product_s_desc'] = $product_s_desc;
around line 440add:
Code:
$products[$i]['product_type'] = $product_type;
4. step:
file:
Code:
browser_2.php
(or what browser page you use)add anywhere you want to use
Code:
echo $product_type ?>
Няма коментари:
Публикуване на коментар