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.

7
  • 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
    Commented Jan 19, 2015 at 19:21
  • TEST 2 can be straight text which is not displayed anyway. Commented Jan 19, 2015 at 19:23
  • have you tried adding parse="inward" on the exp channel entries tag?
    – Milksamsa
    Commented Jan 19, 2015 at 19:25
  • 1
    Do your products have a status other then Open assigned to them? Commented Jan 19, 2015 at 23:58
  • 1
    Try adding `status="not closed" to your channel entries tag Commented Jan 20, 2015 at 16:40

2 Answers 2

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}.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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