Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge without popup


mozart3000

Recommended Posts

On the products info page I would like to not use a popup window for "Click to Enlarge". I would like the click to enlarge to display in the same area as the product info page with a back button returning back to the product info.

 

I know how to setup the general enlarge page but just need the code for the "click to enlarge" (to send the info to the enlarge page) and the code to display the sent info on the enlarge page

 

Thanks for your help in advance.

 

 

:ph34r: Everybody is somebody else's weirdo

Link to comment
Share on other sites

I have figured out the click to enlarge page without popup and it works great, but I don't know how to make the back button go back to the orginal product info page.

 

<?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'pID=' . $product_info['products_id']) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>

 

I guess it would look something like above. I'm sure their needs to be some cpath info in this link and some short coding to go with the link??

 

When it comes to php, I know just enough to be dangerous :blink:

Link to comment
Share on other sites

WOW! A whole forum topic with me, myself and I.

 

The code below worked for me

 

<?php
   $back = sizeof($navigation->path)-2;
   if (isset($navigation->path[$back])) {
?>
               <td class="main" align="center"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
<?php
   }
?>

Link to comment
Share on other sites

Paul,

 

I'm impressed with how dangerous you are with PHP. I haven't gotten to that point yet - I'm just dangerous period! :huh:

 

Which page did you include your code? In the popup_image.php? If so, where on the page did you put it?

 

Sorry if I sound like a know-nothin' but hey, if it's the case... and it is...

 

JB

Steep learning curve? Hell, I don't even know enough to formulate a stupid question!!

Link to comment
Share on other sites

I need this mod as well. Which file did you insert it into? This is a great mod to work in combine with the preventing right-mouse clicks to save the image (important for the site I`m working on) and any help is appreciated.

You`re not really paranoid if they are really all out to get you.

Link to comment
Share on other sites

I will try to post it tomorrow. Just got home from a long trip. It is pretty easy to implement now that I figured it all out. Change one link and create a simple new page just like all the other pages in osCommerce.

 

Hazardous tanker driver by day, dangerous php coder by night :ph34r:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...