Print Page | Close Window

BTO display multiple product images

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1009
Printed Date: 19-July-2025 at 10:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BTO display multiple product images
Posted By: M Robles
Subject: BTO display multiple product images
Date 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



Replies:
Posted By: intour
Date Posted: 02-August-2007 at 3:34pm

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

 



Posted By: M Robles
Date Posted: 03-August-2007 at 10:25am
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.


Posted By: intour
Date Posted: 03-August-2007 at 12:28pm

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



Posted By: Brett
Date Posted: 05-May-2010 at 10:01pm
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...


Posted By: ProductCart
Date Posted: 06-May-2010 at 1:17am
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.

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Brett
Date Posted: 06-May-2010 at 7:29pm
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.


Posted By: Guests
Date Posted: 06-May-2010 at 9:21pm
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.


Posted By: Brett
Date Posted: 01-June-2010 at 1:27am
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.


Posted By: Brett
Date Posted: 02-June-2010 at 2:46pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net