Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple category boxes, session IDs, html...


zerodash

Recommended Posts

Posted

I want to have two category boxes on my store- one for coffees, one for teas.

 

One route I took to do this was placing HTML into the left colomn (which is actually what I prefer). However, every time a link on this colomn is clicked, the shopping cart empties- probably because of the session ID.

 

Here is the code I have for one of the links:

 

<a href="http://www.mydomain.com/store/index.php?cPath=21">

 

I do not know what I have to add here to maintain the session ID. Is there a way to make this link work properly?

 

 

If not, is there another way to include multiple category boxes for different product classes by other means?

 

Thanks!

Posted

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=21') . '">Link</a>'; ?>

 

Matti

Posted

I want to do the same thing but don't know how to start. Any help?

 

How do you do it using HTML?

 

I also want it to depend on the language chosen.

 

Thanks

Posted
How do you do it using HTML?

 

I also want it to depend on the language chosen.

 

Thanks

      <tr>
       <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=21&language=de') . '">Link</a>'; ?></td>
     </tr>

 

The above gives it in German (&language=de)

 

You cannot only use HTML :D

 

Matti

Posted

Thanks Matti

 

Is there a way I can display German books when the German language is selected and English books only when the English language is selecetd?

 

I don't want to translate my site. I want to display different categories depending on the language.

 

Can I put an if statement to display a category if there is text in the the categor?

 

For example, if (name_of_category_exists_in_the_selected_language_box)

{

display the category

}

else(if_there_is_no_text)

{

skip the category and don't display it

}

 

This way if I don't put any information in the language, then there are no products to display.

 

What do you think?

 

Please help

Archived

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

×
×
  • Create New...