Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured Products Contribution!


mark27uk3

Recommended Posts

Hi All,

 

I have tried to install the featured products contribution but the documentation is a little vague, I have put the following line in /catalog/includes/languages/english/index.php

 

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

 

But now I am stuck because the docs did not tell me where to place featured_products.php, also do I need to add any lines to /catalog/index.php?

 

Any help to get this working would be really appreciated.

 

Thanx

 

Mark :unsure:

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Hi All,

 

I have tried to install the featured products contribution but the documentation is a little vague, I have put the following line in /catalog/includes/languages/english/index.php

 

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

 

But now I am stuck because the docs did not tell me where to place featured_products.php, also do I need to add any lines to /catalog/index.php?

 

Any help to get this working would be really appreciated.

 

Thanx

 

Mark :unsure:

this part of the code would suggest includes/modules

 

DIR_WS_MODULES

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Ok this was just a suggestion as I do not have this installed, however the other place would be catalog.

If I knew the context of the code this would tell me if it is a module a box or the main code.

As the above said DIR_WS_MODULES it was a first guess

 

I have just checked one of my other shops which has featured product and there is a file in modules and catalog

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

is the first part of code

 

  require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FEATURED_PRODUCTS);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS));

 

if so this is catalog

 

if first part of code is

 

?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
 if (sizeof($featured_products_array) == '0') {
?>
 <tr>
   <td class="main"><?php echo TEXT_NO_FEATURED_PRODUCTS; ?></td>
 </tr>
<?php
 } else {
   for($i=0; $i<sizeof($featured_products_array); $i++) {

 

this is catalog/oncludes/modules

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Right then,

 

I have put the featured_products.php into /catalog, do I need to put an include line in /catalog/index.php cos it still aint showing.

 

Thanx

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

How many files do you have for featured_products?

 

I have catalog/

catalog/includes/modules/

catalog/includes/languages/english/

 

then an entry in includes/filnames.php

and admin/includes/filnames.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Hi,

 

I have totally buggered it up now, I am trying to remove the whole thing cos I am sick of it!

 

Now I get this error:

 

 

1146 - Table 'castlemobiuk.table_featured' doesn't exist

 

select featured_id from TABLE_FEATURED where status = '1' and now() >= expires_date and expires_date > 0

 

[TEP STOP]

 

What the hell does this mean????

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...