Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 Ajax Menu Category - Cache Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbutt
VP-CART New User

USA
56 Posts

Posted - May 02 2015 :  03:52:04  Show Profile  Reply with Quote
Good morning,

I downloaded 8.00.6 and was working with the Sidebar Categories. Needless to say I was frustrated because it wouldn''t reflect any changes I made by adding or deleting categories. After a while I found that it now uses AJAX to load the categories ONCE. I then tried to CLEAR my cache and it worked but I had to do that every time I made a change.

Is there any other solution during development to have these reloaded other than having to CLEAR MY CACHE every time?

I''m going to ask what may be a silly question ... If I make changes on the site categories, do my clients have to do the same to see the changes? (I''m new to AJAX).

Thanks,

John

jbutt
VP-CART New User

USA
56 Posts

Posted - May 03 2015 :  04:59:37  Show Profile  Reply with Quote
Update:

In addition, when using multiple stores the Category Menu on the Left is duplicated on both sites even though I have applied a different MATCH PRODUCT for each category relating to the site. Whichever site is first loaded is the Category Menu that is shown for both sites.

John
Go to Top of Page

support
Administrator

4679 Posts

Posted - May 04 2015 :  01:35:27  Show Profile  Visit support's Homepage  Reply with Quote
Hi John,

We have changed how we handle categories to help improve the speed of a site.

Seems may need a tweak.

Thanks for posting and I have updated our tech team.

Thank you.

Cam Flanigan
VPCart Customer Care Team
www.vpcart.com
Go to Top of Page

motonet
VP-CART New User

Spain
79 Posts

Posted - May 04 2015 :  04:07:35  Show Profile  Reply with Quote
Hi John,

I have applied all of the 8.00.6 upgrade execpt for the categories updated with AJAX. Since you posted I´have been very careful about it, and tested in test site, finding that as you said, there is some issue.

Thanks a lot to share.
Posts are important part of developing, I read all of them but not have time to comment all of them, but there are many that are really very useful

Saludos
Diego
Go to Top of Page

jbutt
VP-CART New User

USA
56 Posts

Posted - May 04 2015 :  07:18:12  Show Profile  Reply with Quote
Hi everyone,

I worked around the multi store issue by renaming the following variables in all files on the second site from

loadlayout_categories_once
loadlayout_categories_desktop
loadlayout_categories_normal
loadlayout_categories_mobile

to

loadlayout_categories_once_2
loadlayout_categories_desktop_2
loadlayout_categories_normal_2
loadlayout_categories_mobile_2

It might not be the cleanest solution for someone trying to automate the process with VPCART 8, but it will work in a pinch.

Regards,

John


Go to Top of Page

support
Administrator

4679 Posts

Posted - May 04 2015 :  21:53:39  Show Profile  Visit support's Homepage  Reply with Quote
Hi John,

If you want to post a ticket in the bug tracker we can test a fix for this on your site.

https://helpdesk.vpasp.com

Thanks

Cam Flanigan
VPCart Support
Go to Top of Page

support
Administrator

4679 Posts

Posted - May 04 2015 :  22:00:40  Show Profile  Visit support's Homepage  Reply with Quote
Hi John,

Or if you like you can try the following posted to me by one of our techs.

1. open shop$db.asp

2. locate routine sub ShopOpenDatabase (connection)

3. below sub ShopOpenDatabase (connection), insert below line:

session("site_xShopId") = xShopId

4. save shop$db.asp

5. open shoplayoutmgr_v8_subs.asp

6. locate routine sub loadlayout_categories_once

7. below sub loadlayout_categories_once, insert these lines:

if session("site_xShopId") <> xshopid then
session("loadlayout_categories_once") = ""
end if

8. save shoplayoutmgr_v8_subs.asp

Let me know if it does not work.

Thanks

Cam Flanigan
VPCart Support
Go to Top of Page

jbutt
VP-CART New User

USA
56 Posts

Posted - May 06 2015 :  06:18:37  Show Profile  Reply with Quote
Hi Cam,

It worked perfectly ... AND much easier than my work around.

Thank your team for me.

John
Go to Top of Page

support
Administrator

4679 Posts

Posted - May 06 2015 :  07:31:58  Show Profile  Visit support's Homepage  Reply with Quote
Good to hear!

Thanks

Cam Flanigan
VPCart Support
Go to Top of Page

jbutt
VP-CART New User

USA
56 Posts

Posted - May 08 2015 :  14:18:10  Show Profile  Reply with Quote
Hi Cam,

Maybe I spoke too soon. It looks like I had a cache resfresh issue but now that everything is clean, the code you suggested does not work.

If I insert
3. below sub ShopOpenDatabase (connection), insert below line:

session("site_xShopId") = xShopId

then everytime either site is refreshed, the session variable AND xShopId will ALWAYS be the same which means

7. below sub loadlayout_categories_once, insert these lines:

if session("site_xShopId") <> xshopid then
session("loadlayout_categories_once") = ""
end if

will never run.

I removed the shop$db insertion you suggested and modified the Shoplayoutmgr_v8_subs.aps with

7. below sub loadlayout_categories_once, insert these lines:

if session("site_xShopId") <> xshopid then
session("loadlayout_categories_once") = ""
session("site_xShopId") = xshopid
end if

This works so far.

Regards,

John

Edited by - jbutt on May 08 2015 14:19:20
Go to Top of Page

support
Administrator

4679 Posts

Posted - May 09 2015 :  01:03:01  Show Profile  Visit support's Homepage  Reply with Quote
Hi John,

I have tried your suggested fix and seems to work in my multi sites for categories.

I have forwarded your steps to our lead developer to review.

Thanks
Wilson Keneshiro
VPCart Support
Go to Top of Page

jbutt
VP-CART New User

USA
56 Posts

Posted - May 31 2015 :  17:43:24  Show Profile  Reply with Quote
Hi Support and Cam,

Well, it all worked fine but after one of the recent updates it stopped working. I narrowed it down to the new AJAX system. Although it works much faster using AJAX, it stopped checking the xshopId status.

In the gensidecategories_fromsession (passstring) subroutine, you have commented out

''800 - 2015.04.30 - Enhancement: Loading side/mobile categories in Ajax to improve first load speed
''loadlayout_categories_once

Now the site only runs the loadlayout_categories_once subroutine the first load and not again. I''m no expert so please have your jedi coders look at this.

Thanks,
John

Go to Top of Page

support
Administrator

4679 Posts

Posted - June 17 2015 :  03:41:58  Show Profile  Visit support's Homepage  Reply with Quote
Hi John,

I have forwarded this to our developer to review.

Thanks
Wilson
VPCART SUPPORT
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00