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

create thumbs from large image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 11-28-2006, 01:14 PM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: create thumbs from large image

Using 4.1.3 and I have the image saved for product.

does something need to be modified in products_t.tpl?? Looking at the templates it looks like it needs to.???????????

Quote:
Originally Posted by mrkenzie
If you are using 4.0.x, it probably won't work. This was developed on 4.1.x.

If you are using 4.1.x, then make sure you have an image for the product (not thumbnail and not detailed).
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #32  
Old 11-28-2006, 01:55 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

I did not have to modify anything in products_t.tpl for it to work. When you say your category list, do you mean the product listings? Is there a link where I can see this?
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #33  
Old 11-28-2006, 01:59 PM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: create thumbs from large image

Here is the link: http://www.chairsbydesign.com/shop/home.php?cat=1

Quote:
Originally Posted by mrkenzie
I did not have to modify anything in products_t.tpl for it to work. When you say your category list, do you mean the product listings? Is there a link where I can see this?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #34  
Old 11-28-2006, 02:15 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

You are right. I did not notice it because I am not using the multi-column format for my product listings.

So find this line of code:
Code:
<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_page}">{include file="product_thumbnail.tpl" .... }
and add this before the }
Code:
tmbn_path_p=$products[product].p_image_path tmbn_link="false" tmbn_width="100"

That should fix it.

Thanks for pointing that out!

Let me know if it does not work for you.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #35  
Old 11-28-2006, 02:34 PM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: create thumbs from large image

Nope no go. This is what I ended up with..

Code:
<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url tmbn_path_p=$products[product].p_image_path tmbn_link="false" tmbn_width="100"}</a>

Quote:
Originally Posted by mrkenzie
You are right. I did not notice it because I am not using the multi-column format for my product listings.

So find this line of code:
Code:
<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_page}">{include file="product_thumbnail.tpl" .... }
and add this before the }
Code:
tmbn_path_p=$products[product].p_image_path tmbn_link="false" tmbn_width="100"

That should fix it.

Thanks for pointing that out!

Let me know if it does not work for you.
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #36  
Old 11-28-2006, 04:55 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

After </a> put this:
Code:
Path={$products[product].p_image_path}

And see if it ouputs an image path

Also, make sure you clear your templates_c folder and your browser cache.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #37  
Old 11-28-2006, 09:56 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: create thumbs from large image

Quote:
Originally Posted by Terrybraley
This is where I got lost " include\func\func.product.php"

No func inside the include folder

I think the big difference between the 4.0.x versions and the 4.1.x versions of x-cart is that function.php was broken up into sections in the newer version... func.product.php is one of those sections.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #38  
Old 11-29-2006, 06:54 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: create thumbs from large image

Added that and nothing shows up "Path="

Quote:
Originally Posted by mrkenzie
After </a> put this:
Code:
Path={$products[product].p_image_path}

And see if it ouputs an image path

Also, make sure you clear your templates_c folder and your browser cache.
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #39  
Old 11-29-2006, 08:05 AM
 
SMDStudios SMDStudios is offline
 

eXpert
  
Join Date: Dec 2003
Location: Orlando, FL
Posts: 207
 

Default Re: create thumbs from large image

Just wanted to say that I changed the product last back to stanard view and it still doesn't show the thumbnail. I've gone back to review all the steps again and I'm sure I've done all that was needs. Is there anything in the store config that I need to update or change?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #40  
Old 11-29-2006, 09:17 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

Make sure you added the code to include\search.php (step 7). It is not pulling the image path from the database.

If that code is added, then find the following in include/search.php around line 730
Code:
else { $search_query .= " LIMIT $first_page, $objects_per_page"; $products = func_query($search_query); }
and after that put
Code:
echo $search_query;

Then take the output and run it in phpMySqlAdmin or something like it to view the results. See if there is a column named p_image_path and what the value is for it.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 12:15 PM.

   

 
X-Cart forums © 2001-2020