Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dynamic box columns?


sackling

Recommended Posts

Hello,

 

I am looking for a contribution (if it exists) that would allow you to select which boxes should be shown on which pages. For instance I don't want to show the entire categories box on the product info page.

 

Is there anything like that that exists?

Link to comment
Share on other sites

  • 3 months later...

hi @@foxp2

Great contribution. i just have a little problem.

in some pages, some boxes doesn't appear, quite rare...

for example, in index.php everything works fine, but in product_info.php, some boxes appear and others don't. (bm_best_sellers.php doesn't appear, but bm_curencies.php does it)

i've been compared all the files but don't find any difference

have you got a clue ??

Link to comment
Share on other sites

Some boxes have restrictions about wen to execute and when not within their own code.

 

For example the bestsellers box has this

  if (!isset($HTTP_GET_VARS['products_id'])) {

 

This mean in plain english

 

"if there is no products_id present in the url ...."

Link to comment
Share on other sites

There is nothing to "fix" since nothing is broken. The box work as intented

 

You can however remove the condition (comment it by adding // in front) and the box will execute on product info

 

Dont forget to comment the closing bracket } too, not any closing bracket but the one that correspond to the opening

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...