View Single Post
  #12  
Old 06-22-2012, 09:46 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Product options in product list

Okay here is step 1 to solving the problem in 4.4.X:

Open up /products.php and near line 135 insert this code:
PHP Code:
if (isset($cat) && isset($products) && !empty($active_modules['Product_Options'])) {
    foreach (
$products as $k => $v) {
        if (
'Y' == $v['is_product_options']) {
            
$products[$k]['options'] = func_get_product_classes($v['productid']);
        }
    }

Insert it right after:
PHP Code:
if (!empty($active_modules['Subscriptions'])) {

    include 
$xcart_dir '/modules/Subscriptions/subscription.php';


But before:
PHP Code:
$smarty->assign('cat_products',      isset($products) ? $products : array());
$smarty->assign('navigation_script'"home.php?cat=$cat&sort=$sort&sort_direction=$sort_direction");
?> 

This will get the options assigned to the product list in a category.

Now you should be able to view the options in webmaster mode.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote