Active
Project:
Microcart Block
Version:
6.x-1.2-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2011 at 19:21 UTC
Updated:
22 Sep 2011 at 11:35 UTC
Hi,
I love this module, thanks for building!
It is working great on node pages. But somehow on views pages it is showing NULL items in cart..?
So when I select an item, and go to another nodepage, fine, It shows 1 item in cart,
When I go back to a views page, the block is empty again! again node page 1 item in cart.
I can show you my site if you want it?
Thanks for going into this! greetings, Martijn
Comments
Comment #1
summit commentedAlso on custom panels/ctools pages, empty shopping cart block is shown!
greetings, Martijn
Comment #2
summit commentedHi,
Using the code from here: http://drupal.org/node/876620#comment-3306396 I got the microcart working for views and panels pages, only on the homepage it is not working.
Is something different from the homepage?
My added code is:
Thanks for looking in homepage issue still, and may be this code, or similar for the case, can be added?
greetings, Martijn
Comment #3
summit commentedHi,
I got it working with above code..but...it is not working correctly with caching.
My homepage then shows not the right amount of items in the cart.
It shows 1 if there are 2 in, it shows 0 if there is 1 in....
Without caching with above code it is working!
greetings,
Martijn
Comment #4
summit commentedChanging title. Greetings, Martijn
Comment #5
summit commentedHi looking further, may be a same sort as http://drupal.org/node/463602#comment-1970992 can help?
and in themes template.php something like:
How do I alter this code to work with uc_microcart?
greetings, Martijn
Comment #6
dicreat commentedsubscribe
Comment #7
rich.yumul commentedto get around the caching issue, yes, I believe an AJAX based solution would probably be best.
We'll have to include it in the next revision, unless somebody submits a patch... :)
Comment #8
summit commentedHi, A AJAX based solution is welcomed very much!
Thanks in advance for building it in the next revision if no patch pops up..
( I am not a AJAX programmer, sorry).
greetings, Martijn
Comment #9
rich.yumul commentedYou might try the patch here, http://drupal.org/node/1228580#comment-4916974
Would that possibly help?
Comment #10
summit commentedHi, I abondened project, so am not able to test anymore. May be other can test for you.
Thanks for your assistance and reply.
greetings, Martijn