Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
daviswe
daviswe
I need my customers to dig in and read the details page where all the extra images and detailed descriptions, specs and all that is.
 
The way I try to get them to do that is by not putting the 'add to cart' stuff on the list page, and ask them to continue to the Details Page, but most folks don't take the time, and just call me instead.
 
Is it possible to go straight from the product category link to the product details page if there is only one product in it? My products are all in separate categories due to the nature of my business and products.
 
Thanks for any assistance. I considered just making a custom block to replace the category block, but I'd rather do this in CMS if possible...
 
Ed
 
turt (Guest)
turt (Guest)
I think you should move them up, to avoid categories with one product, and add to categories list block small code thet will displays products links as subcategories - but it requires small programming skills
 
Monk
Monk
Hello Ed,
 
You can activate option to run PHP code in custom blocks and create a custom block which will check if there is only one product in category and then make automatic redirect to the details page. This custom block you will need to add to your listing page in CMS.
 
Here example of such custom block body:
 
<?php
$category_id = get_param("category_id");
$total = get_db_value("select count(*) from va_items_categories where category_id=".intval($category_id));
if ($total == 1) {
$item_id = get_db_value("select item_id from va_items_categories where category_id=".intval($category_id));
header("Location: product_details.php?item_id=".$item_id);
exit;
}
?>
 
Hope it will help you.
Last modified: 12 Nov 2009 12:10 PM