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

Showing first Detailed image of the first Feature product

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-13-2003, 06:44 AM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default Showing first Detailed image of the first Feature product

Hi,
i like to have in my home page;
First Detailed image of the first Feature product.

is there a simple way to do it?

i already can get all the feature products thumbnails by altering the product_thumbnails.tpl and i put that in the home page.


Thank you very much.
Reply With Quote
  #2  
Old 08-13-2003, 01:09 PM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

please help me please..

this is really urgent.
Reply With Quote
  #3  
Old 08-13-2003, 02:21 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Okie, so this is just from me making a educated guess, im not really trying to do this on an actual running x-cart so its difficult to say if it will work as it should....

First edit customer/home.php and add the following line after:

Code:
require "./featured_products.php";

Code:
if($active_modules["Detailed_Product_Images"]) include "../modules/Detailed_Product_Images/product_images.php";

This way you know the array for $images for detailed images is avail to use... next you'll need to edit skin1/customer/main/products_t.tpl and do something like...

Code:
{if %product.index% eq 0}{if $images ne ""}

on the <a href><img src=> where the image is displayed on the first product.index you'll need to copy the code from the modules/ tpl for displaying the images and nest them in the {if %product.index%} statement.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #4  
Old 08-13-2003, 03:45 PM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

it is a bit complex.

thank you.
Reply With Quote
  #5  
Old 08-13-2003, 03:56 PM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

seems like doesnt work.

Reply With Quote
  #6  
Old 08-13-2003, 04:17 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You could try and do something like:

Code:
if($active_modules["Detailed_Product_Images"]) include "../modules/Detailed_Product_Images/product_images.php?productid=$featured[0]";

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #7  
Old 08-13-2003, 04:29 PM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

still no luck with that..
Reply With Quote
  #8  
Old 08-15-2003, 10:04 AM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

i tried millions of things... still couldnt figure it out... why it doesnt work...
Reply With Quote
  #9  
Old 08-15-2003, 08:15 PM
 
alitan alitan is offline
 

Member
  
Join Date: Aug 2003
Posts: 10
 

Default

please please please help me.
Reply With Quote
  #10  
Old 08-16-2003, 06:24 AM
 
Jim K. Jim K. is offline
 

Advanced Member
  
Join Date: Mar 2003
Location: USA
Posts: 35
 

Default

I don't know a way to use PHP for this, but how about using html in the welcome area to add an image, pricing information, and a link to your product. Look under the languages section for welcome text and enter your html there (without body tags) and you should get exactly what you want. Good luck.


Jim K.
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 09:03 AM.

   

 
X-Cart forums © 2001-2020