Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th, 2012, 03:33 PM
ripex ripex is offline
 
Join Date: Nov 2011
Posts: 17
Default Bigger product detail images

Hi!

I have a problem with getting bigger product detail images. I have set this in the Custom CSS (changed from 200 pixels except the first value, that one was 210px.

The product image on the product detail page isn't getting bigger. Am I doing something wrong? I have checked the merchandiser images, and there seems to be diffrent sizes if I fool around with the URL they link from.

If you use this link from them, you get a big image that I want:
http://nlyscandinavia.scene7.com/is/...32132-0012.jpg

The problem is that it's linking to, which is smaller:
http://nlyscandinavia.scene7.com/is/...32132-0012.jpg


Code:
#view .sp .rc
{
margin-left: 310px;
padding-left: 10px;
}
#view .sp .lc .thmb { width: 300px; }
#view .sp .lc .thmb img
{
max-width: 300px;
width: expression(this.height < this.width && this.width > 300px ? '300px' :true);
}
Can anonye help me out to get a big nice images on the product detail page?

Website URL: www.kladmode.nu
  #2  
Old January 16th, 2012, 04:41 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

It seems that the merchant is not providing the larger images in their feed.

But you could try a search and replace to get the proper image.

Add the following code to your theme's functions.php file:
PHP Code:
function dfr_replace_image_url($img) {
    return 
str_replace("productOverview1""productOverview2"$img);

Then in your Product Detail view replace this:
Code:
[product.image tag='1']
With this:
HTML Code:
<img src="<?php echo dfr_replace_image_url($product->image); ?>" alt="[product.name]" />
That should do the trick.

Eric
  #3  
Old January 16th, 2012, 04:50 PM
ripex ripex is offline
 
Join Date: Nov 2011
Posts: 17
Default

I just change the custom CSS from standard "200px" to the size I want after the changes I've made in functions.php and the product detail view?

Will this changes affect other merchants product images in a negative way if I show products from them?

Last edited by ripex : January 16th, 2012 at 04:52 PM.
  #4  
Old January 16th, 2012, 04:54 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by ripex View Post
I just change the custom CSS from standard "200px" to the size I want after the changes I've made in functions.php and the product detail view?

Will this changes affect other merchants product images in a negative way if I show products from them?
Yes.
No.

Eric
  #5  
Old January 16th, 2012, 05:00 PM
ripex ripex is offline
 
Join Date: Nov 2011
Posts: 17
Default

It worked great, just had to change in the function from this:


Code:
function dfr_replace_image_url($img) { 
    return str_replace("productOverview1", "productOverview2", $img); 
}

To this:

Code:
function dfr_replace_image_url($img) { 
    return str_replace("productOverview2", "productOverview1", $img); 
}

Now I have a awesome product image that probably will convert better : - )

Thank you for the good support!
  #6  
Old January 16th, 2012, 05:02 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by ripex View Post
It worked great
Great!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
missing product detail page Papada Problems 1 December 21st, 2011 02:57 AM
Product Detail Page webmaster Questions 2 September 3rd, 2011 08:17 PM
Float Images to Right on Product Detail View RyanVega Questions 4 July 12th, 2011 04:14 PM
Product detail template - add border? rexmtn Questions 1 March 5th, 2011 09:11 AM
... make product images bigger in the product list? ayorofrance Questions 10 January 9th, 2011 10:22 PM


All times are GMT -5. The time now is 01:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.