Required update to Google sitemap / Google product feed after downloading new SEO structure

Required update to Google sitemap / Google product feed after downloading new SEO structure

After applying the new SEO structure (released 26/10/2012), Google sitemap and Google product feed will generate the wrong SEO dynamic link.

To fix this issue, please make the following changes:

1. Open admin\shopa_generateseodynamicsubs.asp.

2a. Locate below line: (estimate line 37, within routines sub genseoproductlink (passlink,passid,passname,withlink))

2b. Change from:

passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/"& categoryid &"-"& categoryname &"/"& left(passid &"-"& productname,directorylength) &"/"">" & tempdisname & "</a>"

2c. Change to:

passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/"& replacehtmlvalue(left(passid &"-"& productname,directorylength)) &"/"">" & tempdisname & "</a>"

3a. Locate below line: (estimate line 39, within routines sub genseoproductlink (passlink,passid,passname,withlink))

3b. Change from:

passlink = ""& getconfig("xSEODynamicCatProductDirectory") &"/"& categoryid &"-"& categoryname &"/"& left(passid &"-"& productname,directorylength) &"/"

3c. Change to:

passlink = ""& getconfig("xSEODynamicCatProductDirectory") &"/"& replacehtmlvalue(left(passid &"-"& productname,directorylength)) &"/"

4a. Locate below line: (estimate line 120, within routines sub genseocategoryproductlink (passlink,passid,passcatdescription,passdisname,hasSubcategory,withlink))

4b. Change from:

passlink = "passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/"& left(passid &"-"& passcatdescription,directorylength) &"/"& savesessionchar &"" & addwebsesslink & """>" & tempdisname & "</a>"

4c. Change to:

passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/c"& replacehtmlvalue(left(passid &"-"& passcatdescription,directorylength)) &"/"& savesessionchar &"" & addwebsesslink & """>" & tempdisname & "</a>"

5a. Locate below line: (estimate line 122, within routines sub genseocategoryproductlink (passlink,passid,passcatdescription,passdisname,hasSubcategory,withlink))

5b. Change from:

passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/"& left(passid &"-"& passcatdescription,directorylength) &"/"& savesessionchar &"" & addwebsesslink & """>" & tempdisname & "...</a>"

5c. Change to:

passlink = "<a href="""& getconfig("xSEODynamicCatProductDirectory") &"/c"& replacehtmlvalue(left(passid &"-"& passcatdescription,directorylength)) &"/"& savesessionchar &"" & addwebsesslink & """>" & tempdisname & "...</a>"

6a. Locate below line: (estimate line 125, within routines sub genseocategoryproductlink (passlink,passid,passcatdescription,passdisname,hasSubcategory,withlink))

6b. Change from:

passlink = ""& getconfig("xSEODynamicCatProductDirectory") &"/"& left(passid &"-"& passcatdescription,directorylength) &"/"

6c. Change to:

passlink = ""& getconfig("xSEODynamicCatProductDirectory") &"/c"& replacehtmlvalue(left(passid &"-"& passcatdescription,directorylength)) &"/"

7a. Locate below line: (estimate line 139, within routines sub genseoblogslink (passlink,passmessagetype,passname,withlink,classstr))

7b. Change from:

passlink = "<a "& classstr &" href="""& getconfig("xSEODynamicCatBlogDirectory") &"/"& left(passmessagetype,directorylength) &"/"">" & tempdisname & "</a>"

7c. Change to:

passlink = "<a "& classstr &" href="""& getconfig("xSEODynamicCatBlogDirectory") &"/"& replacehtmlvalue(left(passmessagetype,directorylength)) &"/"">" & tempdisname & "</a>"

8a. Locate below line: (estimate line 141, within routines sub genseoblogslink (passlink,passmessagetype,passname,withlink,classstr))

8b. Change from:

passlink = ""& getconfig("xSEODynamicCatBlogDirectory") &"/"& left(passmessagetype,directorylength) &"/"

8c. Change to:

passlink = ""& getconfig("xSEODynamicCatBlogDirectory") &"/"& replacehtmlvalue(left(passmessagetype,directorylength)) &"/"

9a. Locate below line: (estimate line 155, within routines sub genseonewslink (passlink,passmessagetype,passname,withlink,classstr))

9b. Change from:

passlink = "<a "& classstr &" href="""& getconfig("xSEODynamicCatNewsDirectory") &"/"& left(passmessagetype,directorylength) &"/"">" & tempdisname & "</a>"

9c. Change to:

passlink = "<a "& classstr &" href="""& getconfig("xSEODynamicCatNewsDirectory") &"/"& replacehtmlvalue(left(passmessagetype,directorylength)) &"/"">" & tempdisname & "</a>"

10a. Locate below line: (estimate line 157, within routines sub genseonewslink (passlink,passmessagetype,passname,withlink,classstr))

10b. Change from:

passlink = ""& getconfig("xSEODynamicCatNewsDirectory") &"/"& left(passmessagetype,directorylength) &"/"

10c. Change to:

passlink = ""& getconfig("xSEODynamicCatNewsDirectory") &"/"& replacehtmlvalue(left(passmessagetype,directorylength)) &"/"

11. Save and test.


Times Viewed:
6920
Added By:
Bobby
Date Created:
11/1/2012
Last Updated:
11/2/2012