I’ve written a shopping cart plugin which stores references to items. I then want to retrieve these values to then use in a weblog to get back the item details.
Another similar post can be found here: http://ellislab.com/forums/viewthread/81138/#410668 Where the outcome works. But for me it doesn’t?!?!
In my template I’ve got: 0={exp:ava_cart:getItem cartNum="0"} {exp:weblog:entries weblog=”books” dynamic=”off” search:isbn=”{exp:ava_cart:getItem cartNum="0"}” parse=”inward”}
This correctly prints out “0=978-2-940373-02-4” but nothing is displayed from the weblog. If I manually enter the value e.g. {exp:weblog:entries weblog="books" dynamic="off" search:isbn="978-2-940373-02-4" parse="inward"}, it works and weblog has values.
“books” weblog holds all the products (books funnily enough), the reference is unique to each book. As proven by the direct reference, the book in question exists.
Any thoughts or ideas would be appreciated.
Thanks,
Peter
I can get round the problem by putting the weblog:entries tag within an embed and passing the plugin value via parameters, so problem solved. But it’s odd why this doesn’t work.
I’ve used plugins previously in a weblog:entries (e.g. doing a find and replace on the search parameter), although these have always been tag pairs not a single.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.