Skip Navigation

[Closed] Views display content correctly on backend but not on frontent Views & WPML

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 14 replies, has 2 voices.

Last updated by Shane 4 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1800181
toolset-error-pl.jpg
toolset-error-en-admin.jpg
toolset-error-en.jpg

I am trying to:
Display products from Woocommerce

Link to a page where the issue can be seen:

correct (polish), see 'Zamów belkę' section and cards with products below :
hidden link

incorrect (english), see 'Order an axle', there are empty slots for cards:
hidden link

I expected to see:
all cards, products

Instead, I got:
empty space

Interesting - products are VISIBLE in backend, see attachements

This happened after updates (it was fine before) but not sure which updates.

Have also other issue with views but not sure if they are somehow connected:
https://toolset.com/forums/topic/a-lot-of-unnecessary-css-and-js-in-html/

#1802243

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

Thank you for getting in touch.

I must apologize for the delay in response as our Forums have been extremely busy lately.

Would you mind allowing me to have admin access to the site so that I can have a first hand look at the issue for you ?

Thanks,
Shane

#1802831

Yes, how to add it?

#1804253

??

#1804365

The problem is View within view.

View:

<div class="belki-miniatury__card belki-miniatury__card-ads">
  
  <a href="[wpv-post-url]" class="belki-miniatury__big-link">
    <div class="belki-miniatury__add-info">[wpv-post-taxonomy type="pa_opis1" format="text"]<br /> <span>[wpv-post-taxonomy type="pa_opis2" format="text"]</span></div>
    <div class="belki-miniatury__photo"><img src="[wpv-post-featured-image output='url' size='medium']" alt="[wpv-post-featured-image output='alt']" /></div>
    [wpv-view name="tresci" ids="13168"] 
    [wpv-conditional if="( $(wpcf-oznaczenie-intercars) ne '' )"]
    <div class="belki-miniatury__naglowek">Numery referencji</div>
    <div class="belki-miniatury__referencje">
      <div><img src="<em><u>hidden link</u></em>" style="height:20px" class="aligncenter size-full" /> [types field='oznaczenie-antalex'][/types]</div>
      <div><img src="<em><u>hidden link</u></em>" style="height:20px" class="aligncenter size-full" /> [types field='oznacenie-elit'][/types]</div>
      <div><img src="<em><u>hidden link</u></em>"  style="height:20px" class="aligncenter size-full" /> [types field='oznaczenie-intercars'][/types]</div>
    </div>
    [/wpv-conditional]
    <div class="belki-miniatury__link">[wpv-post-title]</div>
    <div class="belki-miniatury__bottom">
      <div class="belki-miniatury__price"><span>[wpv-woo-product-price]</span><small>[wpml-string context='wpv-views' name="cena-brutto"]tax incl.[/wpml-string]</small></div>
      <div class="belki-miniatury__look"><span><img class="size-full wp-image-680 u-mr-1" width="24" height="24" style="width: 24px;" src="<em><u>hidden link</u></em>" alt=""> [wpml-string context='wpv-views' name="sprawdz produkt"]Check[/wpml-string]</span></div>
    </div>
  </a>
</div>

When i remove this part every product shows:

 [wpv-view name="tresci" ids="13168"] 

This view is just some html. I have custom post type with some reusable parts and basing on ID i include this where I want them to appear. It is better this way for me if I want something to be translated.
Probably it stopped working after last update.

#1804619

I couldn't wait any longer so I made changes.

I inserted content from post to View with function (chortcode) to detect language and show appriopriate version of HTML.

I made one page with this bug for you to see:

hidden link
also at bottom there is a view which I include in parent view (cards with products) and here it works without problems (search for Complete axle, Free shipping)

This is how this should look:
hidden link

#1804725

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

I must apologize for the delay in response as we are currently experiencing a high volume of support tickets.

I've enabled the private fields for you to provide me with the login details.

Thanks,
Shane

#1805993

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

I understand the issue with the views items not be laid out correctly, however i'm not sure of the other issues from your screenshot here.
https://toolset.com/forums/topic/views-display-content-correctly-on-backend-but-not-on-frontent-views-wpml/#post-1800181

I see that you've circled the end of the post titles in them but when I checked the post titles on the backend what you've circled is actually there on the backend, so some clarity is needed here for me to debug.

Thanks,
Shane

#1806915
frontend-missing-products.jpg
backend-ok.jpg

You can see problem here:
hidden link

I made new screenshoots, I think this should be clear now.

#1809189

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

What was causing the issue for the view is this nested view here.
[wpv-view name="tresci" ids="13168"]

Not sure what this view should be doing with just a static ID filter that was inserted.

Thanks,
Shane

#1812483

Hi,

1. I know what was a problem, I wrote about this:
https://toolset.com/forums/topic/views-display-content-correctly-on-backend-but-not-on-frontent-views-wpml/#post-1804365
https://toolset.com/forums/topic/views-display-content-correctly-on-backend-but-not-on-frontent-views-wpml/#post-1804619

Thing is, I think this is a Views bug, which should be fixed.

Or nesting Views is not possible?

This view with ID only is for getting some content, content of page (this particular is CPT), to include content in parent view and make parent view more clear and to be able to easier translate this content.

2. Now I am getting some debug window showing up. Could you disable it?

#1812565
view.jpg

This 'child view' was responsible for this text from attachement.

#1812901

Ok, I disabled this popup window.

#1826389

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

In order for this one to be considered as a bug I need to know the exact steps to replicate the issue.

If you can provide some step by step instructions on how to replicate this issue, then I can attempt to replicate and provide a copy of the issue to our 2nd tier supporters for further checks.

Once i'm able to confirm I can take it from there but I need some instructions on how to replicate it here.

Thanks,
Shane

#1826391

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tomas,

In order for this one to be considered as a bug I need to know the exact steps to replicate the issue.

If you can provide some step by step instructions on how to replicate this issue, then I can attempt to replicate and provide a copy of the issue to our 2nd tier supporters for further checks.

Once i'm able to confirm I can take it from there but I need some instructions on how to replicate it here.

Thanks,
Shane

The topic ‘[Closed] Views display content correctly on backend but not on frontent Views & WPML’ is closed to new replies.