-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes variant switching in preview mode #120
Conversation
Crease29
commented
Mar 10, 2018
- Removes unnecessary div in form
- Adds preview parameter as hidden input because switching variants in preview mode is broken
Hi @Crease29, Could you please link the related bug, or write more information to reproduce the Issue? It looks working fine. |
tpl/page/details/inc/productmain.tpl
Outdated
<input type="hidden" name="cnid" value="[{$oView->getCategoryId()}]"> | ||
<input type="hidden" name="anid" value="[{if !$oDetailsProduct->oxarticles__oxparentid->value}][{$oDetailsProduct->oxarticles__oxid->value}][{else}][{$oDetailsProduct->oxarticles__oxparentid->value}][{/if}]"> | ||
<input type="hidden" name="actcontrol" value="[{$oViewConf->getTopActiveClassName()}]"> | ||
[{if $oConf->getRequestParameter('preview')}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no $oConf available here :/
Thank you for your review @Sieg . Steps to reproduce:
|
Hm, yes, I have tried it, works well for me on EE. Will check CE again, anything you can share from EXCEPTION log? Anything custom in shop? |
No modules, nothing in the EXCEPTION_LOG. The error for me was, that it just says that the article can't be found, which is obvious because the |
Here you can see it in the demo shop: https://www.youtube.com/watch?v=x__B_phDuag |
Thanks! That "active" checkbox was the question :) Have merged your PR recently. Have a nice day! |