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
  #41  
Old 11-29-2006, 09:29 AM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

smacks head....Added the code to search and it worked..Sorry about the run around on that.

Quote:
Originally Posted by mrkenzie
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.
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #42  
Old 12-11-2006, 08:21 AM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

I am trying to add the image to related_products.tpl file and used the provided code for the image with no luck. Here is the code I used for 4.1.3 and no image comes up. Is there something wrong with the code for my version or did I miss adding something?

Code:
{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$recommends[num].image_x image_y=$recommends[num].image_y product=$recommends[num].product tmbn_url=$recommends[num].tmbn_url id="product_thumbnail" tmbn_path_p=$recommends[num].p_image_path tmbn_link="false" tmbn_width="100"}
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #43  
Old 12-11-2006, 08:30 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

Are you using version 4.1.3 or an older version?
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #44  
Old 12-11-2006, 09:08 AM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

Im using 4.1.3
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #45  
Old 12-11-2006, 10:26 AM
 
prodij prodij is offline
 

Member
  
Join Date: Mar 2006
Location: Los Angeles
Posts: 23
 

Default Re: create thumbs from large image

did anyone have speed issues with this mod? I've implemented it, and it made the page load 2+ secs slower.. is there a mod that actually just pre-generates the thumbnail file.. rather than creating it on the fly every time a visitor visits the site?
__________________
X-Cart Pro Version 4.4.1
Reply With Quote
  #46  
Old 12-18-2006, 01:08 PM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

I still dont have the image coming up for related products. HELP.
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #47  
Old 12-19-2006, 06:42 AM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default Re: create thumbs from large image

Do you have a link to take a look at?
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #48  
Old 12-20-2006, 10:19 AM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

Don't know waht happened but I edited something on the product template and the image showed up but it is the wrong one!

http://www.chairsbydesign.com/shop/cdseo-prod/ristoria-w-side-chair.html

Quote:
Originally Posted by mrkenzie
Do you have a link to take a look at?
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
Reply With Quote
  #49  
Old 12-20-2006, 07:07 PM
 
prodij prodij is offline
 

Member
  
Join Date: Mar 2006
Location: Los Angeles
Posts: 23
 

Default Re: create thumbs from large image

Can you make this script generate the actual thumbnail file and make an entry in the database to the thumbnail image?
__________________
X-Cart Pro Version 4.4.1
Reply With Quote
  #50  
Old 12-21-2006, 04:09 PM
 
SMDStudios SMDStudios is offline
 

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

Default Re: create thumbs from large image

any word on my issue?

I used the following code on 4.1.3

{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$recommends[num].image_x image_y=$recommends[num].image_y product=$recommends[num].product tmbn_url=$recommends[num].tmbn_url id="product_thumbnail" tmbn_path_p=$recommends[num].p_image_path tmbn_link="false" tmbn_width="100"}
__________________
X-Cart Gold various versions
Tahoe Web Design

WebsiteCM.com - We recommend WebsiteCM
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 08:46 AM.

   

 
X-Cart forums © 2001-2020