HEader Images for Each Category |
Post Reply | Page 12> |
Author | |
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Posted: 14-March-2013 at 11:18pm |
While researching another question, I just found this post. I'd never had a chance to verify Brett's response, but upon review in a development store, I have confirmed this to be accurate. Brett got this right - and I didn't realize the solution was that simple.
|
|
Brett
Groupie Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
|
On the configuration page in the admin section of your site, each config group should have a "configuration instructions" text box. You can put an image in there. Just put the HTML code for the image into that text box and the image should show up. At least it does on mine, maybe it's something I had customized before.
*edit* This should require no modification of any files. Just put the HTML tag for the image into the configuration instructions area for each config category. So for example on the configure product page, under the GPU Computing config group where it says:
Just paste in an image tag like <img src="..." alt="..." > *another edit* Whoops, looks like M Robles had already solved this problem a few posts up. And if you wanted to custom position these images, for example to the left, you could just add a class or id to them and then position them within your CSS. Edited by Brett - 05-February-2013 at 4:55pm |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
The approach I'd likely take is to alter the category admin to support an image reference, or perhaps the configurator portion of BTO Product Admin (allowing more granular control at the product level), then alter configurePrd.asp to display the respective images. If that's what you would like to do, perhaps you know how to code and can take that concept and run with it. Or e-mail me directly if you would like to discuss having us assist you.
|
|
Dreamsight
Newbie Joined: 10-January-2013 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hi Dinger, sry not been to back to this, we have had other issues but all resolved now so again looking to add icons to a BTO product configure page for each category of items ....... http://shop.workstationspecialist.com/ProductCart/pc/configurePrd.asp?idproduct=22 So what we would like is to have an icon/image of a processor to the left of the title Processor / an icon/image of memory to the left of the title Memory / an icon/image of a gfx card to the left of the title Graphics etc. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Hello Dreamsight - would you be able to post a link please, and describe what you wish to do?
|
|
Dreamsight
Newbie Joined: 10-January-2013 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Hi, we're on 4.6BSP1 and want the same thing. How do we do it?
|
|
Brett
Groupie Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
|
wow your site looks really cool. I wish I had that type of design chops. concerning your question, I saw the headers above those categories. how did you achieve them? hardcoded is a bit general. regardless, I don't think they would interfere with the code I posted.
all it does is take the image present in the category already and display it on the configuration page. so you'd just have to edit each cat via admin and add the images. if you post your configurePrdCode.asp I'll look at it if I have some free time. currently in the process of updating mine to 4.1 so that file is fresh on my mind. |
|
M Robles
Groupie Joined: 13-July-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I took a look at the origninal posting link and although Brett's answer is more dynamic, the Dinopc.com is using standard HTML code embeded in the BTO Configuration Instructions field for the first three categories.
You will notice that there are only images in the first few categories, while the rest are blank.
|
|
Bruno
Newbie Joined: 07-May-2010 Location: Canada Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Your the best BRett, works great! Thanks a lot!!!
|
|
Brett
Groupie Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
|
Bruno, I figured out the solution. Search for this line:
configSpec_products.Notes FROM categories ...there should be two of them. one for the reconfigure table, and one for the configure table. Edit them to look like this: configSpec_products.Notes, categories.image FROM categories ...so you're adding one more variable to the database query. Then, search for: <%=pcv_tmpArr(1,pcv_tmpN)%> (there should be three of these) ...and... <%=CATDesc%> (there should be one of these) and add this code below the <tr>'s which contain those lines. There should be four total instances of the code: <%if pcv_tmpArr(31,pcv_tmpN)<>"no_image.gif" then%> <tr <%=strCol%>> <td colspan="4"> <img src="catalog/<%=pcv_tmpArr(31,pcv_tmpN)%>" /> </td> </tr> <%end if%> Tested it and it works on my store, but my configurePrdCode.asp is heavily modified. Here's an original v4 configurePrdCode.asp that contains the necessary modifications: configurePrdCode-catimg.zip Drop it in and let me know if it works. I haven't tested it. If your file is modified, the instructions should help you include this feature in your modified configurePrdCode.asp file. Edited by Brett - 03-June-2010 at 4:13am |
|
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 |