X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Detailed Image(s) Popup 2.1 [3.4.x-4.0.x] (https://forum.x-cart.com/showthread.php?t=8460)

EnriqueHavoc 10-21-2004 10:36 AM

Awesome mod Boomer!

btw, i found a small bug-

When a detailed image is disabled in the admin control panel (product---> detailed images---> availability), it still shows up in the detailed images popup.

B00MER 10-22-2004 09:10 AM

Oops all the query needs added to it is WHERE avail='Y' or such, can't really stop and take a look. I'll try and update it once I get a chance. Thanks for pointing the bug out though, it seems I forget about that with some other mods in the past too.

Thanks. :wink:

toby5482 10-27-2004 04:35 AM

Great mod. I've managed to get it working fine, but does anyone know how to turn off the transition effects between detailed images?

greenpac 10-27-2004 07:30 AM

I'm getting an error when I click the view details link where my pictures should be...

Parse error: parse error, unexpected T_STRING in /home/bercbl2/public_html/store/product_detailed_images.php on line 20


line 20 from the php file is:

foreach($v as $kk=>$vv) {

hobbyhandig 11-03-2004 07:14 AM

Hi,

Again, I'm not able to get thinks working :? . I've walked trought each step exactly, I get no error masages, but it just doesn't work. Can someone take a look, please :D

http://hobbyhandig.webfontein.nl/product.php?productid=16193&cat=0&page=1

hobbyhandig 11-12-2004 12:14 AM

OK, I've got the 'View details' displaying, but it doesn't link to anything.

I saw code was using product id, but I'm not working with id's I use my own product codes. Can someone take a look at what I'm doing wrong?

B00MER 11-12-2004 08:49 AM

Around the javascript function call in product.tpl you'll need to add " " around the values as your using letters and numbers not just an integer (number). You may also need to adjust the SQL query in the php file in order for it to pull up properly based off the SKU.

hobbyhandig 11-15-2004 03:20 AM

:?: :oops:
I'm sorry, but I didn't get that. Here's the code involving detailed images in my product.tpl.

Code:

{*** Detailed Image Popup mod by www.cart-lab.com ***}
{include file="detailed_popup_js.tpl"}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}<A HREF="javascript: productimagedetail({$product.productcode});">{/strip}{/if}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}

<CENTER>[img]{$ImagesDir}/preview.gif[/img]View Details</CENTER></A>{/strip}{/if}
{*** Detailed Image Popup mod by www.cart-lab.com ***}


And I have no idea what you mean by:

Quote:

You may also need to adjust the SQL query in the php file in order for it to pull up properly based off the SKU.


I'm really sorry, but I'm no programmer.

B00MER 11-15-2004 05:45 AM

The basic jest: replace all productid or $productid with productcode or $productcode, and within the javascript call on the thumbnails use this instead:
Code:

{*** Detailed Image Popup mod by www.cart-lab.com ***}
{include file="detailed_popup_js.tpl"}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}<A HREF="javascript: productimagedetail('{$product.productcode}');">{/strip}{/if}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Detailed_Product_Images ne "" && $images}{strip}

<CENTER>[img]{$ImagesDir}/preview.gif[/img]View Details</CENTER></A>{/strip}{/if}
{*** Detailed Image Popup mod by www.cart-lab.com ***}


If you can't get this to work I can offer my services to do such customizations for you.

hobbyhandig 11-15-2004 06:59 AM

Quote:

If you can't get this to work I can offer my services to do such customizations for you.

How much? I would like the following:

In products_t.tpl I would like the thumbnail to give a Detailed Pop-up, with a link beneath it saying: Click image to enlarge.
Beneath that I want a link to the product itself.
At the product itself I want again the thumbnail to give the Detailed Pop-up.

I don't think I have more than one detailed image per product.

Can you give me an additional price if Detailed Pop-up can contain text (i.e. "this is the upper right corner of the product" or "size 12 x 13").

Hope you can help me with this.

Thanks,

Hobbyhandig[/quote]


All times are GMT -8. The time now is 08:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.