View Single Post
  #30  
Old 01-09-2009, 04:14 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: help with if then statment for detailed description

Hi again Scott -

It just struck me that you might be using the POS associated with the products within a category, and not the POS associated with the category itself. (There are a lot of POS settings - so it can get confusing!)

Here is more code for another query that gets that POS for product.tpl. Hopefully this displays the variable that you seek. If you have an individual product in more than one category - the query may need to be adjusted.

In product.php:
Code:
$cat_order_by = func_query_first_cell("select order_by from $sql_tbl[categories] where categoryid = '$cat'"); $smarty->assign("cat_order_by",$cat_order_by); $prod_order_by = func_query_first_cell("select orderby from $sql_tbl[products_categories] where productid = '$productid'"); $smarty->assign("prod_order_by",$prod_order_by);


In product.tpl:
Code:
category: {$cat}<br /> parent: {$current_category.parentid}<br /> order_by: {$cat_order_by}<br /> productid: {$product.productid}<br /> prod_order_by: {$prod_order_by}<br />
__________________
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)
Reply With Quote