Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

more detailed images?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2005, 09:10 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default more detailed images?

Hello there.

We have sets of images for each product. They are:
icon.jpg
thumb.jpg
detail.jpg (2 pics each)
closeup.jpg (2 pics each)

In the detail page of the product, we have detailed images activated. That's ok and we like that.

We have "close up" pictures that show the product in detail and would like to have this available to users as an option to click on. We would like to put a link somewhere below the "detail images" box to open the "close up" images. Has anyone done this before? It's basically having a REALLY DETAILED close up view of the product.

I've looked at Boomers mod but it has images show up in a pop-up or other mods that have javascript roll-over. It's not what we need. We just want to have the "close up" images show in the same browser window.

What files should I make changes to?

Help very much appreciated. Please do and thank you in advance.

ainion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #2  
Old 05-17-2005, 07:00 AM
 
davros davros is offline
 

Newbie
  
Join Date: May 2005
Location: Bristol
Posts: 8
 

Default

I'm also trying to work out how to click through to display a larger image for the detailed images so I would be very interested to see if anyone has already done this. It seems like a basic thing that you would expect in a shop.
I'm stuck though - I can set up a new template to display the image larger. But I want to pull that template in when someone clicks on the image. So I thought I would add the image to the string inthe URL and then be able to check somehow for it. However, when I tried to put &image={$images[image].tmbn_url} or something else into the link
<A href="product.php?productid={$products[product].productid}&cat={$cat}&image={$images[image].tmbn_url}"> I get error 33 you are not allowed to edit that resource.

Any help would be greatly appreciated.
__________________
Version 4.0.13

on Redhat Enterprise Linux

<a href=\"http://www.therubyredcompany.co.uk>Ruby Red</a>
Reply With Quote
  #3  
Old 05-18-2005, 12:59 AM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

I'm tinkering with the option in the admin panel "Extra Fields". I might be able to input values and make this available for user to click for the extra large images.

Will keep you posted davros and see how this goes.

ainion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #4  
Old 05-18-2005, 06:54 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

Could not do much. Extra fields does not fit out needs.

I might have to modify the database, then modify some php files and lastly the tpl files. Our needs is that the detail pictures can be clicked-on by user to go to another page or picture that is much larger. Similar to your needs.

ainion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #5  
Old 05-18-2005, 10:36 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

I was able to edit product_images.tpl; the user will be able to click on the detail images for the extra close up.

The real trick is to have the admin panel to receive input for urls of extra detailed images and store them into the database. Something like the input for "Alternative text".

Members ranking in X-Adept and above, can you please help?

artinion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #6  
Old 05-18-2005, 11:01 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

I would try Cart Mods Image mod. It automates what you are trying to do and is one of the better image mods.

Keep it simple.

- Mike
__________________
4.1.9
Reply With Quote
  #7  
Old 05-18-2005, 11:23 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

I pointed the browser to the site. Shop closed for renovation (May 19, 2:09 pm, Bangkok time). Thanks for the tip/URL.

I won't be able to see the price for the meantime. Don't know if CarMods gives discounts for forum members.

For the meantime, I'll try to work on it and see.

Thanks mffowler.

ainion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #8  
Old 05-19-2005, 01:27 AM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

So good so far.

Added the field in the database table xcart_images.
Changed modules/Detail_Product_images/product_images_modify.php.
Changed Detail_Product_Images/product_images_modify.tpl
It saves input text but it doesn't retrieve what is recorded. There is a routine passing values to the text boxes but I could find which ones.

I will appreciate any help or tips at this point.

ainion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
  #9  
Old 05-24-2005, 07:48 AM
 
davros davros is offline
 

Newbie
  
Join Date: May 2005
Location: Bristol
Posts: 8
 

Default

How about you simply upload additional files with corresponding names to the same folder, so detailed image is img1.jpg and additional file is img1_lg.jpg
Then you can call on this file from /modules/Detailed_Product_Images/product_images.tpl using

[img]{$images[image].tmbn_url}_lg[/img]

Does that help? I'm doing something like that and using an image swap so clicking on the small image loads the large image into the page.
Reply With Quote
  #10  
Old 05-24-2005, 08:04 PM
 
artinion artinion is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Bangkok, Thailand
Posts: 37
 

Default

Quote:
Originally Posted by davros
How about you simply upload additional files with corresponding names to the same folder, so detailed image is img1.jpg and additional file is img1_lg.jpg
Then you can call on this file from /modules/Detailed_Product_Images/product_images.tpl using

[img]{$images[image].tmbn_url}_lg[/img]

Does that help? I'm doing something like that and using an image swap so clicking on the small image loads the large image into the page.

That could be done. How does the Smarty script know which image to retrieve? You will need a way to keep track which extra large image is for which product.

Anyway, I found the fix. This works for x-cart 4.0.12. The environment is Linux, MySQL, PHP vesion 4.

Oh and please update your signature so we know what version of x-cart you are using and on what evironment (Windows/Linux, MySQL, PHP, etc). The better to help. Your signature can be updated by going to your "forum profile".

If you need the fix, I can give it to you. Just "Private Message" (PM) me.

artinion
__________________
X-Cart v. 4.0.12 Gold
Linux, Apache, MySQL, PHP 4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:26 PM.

   

 
X-Cart forums © 2001-2020