Ajax popup image |
Post Reply | Page 12> |
Author | |
intour
Senior Member Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 16-December-2008 at 4:23pm |
Hi Folks,
Anyone know where to change the ajax popup product image size?
Many thanks
Nigel
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Search for pSmimageURL in pc/xml_getPrdInfo.asp. that's where it is displayed. Work back from there to the query that grabs the product record.
|
|
intour
Senior Member Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Many thanks Greg,
Thats a great help.
Nigel
|
|
intour
Senior Member Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Argghhh - the customer has made all the thumbnail images and general images 360 pixels wide so they won't fit in the box.
I've modified the png image sizes of the popup box to accomodate them but it's still showing the old size.
I'm guessing the box size is specified somewhere else - any ideas?
Thanks again
Nigel
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
ya, but now you are getting into a slightly larger effort.
Have a look at ei-tooltip.js and ei-tooltip.css.
|
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
Also - here is a WIKI article on the AJAX feature that might help:
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
That article is fairly brief. Nigel, if you alter the physical dimensions of the graphics that form the preview pane, you have to alter the "document.write('<IMG class="dpointer"" references at the top of ei-tooltip.js, as well as the CSS classes in order to get everything to play nice.
|
|
intour
Senior Member Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hmmm - I'm missing something.
I altered the widths in the ei-tooltip.css file - seemed straightforward
The ei-tooltip.js was a bit more difficult but I found all the images and size code and changed them all to the new ones.
I uploaded the files but the Ajax popup still comes out the same as it was.
It's nearly 10.30pm here in the Uk so i think I'll go get some sleep. These things always seem to be more obvious in the morning - I'm sure I've overlooked somehting in the code.
Many thanks for your help Greg - I'll let you know how I get on later tomorrow.
Nigel
|
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Hi Nigel, make sure that you clear your browsers cache and close and re-open your browser. AJAX routines are notorius for being cached so you may have done everything correctly but still see the original size because of that. Believe me, I know that from experience.
|
|
intour
Senior Member Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hi again,
I couldn't resist having another go after reading your replies - thanks everyone. I'm sure you've all been going to bed at some stage and ended spending a few more hours !
Netprofits - I did clear the cache thanks - been caught with that one too many times before.
I think Greg may have it in his reply about the "document.write('<IMG class="dpointer"" references.
What I don't quite follow is the relationship between these sizes and the popup image sizes.
My popup images (topcap.png etc) have all gone from 285px wide to 402px wide.
I've made the changes to the files but the "document.write('<IMG class="dpointer"" references all show a Width of 55px and a height of 101px - what should these be changed to? They refer to mages such as upleftcombo.png and pngfix.png
Thanks again
Nigel
|
|
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |