Is the view cache enabled? If yes, try with a disabled cache. That's the only way my little contributed operator for extra post/get variables works (albeit this is from the template level, not the module level)
Still need a mechanism without sacrifying speed or even changing the kernel code.
The view cache has been disabled throughout the process, though I appreciate the tip. :) I really hope that passing variables won't require that caching is disabled as that would be a big hit to performance...
There must be an easy answer to this.
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
I added several eZDebug lines like Paul suggested. The system appears to load and get to the end of basket.php, but oddly enough it doesn't trigger the code that adds products to the cart: if ( $http->hasPostVariable( "ActionAddToBasket" ) )
Yet the item is added to the cart without any problems. I'm going to look around to see if there is another component that would deal with this functionality, but this doesn't make sense...
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
Okay, I have added an insane amount of debug notices to basket.php and am positive that the code that begins with if ( $http->hasPostVariable( "ActionAddToBasket" ) ) on line 52 is not triggered when I click on a button adding a product to my cart. Ever. According to PHP there aren't any entries in the global _POST (or $GLOBALS["HTTP_POST_VARS"]) arrays when viewing the result of adding a product to the cart.
Yet the product is added to my cart. How??? All I want to do is pass an additional variable from my product page to the cart, yet I can't for the life of me determine where the posted variables get dropped and how the cart still manages to know what product to add.
Please help - this is the last major hurdle for me to take a large site live and it is pushing me to the edge of sanity. There has got to be an answer.
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
You must be logged in to post messages in this topic!