Hello,
I have a view of products with some exposed filters. This is an ajax view.
If I use the exposed filters, my view is refreshed with ajax, all works perfectly.
But if I click on the add to cart button I'm redirected to the page : /views/ajax and I see a blank page with some code :
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"mytheme","theme_token":"GAF0LtNOCLpZRsFjHg5NKFidhQv9qLaBDo_oWJUxrbg"},"colorbox":{"opacity":"0.85","current":"{current} sur {total}","previous":"\u00ab Pr\u00e9c.","next":"Suivant \u00bb","close":"Fermer","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px"}},"merge":true}]
If I disable ajax, the add to cart button works correctly (but my views lose the ajax feature with exposed filters).
How to combine the best of both worlds ?
Thanks
Alex
Comments
Comment #2
subhojit777Comment #3
supriyarajgopal commentedSubscribing.
Facing the exact same issue.
Comment #4
subhojit777I edited the existing "Shopping cart block" provided by commerce order module. I enabled ajax in that view, and added a exposed filter field. The filter field is in line items and it is a term reference. This is how I added the field #2425987-6: Product prices not updating correctly in cart block when using commerce pricing attributes and/or a rule that adds to base price .
In this case I don't see that ajax json, but I see an error
I'll investigate more. I know this is too late to ask.. but if anyone having the same issue can you please add a comment with exact steps how the view was created, what exposed filters are added, so that I can replicate.
Comment #5
subhojit777More observation:
Comment #6
shabana.navas commentedDuplicate of https://www.drupal.org/node/2185239
Comment #7
subhojit777Thank you Shabana for digging up the issue. Even though this issue is not duplicate, but it explains the problem that we are having here. Looks like this problem is in the Views system only, and cannot be fixed here. You either have to use this module, or use the view with ajax enabled.