Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Description in Product Listing v.2 Help


Guest

Recommended Posts

Ive triple checked everything and dont know whats wrong with how the product listing appears.

 

Here is how a subcatagory looks like:

http://store.shaolin-venoms.com/Venom-Stor....php?cPath=3_10

 

But in the quick search it shows perfect:

http://store.shaolin-venoms.com/Venom-Stor...?keywords=media

 

No product description in any main catagories thoe.

http://store.shaolin-venoms.com/Venom-Stor...php?cPath=38_39

 

This seems to happend when more than 1 product is listed.

 

Any ideas anyone?

Link to comment
Share on other sites

I just double-checked on my development server and it seems to be working fine with sub-categories there. It doesn't look like you've made the changes in default.php. If you have, please send me a copy of it so I can take a look to see what's happening.

 

My email address is in the readme.txt file that came in the mod.

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

Ok got it.

 

I missed adding one of the "// Products Description Hack begins and ends //" .

 

Its all working perfect now thanks.

 

Btw, I have a modified Show Random mod that is intergraded with the sm,med,lrg mod and the catagory tree box mod to select a random product to show the given medium image and display the products only within thier catagory.

 

Anyone know how i could add a product description with this:

 

<!-- show_random //-->

         <tr>

           <td>

<?php

if ($HTTP_GET_VARS['cPath']) {









 if ($random_product = tep_random_select("select p.products_id, p.products_mediumimage, p.products_tax_class_id, p.products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where products_status='1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (c.categories_id = '" . $current_category_id . "' OR c.parent_id = '" . $current_category_id . "') order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) {

   $random_product['products_name'] = tep_get_products_name($random_product['products_id']);

   $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']);



   $info_box_contents = array();

   $info_box_contents[] = array('align' => 'center',

                                'text'  => Spotlight

                               );

   new infoBoxHeading($info_box_contents, false, false);



   if ($random_product['specials_new_products_price']) {

     $rprod_price =  '<s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br>';

     $rprod_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';

   } else {

     $rprod_price =  $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id']));

   }



   $info_box_contents = array();

   $info_box_contents[] = array('align' => 'center',

                                'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_mediumimage'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id'], 'NONSSL') . '">' . $random_product['products_name'] . '</a><br>' . $rprod_price

                               );

   new infoBox($info_box_contents);

 }

}

else {

if ($random_product = tep_random_select("select products_id, products_mediumimage, products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_status='1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) {

   $random_product['products_name'] = tep_get_products_name($random_product['products_id']);

   $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']);



   $info_box_contents = array();

   $info_box_contents[] = array('align' => 'center',

                                'text'  => Spotlight

                               );

   new infoBoxHeading($info_box_contents, false, false);



   if ($random_product['specials_new_products_price']) {

     $rprod_price =  '<s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br>';

     $rprod_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';

   } else {

     $rprod_price =  $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id']));

   }



   $info_box_contents = array();

   $info_box_contents[] = array('align' => 'center',

                                'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_mediumimage'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id'], 'NONSSL') . '">' . $random_product['products_name'] . '</a><br>' . $rprod_price

                               );

   new infoBox($info_box_contents);

 }

}

?>

           </td>

         </tr>

<!-- show_random_eof //-->

Link to comment
Share on other sites

Ive triple checked everything and dont know whats wrong with how the product listing appears.

 

Here is how a subcatagory looks like:

http://store.shaolin-venoms.com/Venom-Stor....php?cPath=3_10

 

But in the quick search it shows perfect:

http://store.shaolin-venoms.com/Venom-Stor...?keywords=media

 

No product description in any main catagories thoe.

http://store.shaolin-venoms.com/Venom-Stor...php?cPath=38_39

 

This seems to happend when more than 1 product is listed.

 

Any ideas anyone?

 

 

Hi,

could you tell me which contribution are you using to show the product in that way?

image, description etc..

 

Thanks

 

Salvo

Link to comment
Share on other sites

Hi all,

 

I have just downloaded the Description in Product Listing v.2

and made all the changes.

 

I have a few problems and a few question.

 

1- here is what I have:

 

Product Name+ Product Name+">Product Name++ Price Price">Price Price">Price">Price">Price

 

repeat the Product Name 3 times and the price 7 times.

 

2- I like to show the images like the links above...

 

Can please someone help?

 

Did I download the correct Contribution?

 

Thanks

 

Salvo

Link to comment
Share on other sites

Try this. Go to your admin section and to Configuration> Product Listing> and set the order of the display of your product listing.

 

Ill use my configuration as an example.

 

Display Product Image 1

Display Product Manufaturer Name 4

Display Product Model 0

Display Product Name 3

Display Product Price 5

Display Product Quantity 0

Display Product Weight 0

Display Buy Now column 2

Display Category/Manufacturer Filter (0=disable; 1=enable) 1

Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 3

Display Product Description 99

Length of Truncated Product Description 350

 

Here 12345 is the order that shows Example1:

 

_(image=1)_BuyNow=2___Name=3___Manufature=4___Price=5__

___________Description should apear here.

 

If you wanna show more then put them in order Example2:

 

_(image=1)_BuyNow=2_Model=3_Name=4_Manufature=5_Price=6_

___________Description should apear here.

 

I think that the image is set to the extreme right and price is set to the extreme left so lets put image to 1 and price with the last number (like in Example1 its 5 in Example2 its 6)

 

Try that.

Link to comment
Share on other sites

  • 4 months later...

I installed the description in product listing contribution and it works fine. My question is i am trying to modify the look of the product listing page so it lists only 1 product per row instead of 4, so each product gets its own row instead of ther being 4 products crammed into 1 rown fitting the entire description, please let me know how i can fix that so it looks cleaner.

 

Thanks

Link to comment
Share on other sites

Hello Illi, I wanted to see if you could post me your /includes/modules/product_listing.php code because my description is not showing up in my category product listing. And if you think the problem could be in default.php then please attach that one as well if you can. THanks

 

BTW your product listing looks sweet.

Link to comment
Share on other sites

Hello Illi, I wanted to see if you could post me your /includes/modules/product_listing.php code because my description is not showing up in my category product listing. And if you think the problem could be in default.php then please attach that one as well if you can. THanks

 

BTW your product listing looks sweet.

 

That was my old sept 2002 store and then i moved to the november premodded with 20 mods or so but the description didnt work (was a huge pain to modify) so im now workin with the milestone M1 release which it does work with just fine.

 

Instead of replacing some files i opened up the php files in a notepad and searched for the word "hack" so i would where to modify my milestone files instead replacing them with the old files that come with the mod.

 

I would grab the milestone release or the latest snapshot and see if it works.

Also, double check your products description installation.

Link to comment
Share on other sites

Hello-

 

Has anyone gotten Description in Product Listing v.2 to work with the new release of Ian's Loaded 5?

 

I have checked, and rechecked all of the file modifications etc. and cannot see any description in the listings.

 

Any help appreciated!

Link to comment
Share on other sites

I am posting this in case it may help someone else. The Description in Product listing and the Product Listing in Columns modifications conflict with one another. Since I do not need the Prod. Listing in Columns modification (which comes in Ian's Loaded version 5) I just went through and deinstalled it. Now the Description in Product Listing works like a charm. I also turned off the images in product listing.

 

Big thanks to Paul C. for this nice mod and his advice!

 

--Catherine

Link to comment
Share on other sites

Sorry, i meant to post a direct link to the product listing, here is the updated link: http://www.modchipstore.com/newstore2/defa....php?cPath=3_15 I also wanted to ask if someone could send me or post me their product_listing.php code so i can upload it, i do not have any more modifications to the file so i am willing to use the product listing file you guys have to see if it works.

 

Thanks in advance.

Link to comment
Share on other sites

I cant see the truncated descriptions on my site.

 

I'v loaded all the relevant files & database changes and added the Hacks (rather than loading up the files) but all I get is a blank line under the product name, cost, etc. When I remove the Short Desc in Admin, I loose the blank line.

 

I'm running MS1 and thought that might be the problem but I guess not since it works for Illicious.

 

Posted this as new thread then found this Help Thread - oops.

 

Kenny

toy.p10.co.uk

If you learn more than you forget then that's a good thing.

Link to comment
Share on other sites

I would double check to see if you installed all the correct hack listings in the files cus i had to triple check mine like 5 times.

 

Also, what is your admin > product listings settings:

 

Here my old post on what has the best results:

Ill use my configuration as an example.  

 

Display Product Image 1  

Display Product Manufaturer Name 4  

Display Product Model 0  

Display Product Name 3  

Display Product Price 5  

Display Product Quantity 0  

Display Product Weight 0  

Display Buy Now column 2  

Display Category/Manufacturer Filter (0=disable; 1=enable) 1  

Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 3  

Display Product Description 99  

Length of Truncated Product Description 350  

 

Here 12345 is the order that shows Example1:  

 

_(image=1)_BuyNow=2___Name=3___Manufature=4___Price=5__  

___________Description should apear here.

 

I use this cus sometimes it can throw things off and scamble things up almost make it appear like its not there.

 

Also, try to set the trunicated description from 350 to 310, 250, 200, 150 etc etc to see if it appears.

Link to comment
Share on other sites

Thanks Illicious - I've a few modifications, along with the newer version of OSC so couldn't just overlay the contribution files.

 

Therefore, for each of the 5 files I :-

 

1 - Ensured all the hacks were complete

2 - Readded the hacks to virgin versions of each file

3 - Loaded contribution files over MS1 ones

 

- some of my mods failed on the way (coz they weren't in the newer files) but still no descriptions

 

My admin screen is exactly as you suggested too.

 

- I'm completely stumped - any other ideas

 

Kenny

If you learn more than you forget then that's a good thing.

Link to comment
Share on other sites

Did you remember adding right before the last ?> in catalog/includes/functions/general.php?

 

////

// Products Description Hack begins

//  

// grabs a length from a string, but goes back to the last space if it cut into

// the middle of a string.  If the string is longer than that, cut, then add '...'

// to the end of the string, if the $more == 1

function osc_trunc_string($str="",$len=150,$more=1)

{

 if ($str=="") return $str;

 if (is_array($str)) return $str;

 $str = trim($str);

 // if it's les than the size given, then return it

 if (strlen($str) <= $len) return $str;

 // else get that size of text

 $str = substr($str,0,$len);

 // backtrack to the end of a word

 if ($str != "") {

	 // check to see if there are any spaces left

	 if (!substr_count($str," ")) {

   if ($more) $str .= "...";

   return $str;

	 }

	 // backtrack

	 while(strlen($str) && ($str[strlen($str)-1] != " ")) {

   $str = substr($str,0,-1);

	 }

	 $str = substr($str,0,-1);

	 if ($more) $str .= "...";

 }

 return $str;

}

// Products Description Hack ends

 

 

Here is my product_listings.php file.

It may have some mods installed but just so you can see if your missed something:

 

<?php

/*

 $Id: product_listing.php,v 1.38 2002/08/01 10:55:27 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php



 $colspan = sizeof($column_list);



 $listing_numrows_sql = $listing_sql;

 $listing_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $listing_sql, $listing_numrows);

// fix counted products

 $listing_numrows = tep_db_query($listing_numrows_sql);

 $listing_numrows = tep_db_num_rows($listing_numrows);



 if ($listing_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {

?>

 <tr>

   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 }

?>

 <tr>

   <td>

<?php

 $list_box_contents = array();

 $list_box_contents[] = array('params' => 'class="productListing-heading"');

 $cur_row = sizeof($list_box_contents) - 1;



 for ($col=0; $col<sizeof($column_list); $col++) {

   switch ($column_list[$col]) {

     case 'PRODUCT_LIST_MODEL':

       $lc_text = TABLE_HEADING_MODEL;

       $lc_align = 'left';

       break;

     case 'PRODUCT_LIST_NAME':

       $lc_text = TABLE_HEADING_PRODUCTS;

       $lc_align = 'left';

       break;

     // Products Description Hack begins

     case 'PRODUCT_LIST_DESCRIPTION':

       break;

     // Products Description Hack ends

     case 'PRODUCT_LIST_MANUFACTURER':

       $lc_text = TABLE_HEADING_MANUFACTURER;

       $lc_align = 'left';

       break;

     case 'PRODUCT_LIST_PRICE':

       $lc_text = TABLE_HEADING_PRICE;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_QUANTITY':

       $lc_text = TABLE_HEADING_QUANTITY;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_WEIGHT':

       $lc_text = TABLE_HEADING_WEIGHT;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_IMAGE':

       $lc_text = TABLE_HEADING_IMAGE;

       $lc_align = 'center';

       break;

     case 'PRODUCT_LIST_BUY_NOW':

       $lc_text = TABLE_HEADING_BUY_NOW;

       $lc_align = 'center';

       break;

   }

   

   // Products Description Hack begins

   if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' &&

       $column_list[$col] != 'PRODUCT_LIST_IMAGE' &&

       $column_list[$col] != 'PRODUCT_LIST_DESCRIPTION')

     $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);



   if ($column_list[$col] != 'PRODUCT_LIST_DESCRIPTION') {

     $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                            'params' => 'class="productListing-heading"',

                                            'text'  => " " . $lc_text . " ");

   }

   // Products Description Hack ends

 }



 if ($listing_numrows > 0) {

   $number_of_products = '0';

   $listing = tep_db_query($listing_sql);

$prev_next="";

   while ($listing_values = tep_db_fetch_array($listing)) {

     $number_of_products++;



// prev_next code starts here ******************************



$prev_next.= $listing_values['products_id'];

if($prev_next!=""){$prev_next.=","; }

session_register("prev_next");



// end of pre/next code ************************************

     if ( ($number_of_products/2) == floor($number_of_products/2) ) {

       $list_box_contents[] = array('params' => 'class="productListing-even"');

     } else {

       $list_box_contents[] = array('params' => 'class="productListing-odd"');

     }



     $cur_row = sizeof($list_box_contents) - 1;

     

     for ($col=0; $col<sizeof($column_list); $col++) {

       $lc_align = '';

       // Products Description Hack begins

       $lc_params = '';

       // Products Description Hack ends



       switch ($column_list[$col]) {

         case 'PRODUCT_LIST_MODEL':

           $lc_text = ' ' . $listing_values['products_model'] . ' ';

           break;

         case 'PRODUCT_LIST_NAME':

           if ($HTTP_GET_VARS['manufacturers_id']) {

             $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['products_name'] . '</a>';

           } else {

             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a> ';

           }

           break;

         // Products Description Hack begins

         case 'PRODUCT_LIST_DESCRIPTION':

           $lc_text = ' ' . osc_trunc_string(strip_tags($listing_values['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . ' ';

           $col_to_span = sizeof($column_list)-1;

           if (PRODUCT_LIST_IMAGE > 0) {

             $col_to_span -= 1;

           }

           $lc_params = 'colspan="' . $col_to_span . '" ';

           break;

         // Products Description Hack ends

         case 'PRODUCT_LIST_MANUFACTURER':

           $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing_values['manufacturers_id'], 'NONSSL') . '">' . $listing_values['manufacturers_name'] . '</a> ';

           break;

         case 'PRODUCT_LIST_PRICE':

           $lc_align = 'right';

           if ($listing_values['specials_new_products_price']) {

             $lc_text = ' <s>' .  $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';

           } else {

             $lc_text = ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' ';

           }

           break;

         case 'PRODUCT_LIST_QUANTITY':

           $lc_align = 'right';

           $lc_text = ' ' . $listing_values['products_quantity'] . ' ';

           break;

         case 'PRODUCT_LIST_WEIGHT':

           $lc_align = 'right';

           $lc_text = ' ' . $listing_values['products_weight'] . ' ';

           break;

         case 'PRODUCT_LIST_IMAGE':

           $lc_align = 'center';

           if ($HTTP_GET_VARS['manufacturers_id']) {

             $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

           } else {

             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';

           }

           // Products Description Hack begins

           if (PRODUCT_LIST_DESCRIPTION > 0) {

             $lc_params = 'rowspan="2" ';

           }

           // Products Description Hack ends

           break;

         case 'PRODUCT_LIST_BUY_NOW':

           $lc_align = 'center';

           $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing_values['products_name'] . TEXT_NOW) . '</a> ';

           break;

       }



       // Products Description Hack begins

       $lc_params .= 'class="productListing-data"';

       if ($column_list[$col] == 'PRODUCT_LIST_DESCRIPTION') {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text' => $lc_text,

                                                'desc_flag' => 'true');

       } else {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text'  => $lc_text);

       }

       // Products Description Hack ends



     }

   }

   new tableBox($list_box_contents, true);



   echo '    </td>' . "n";

   echo '  </tr>' . "n";

 } else {

?>

 <tr class="productListing-odd">

   <td class="smallText"> <?php echo ($HTTP_GET_VARS['manufacturers_id'] ? TEXT_NO_PRODUCTS2 : TEXT_NO_PRODUCTS); ?> </td>

 </tr>

<?php

 }

?>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 if ($listing_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {

?>

 <tr>

   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

<?php

 }

?>

</table>

Link to comment
Share on other sites

Illicious - Fan-Bloody-Tastic

 

I still cant figure out what was wrong. I matched up your product_listing with mine using Beyond Compare but there were only little differences such as different brackets or carriage returns in different places - I'd expect that since they were different versions. Anyway, I overwrote it and it worked.

 

I noticed the product title font was the same as the description so I hacked in some bolding at the same time.

 

Thanks again

 

Kenny

 

------

 

Magnus579 - Its difficult to find - Called Short Description in Product listing

 

http://www.oscommerce.com/community/contri...ions,67/page,10

If you learn more than you forget then that's a good thing.

Link to comment
Share on other sites

Well, the mod actually works for me now - I can see the description beneath the actual product details in the listing. I do, however, have another problem and I am unsure how to resolve it.

 

I get the following :

 

Fatal error: Call to undefined function: tep_parse_category_path() in /home/diecast/public_html/catalog/includes/application_top.php on line 436

 

whenever I visit product_info.php for any product. There was nothing in the mod pack to add to application_top.php relating to a function of this kind so I don't know where the problem stems from.

 

This only arises when I install the mod.

 

Any ideas???

Link to comment
Share on other sites

Sent ya a email but ill put it here just in case:

 

Not really sure what is causing that but its saying undefined so it need to be defined in aplication_top and my products_info.php doesnt have "tep_parse_category_path" so your store may be either a different 2.2 snapshot, M1 release or any of the 2 with some mods.

 

Check in catalog/includes/ aplication_top.php if you have:

 

// calculate category path

 if (isset($HTTP_GET_VARS['cPath'])) {

   $cPath = $HTTP_GET_VARS['cPath'];

 } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {

   $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);

 } else {

   $cPath = '';

 }



 if (tep_not_null($cPath)) {

   $cPath_array = tep_parse_category_path($cPath);

   $cPath = implode('_', $cPath_array);

   $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];

 } else {

   $current_category_id = 0;

 }

Should be between:

 

  tep_expire_featured();

and

// include the breadcrumb class and start the breadcrumb trail

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...