Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product compare Functions with optional (active or inactive)


ken0306

Recommended Posts

Posted

Hi, I am trying to using products compare functions with my site, but I want categories be able to turn on or off from the admin-side.

 

so, here is what I think it can make it easier.

 

1. create one extra copy of product_listing_compare.php (with compare function) from product_listing.php, and define in filenames.php.

 

2. create extra field in categories table call compare status.

 

3. under index.php page, and local the FILENAME_PRODUCT_LISTING and insert the if states in there.

 

<?php

if ( ******** ) {

include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_COMPARE);

 

}

else {

 

include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING);

}

 

?>

 

 

So, I am not a programmer, is somebody have any ideal how to completed the if statement. thank you

(sorry about my english)

ken

Archived

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

×
×
  • Create New...