0

Based on a documentation my code looks like (short version):

{exp:store:checkout channel="products" form_class="form-horizontal"}
            {items}
                TEST 1
            {exp:channel:entries entry_id="{entry_id}"}
                TEST 2
            {/exp:channel:entries}
            {/items}
{/exp:store:checkout}

TEST 2 message is not displayed at all.

Any clue what is going on?

Thanks

PS. It looks like Expresso Store parsing bug. Similar issue described here

PS.2

I have wipe out whole cart/index template and put just those lines:

TEST:

    {exp:channel:entries channel="products" entry_id="230" dynamic="no"}
    Entry id image:                         
    {product_image limit="1"}
    <img src="{product_image:image}" alt="{product_image:title}" class="img-responsive"></a>
    {/product_image}
    {/exp:channel:entries}  

And what I'm getting is only a text TEST: nothing else. Product with an entry ID 230 exists in the products channel.

  • Please specify what's in TEST 2. Also try to hard-code an actual entry_id in the entry_id="" variable for debug purposes. – Milksamsa Jan 19 '15 at 19:21
  • TEST 2 can be straight text which is not displayed anyway. – JackTheKnife Jan 19 '15 at 19:23
  • have you tried adding parse="inward" on the exp channel entries tag? – Milksamsa Jan 19 '15 at 19:25
  • 1
    Do your products have a status other then Open assigned to them? – Justin Long Jan 19 '15 at 23:58
  • 1
    Try adding `status="not closed" to your channel entries tag – Justin Long Jan 20 '15 at 16:40
1

Thanks to Justin Long tips I have got it to work. Example code looks like:

    {exp:store:checkout form_class="form-horizontal"}

                {items}
                    *Some code here*
                     {exp:channel:entries channel="products" status="not closed" dynamic="no" entry_id="{entry_id}"}
                      *Custom field code here*
                      {/exp:channel:entries}
                {/items}

{/exp:store:checkout}
0

Try to use an embed to deal with parsing issues

{items}
    {embed="_embeds/list" id="{entry_id}"}
{/items}

In the embedded template set:

{exp:channel:entries limit="1" dynamic="off" entry_id="{embed:id}" }
    TEST 2
{/exp:channel:entries}  

Since the {entry_id} in your loop needs to be the one you are actually passing to the embed, then change to {embed:id}.

  • I have tried that one too - no luck. Looks like a serious Store bug in parsing. – JackTheKnife Jan 19 '15 at 19:44
  • Maybe there is a way to do that with stash? – JackTheKnife Jan 19 '15 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.