![]() |
BTO display multiple product images |
Post Reply ![]() |
Author | |
M Robles ![]() Groupie ![]() Joined: 13-July-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 02-August-2007 at 10:46am |
Does anyone know how to display multiple product images in the BTO configuration page?
I looked at viewPrd.asp and compared it to configurePrdCode.asp and it looks like completely different code where the product images come into play.
For now I will just use HTML in the description to illustrate the images, but hopefully some of you have allready figured it out.
Thanks.
Micah
|
|
![]() |
|
intour ![]() Senior Member ![]() Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi Micah, You don't display the images as such in the BTO configuration page. You display the BTO items for which you can create and upload images in the same way as a BTO product. Then you have the option to display these images for each of the configurable item categories by checking the 'show item image' box. I hope this is what you are after. Nigel
|
|
![]() |
|
M Robles ![]() Groupie ![]() Joined: 13-July-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I sell motocross kits with each component configurable. I would like to display in the configuration page multiple product images, a before and after. I already have images embeded in the BTO products, but they are specific to the area of configuration and not the global product.
|
|
![]() |
|
intour ![]() Senior Member ![]() Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I would suggest the best way to do this would be in the product description area using the HTML editor. You can upload and display as many images as you like there wihtout the need for any custom coding. Nigel |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
Don't you hate when you get a completely worthless response like this, M Robles? I'll let you know when I figure out how to port the code from viewPrd to configurePrd... Silly that this still hasn't been made standard within three years ;(
*edit* Ironically, only the short description shows on the configuration page, so adding images to the long description html area wouldn't work either... Edited by Brett - 05-May-2010 at 10:04pm |
|
![]() |
|
ProductCart ![]() Admin Group ![]() ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
Hi Brett,
the idea has always been that the BTO configuration page is focused on the configuration aspect of the purchasing process. It's a page that already tends to be rather long vertically, and having a long product description just did not seem to be the right thing to do, under an interface point of view. The product details page (viewPrd.asp) - instead - is the page designed to contain all of that information, and then link to the configuration page. So, at least for now, the solution is simply not to skip the product details page. As you know, that is a setting that you can turn on and off at the product level. |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
I agree with you that the configuration page should be limited to configuration. However, for those who are interested in this functionality, here is the solution:
configurePrd.asp --------------------- Add this line near the other Dim statements: Dim pcv_strProdImage_Url, pcv_strProdImage_LargeUrl, pcv_intProdImage_Columns, pcv_strShowImage_LargeUrl, pcv_strShowImage_Url, pcv_strCurrentUrl, pcv_strAdditionalImages, cCounter around line 510 you will see a function call to pcs_ProductImage add a line under that calling the function pcs_AdditionalImages ...youll notice if you look at viewPrd.asp, it is set up the same way. --------------------------- save/close configurePrd.asp configurePrdCode.asp -------------------- delete or rename the function pcs_ProductImage open viewPrd.asp and copy the pcs_ProductImage, pcs_AdditionalImages, pcf_GetAdditionalImages, pcs_MakeAdditionalImage functions paste those where the pcs_ProductImage used to be on configurePrdCode.asp -------------- save and close You should be able to see multiple images just like on the viewprd.asp page. All I did was copy the image code from viewPrd.asp and move it to configurePrd.asp. I ran into an issue at first but it was just that I had not declared those variables so they weren't persisting between functions. Edited by Brett - 06-May-2010 at 7:30pm |
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
Hi Brett,this is very interesting and might likely be worth updating the wiki with. Could you show us an example URL? Always nice to have a visual.
|
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
http://www.liftchair.com/Extra-Wide-Comforter-700-lbs-Super-33-39p199-config.htm
There's an example of the change, along with a few others. Let me know if you'd like copies of the modified files. I've also combined the description and configure pages and applied SEO urls to the config page. Also, ive added a new display type so that the radio selection is showing in a grid instead of a list. *edit* You might notice the table overlaps the border on Google Chrome and certain versions of firefox. My images are a bit too wide... Also, refreshing the page reverts it to the non-seo optimized url. I imagine this has something to do with the 404 redirection. I'm not sure how to fix this. I used ISAPI rewrite to redirect to the configure page. I could probably edit 404.asp to determine whether the product is configurable and if so, forward to the configuration page (which for me is a combination config + details) rather than the product details page (for non BTO products the product details page is the last page before adding to cart). Anyways... adding mutiple product images to the product configuration page is a very simple modification. Edited by Brett - 01-June-2010 at 1:37am |
|
![]() |
|
Brett ![]() Groupie ![]() ![]() Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
![]() ![]() ![]() ![]() ![]() |
Here are the two edited files. Not tested, but copied from a working page.
https://www.earlyimpact.com/forum/uploads/1159/images_on_config.zip You can search through the code for IMGONCFG to see what was changed. I haven't had a chance to test this, but it was copied from my files which are currently working on my site. Parent paths are enabled. Let me know how it works and if you need me to walk you through it. Brett |
|
![]() |
Post Reply ![]() |
|
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 |