Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I can't make out how to try it on that page. But my guess is that you are linking without using the tep_href_link function. This is required if you do not want to lose SID's.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

The code I've addedd to product_info is:

<?php // ################### Ask a question ############## ?>    
   <img src="<?php tep_image ('button_ask_a_question.gif', IMAGE_BUTTON_ASK_A_QUESTION); ?>">
  <a href="ask_a_question.php?products_id=<?php echo $product_info['products_id']; ?>" ONMOUSEOVER="window.status='.<?php echo TEXT_QUESTION; ?> .'; return true">
  <?php echo TEXT_QUESTION; ?> <b><?php echo $product_info['products_name']; ?></b></a>
<?php // ################ end added ask a question ############ ?>

Thank you

Skype: centoasa

Skype: remigioruberto

Posted

Yep, you are not using the tep function for the link so you are losing the SID. Try something like this for the link (I'll leave adding the mouse over to you)

            <?php echo '<a href="' . tep_href_link('ask_a_question.php?products_id=<?php echo $product_info['products_id']', '', 'NONSSL') . '">' .  '<img border="0" src="button_ask_a_question.gif" alt="ALT TEXT GOES HERE" width="XX" height="YY"> ' . '</a>'; ?>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...