How to view products list of selected categories after i will save product

nicarcola

Avatar: nicarcola

2007-04-25 17:47

I work with V1.4 loaded. In admin I can change products. Before I do that I can select the products in a (sub)category. But after I saved the changed product I come back in the list of all products. What I want is come back on the page with the selected (sub(category. Where and how can I change that???

» Quick.Cart v1.x

treewood (OpenSolution)

Avatar: treewood

2007-04-26 08:37

nicarcola - first problem is that You can select more then one category. I can give You only suggestion how to view products list for first selected category on list.
Edit actions_admin/products.php and find that:

header'Location: '.$_SERVER['PHP_SELF'].'?p='.$aActions['g'].'List&sOption=save' );

and replace to:

header'Location: '.$_SERVER['PHP_SELF'].'?p='.$aActions['g'].'List&sOption=save&iCategory='.$_POST['aCategories'][0] );


Works?

nicarcola

Avatar: nicarcola

2007-04-27 20:29

I dont know what yopu mean by the fact that I can select more than one category. Becaiuse I can only select one catecory at a time. Normally you can select more itmes by holding down the shift or cntrl button. But it results in just one. So, please can you make yourself clear to me.

I made the change and what I see is that if I select a category and the product has a subcategory after the save I go back to the subcategory instead of the category. Is that what you mean???

merci

No avatar

2007-04-30 10:01

nicarcola- firstly really you are able to select more than one category. You can see this in demo version:
http://opensolution.org/Quick.Cart/demo/?p=productsMore&iProduct=6&sName=sony-19-hs-series-flat-panel- digital-displaysdm-hs95p-b
this product belongs to more than one category. Try again in admin when you are selecting category for product hold ctrl button and click few category. They should be darker when they are selected.

secondly - this tip from treewood shows how to view products list only for first category on list. Probably you would like to shows all products of earlier selected (sub)category, but it is more complicated to do and to describe, so if you want, we can do it for you (contact us by email).

Back to top
about us | contact