Re: Select category for discount pricing
Hi Christine,
When you say "root category" do you mean another category you have put the product in that is not defined as the main category?
Check the breadcrumb on the product page - those are the categories that you defined as the main category for the product.
If you do not see the closeout category in that path - I do not believe the default queries for product.php capture that category. (In other words - a product can be in multi categories and for some shops, a query to capture all the category information for every product page load could be a lot of extra overhead, if it were not used.)
You may want to take a look at the $current_category array, you will see the categories XCART has about your product: $current_category.categoryid, $current_category.parentid, etc.
I think the category_location array is also there that is used to make the breadcrumb.
If you don't see your closeout category - you may have to add a query to product.php to check to see if a product is in that category - and then set a flag you can use in the template.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
|