ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Moving home page to root, retaining AJAX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moving home page to root, retaining AJAX

 Post Reply Post Reply
Author
Message
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Topic: Moving home page to root, retaining AJAX
    Posted: 21-April-2008 at 5:09pm

The earlier implementation of the modification that results in moving home.asp to the root of your web site had a limitation in that it did not support the AJAX product preview.  This limitation no longer exists.

The entire process is documented here:
http://wiki.earlyimpact.com/how_to/move_home_page_retain_aja x

The short version of what changed is as follows:

·         If it does not already exist, create a folder in the root called images.

·         Copy from the “/productcart/pc/”images folder all of the .png files related to the AJAX popup and place them in the images folder in the root of your web site:

o   topcap.png

o   titlemiddle.png

o   contentmiddle.png

o   bottomcap.png

o   pngfix.png

o   up-right-combo.png

o   up-left-combo.png

o   lower-right-combo.png

o   lower-left-combo.png

·         Copy the following files from the “/productcart/pc” folder to the root of your web site:

o   inc_PrdCatTip.asp

o   xml_getPrdInfo.asp

·         Edit inc_PrdCatTip.asp

o   change the tag that points to ei-tooltip.css so that it points to “productcart/store/pc/ei-tooltip.css”

o   change the tag that points to ei-tooltip.js so that it points to “productcart/store/pc/ ei-tooltip.js”

o   change the tag that points to XHConn.js so that it points to “productcart/store/pc/XHConn.js”

o   locate
myConn.connect("xml_srcListPrds.asp", "POST", GetAllValues(document.ajaxSearch), fnWhenDone);
Change the statement as follows:
myConn.connect("productcart/pc/xml_srcListPrds.asp", "POST", GetAllValues(document.ajaxSearch), fnWhenDone);

·         Edit xml_getPrdInfo.asp

o   Around line 64 there are 11 “include” tags and 2 more further down the code. 
Change all of these to point to your “productcart/includes” or “productcart/pc” folders, respectively.

o   Locate:
tmpList=tmpList & "<img src=""catalog/" & pSmimageURL & """ >" & vbcrlf

o   Edit the above statement as follows:
tmpList=tmpList & "<img src=""/productcart /pc/catalog/" & pSmimageURL & """ >" & vbcrlf


I implemented this on two sites this morning and believe I have covered all of the necessary changes.  If you locate any oversights, please post them so that others can benefit and I'll update the WIKI.

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.063 seconds.