Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem Of The Century


Aziz

Recommended Posts

Posted

I need to put buttons for categories instead of the ordinary category list..

 

The problem is I have the link to the categrroy, but the dynamic Oscid(session id) is the problem...

 

is their anyway I can reterieve the link from the category list and then apply it to the href in the buttons..

 

Thanks Alo,

--------------------------------

Posted

think this is what you are asking about:

 

right link on the catagory and choose properties - link should be on there.

Your online success is Paramount.

Posted

Hi,

 

You should use the tep_href_link() this will add the session ID when needed and also tep_image_button will use the path and urls from your config. Do not hardcode session ID's as they are unique for each visitor.

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image_button('category1.gif', 'category 1') . '</a>'; ?>

Posted
Hi,

 

You should use the tep_href_link() this will add the session ID when needed and also tep_image_button will use the path and urls from your config. Do not hardcode session ID's as they are unique for each visitor.

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1') . '">' . tep_image_button('category1.gif', 'category 1') . '</a>'; ?>

Man....

 

If everybody was as smart as you..

 

There would be no need for this forum :rolleyes:

 

Thanks Alot man... It worked, no I have to work on the next step... (onmouseover thingis)

 

Salam,

--------------------------------

  • 4 weeks later...
Posted
Thanks,

 

But I didnt make that function.

 

You know what im sayin... B)

Wow.... You might be asking me...

 

Why did it take so long for me to reply... no my mother didnt die... (i just had too many mideters :) )

 

One more question using that function can I use The Onmouseover and OnMouseout actions?

 

Thank You for answering,

Aziz

Free Image Hosting

--------------------------------

Archived

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

×
×
  • Create New...