Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

not showing NEW PRODUCTS in v2.3.1


3 replies to this topic

#1 mel37

  • Community Member
  • 6 posts
  • Real Name:melvin johnson

Posted 02 March 2011, 12:44

Hi

I was looking for some help. I'm a completely new to os commerce 2.3.1 I have just installed and have started to change a few things. But have now found that the new products are not showing. I have looked inside my index.php to see if the following lines have been commented out
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);
But it looks like those lines aren't even there, any help please

Edited by mel37, 02 March 2011, 12:45.


#2 johnnybebad

  • Community Member
  • 672 posts
  • Real Name:Johnny

Posted 02 March 2011, 14:23

View Postmel37, on 02 March 2011, 12:44, said:

Hi

I was looking for some help. I'm a completely new to os commerce 2.3.1 I have just installed and have started to change a few things. But have now found that the new products are not showing. I have looked inside my index.php to see if the following lines have been commented out
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);
But it looks like those lines aren't even there, any help please

you need a list of what files you have changed so you can work through and find out whats caused the problem by retracing your steps

before you change anything backup your files so you can always go back to what you had.

from experiance changing things is straight forward, changing them correctly isn't(humans make mistakes).
Getting better with mods but no programmer am I.

#3 14steve14

  • Community Member
  • 2,176 posts
  • Real Name:Steve
  • Gender:Male

Posted 02 March 2011, 18:26

I have the following code on about line 95 in my index file

// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>
</tr>
</table>

<br />

<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

It comes just after

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
echo ' </tr>' . "\n";
echo ' <tr>' . "\n";
}
}

I hope this helps.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.

#4 mel37

  • Community Member
  • 6 posts
  • Real Name:melvin johnson

Posted 03 March 2011, 10:12

First off
Thanks for getting back to me so quickly.

johnnybebad: I have already backed up all the files before I do anything, the problem was that I only edited the header.php and nothing else.

14steve14: Thanks I found the lines you mentioned on my notepad++ its line 85. But before I do anything I have noticed that in my Os commerce admin configurations, Featured Products there is no true/false options. In fact there are no options at all to turn it on or off :S
This has stumped me so what, any idea why there are no options?