ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - BTO display multiple product images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BTO display multiple product images

 Post Reply Post Reply
Author
Message
M Robles View Drop Down
Groupie
Groupie


Joined: 13-July-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote M Robles Quote  Post ReplyReply Direct Link To This Post Topic: BTO display multiple product images
    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
Back to Top
intour View Drop Down
Senior Member
Senior Member


Joined: 30-June-2006
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote intour Quote  Post ReplyReply Direct Link To This Post 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

 

Back to Top
M Robles View Drop Down
Groupie
Groupie


Joined: 13-July-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote M Robles Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
intour View Drop Down
Senior Member
Senior Member


Joined: 30-June-2006
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote intour Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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...

Edited by Brett - 05-May-2010 at 10:04pm
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post 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 shopping cart software
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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.

Edited by Brett - 06-May-2010 at 7:30pm
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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.

Edited by Brett - 01-June-2010 at 1:37am
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.