Jump to content

Archived

This topic is now archived and is closed to further replies.

nizami

WooCommerce Checkout page broken under DMS

Recommended Posts

nizami

Seem to have fallen foul of a DMS2/WooCommerce issue. 

All pages display correctly save the WooCommerce Checkout page, which looks like this: 

http://imgur.com/QSdLkcF

Help massively appreciated as this is the last blocker before client site launch http://elenaangel.com

Cheers 

N

 

Share this post


Link to post
Share on other sites
nizami

Wow the response times have clearly fallen through the floor...is it just Simon and Danny supporting the entire user base now?

Share this post


Link to post
Share on other sites
Simon
6 hours ago, nizami said:

Wow the response times have clearly fallen through the floor...is it just Simon and Danny supporting the entire user base now?

Correct

 

Share this post


Link to post
Share on other sites
nizami

Why is that? Sounds a bit depressing.

Share this post


Link to post
Share on other sites
Simon

Nothing depressing, its always been a small team on the forums.

Did you try the filter out?

Share this post


Link to post
Share on other sites
nizami

Well that's good to know. What filter are you talking about? Indeed, what even is a filter? Did I miss a post? 

I'm trying to launch a client site and I'm just terrified that DMS is going to fall over altogether. 

Every other time I load a page DMS doesn't load and the page display is totally broken.

Maybe it's my thin internet pipe...but the behaviour seems unstable.

IS this a a CSS thing, or a JAva thing?

 

 

1 minute ago, Simon said:

Nothing depressing, its always been a small team on the forums.

Did you try the filter out?

 

Share this post


Link to post
Share on other sites
Simon

in the post I linked to above, is a PHP filter you just need to add to child theme functions.php file. It forces all the CSS to load via https not http.

Share this post


Link to post
Share on other sites
nizami

Hi Simon––many thanks for this. Yes the filter worked. It does BTW produce the following notice in WP_Debug mode: 

Notice: Use of undefined constant ‘pl_force_ssl’ - assumed '‘pl_force_ssl’' in /www/wp-content/themes/dms-child/functions.php on line 6 Notice: Use of undefined constant ‘__return_true’ - assumed '‘__return_true’' in /www/wp-content/themes/dms-child/functions.php on line 6

 But that doesn't look critical to me...

Resolved I think! Thank you! 

N

 

17 hours ago, Simon said:

Nothing depressing, its always been a small team on the forums.

Did you try the filter out?

 

Share this post


Link to post
Share on other sites
Simon

Can you paste the code here

Share this post


Link to post
Share on other sites
nizami

Hi Simon...sadly not resolved yet...soon as you hit https the core DMS CSS is lost... 

the code I have pasted in child theme functions.php is exactly as you specify in the quoted thread: 

add_action( ‘pl_force_ssl’, ‘__return_true’ );

site:

With DMS CSS

http://elenaangel.com

Without 

https://elenaangel.com 

Could it be an issue with the SSL certificate? 

Cheers

N

 

Share this post


Link to post
Share on other sites
Simon

add_action( 'pl_force_ssl', '__return_true' );

Yes i think somewhere the quotes got changed make sure they are single quotes.

Share this post


Link to post
Share on other sites
nizami

If you mean the quotes in the code yes they are single quotes. 

Is it supposed to be a double underscore before return_true ? 

Share this post


Link to post
Share on other sites
Simon

yes... can you paste your functions file here so i can check it.

Share this post


Link to post
Share on other sites
nizami

Here you go: 

<?php

/**
 * Force DMS CSS styles to be pulled thru via HTTP not HTTPS 
 */
add_action( ‘pl_force_ssl’, ‘__return_true’ );


/**
 * Make sure non-members can't view the download button
 */
add_action( 'woocommerce_before_single_product', 'woa_fix_direct_download_button_membership_support' );
function woa_fix_direct_download_button_membership_support() {

    if ( ! function_exists( 'wc_memberships' ) ) {
        return;
    }

    $user_id = get_current_user_id();

    if ( wc_memberships_is_product_purchasing_restricted() 


The latter part, BTW is about fixing am integration problem between DMS and WooCommerce Memberships. 

N

Share this post


Link to post
Share on other sites
Simon

Yea see how the quotes are different? They are apostrophes not quotes ;) change to ' or "

Share this post


Link to post
Share on other sites
nizami

Many thanks for this Simon! 

Share this post


Link to post
Share on other sites
Simon
Just now, nizami said:

Many thanks for this Simon! 

You got it fixed then? 

Share this post


Link to post
Share on other sites
nizami

Yes...the fix worked. Thank you! 

Share this post


Link to post
Share on other sites

  • Similar Content

    • mtaus
      By mtaus+
      I'm using Woocommerce in a Pagelines framework. When I build out a product, I'm able to add images in the admin panel and the
      Product Image will display on Shop page, but neither the Product Image nor the Product Gallery will display on the product's dedicated page.
      Shop: https://bendbotanics.com/shop/
      Product Example: https://bendbotanics.com/product/500mg-full-spectrum-hemp-oil-fsho/
      Any help would be greatly appreciated!
    • cdracos
      By cdracos+
      Hello everyone,
      I face a common problem as I can see on relevant topics with quickshop plugin. 
      On Product Single page of woocommerce, i use quickshop as layout. The primary photo of my product doesn't appear on the thumb slider, but the first image is the default placeholder. 
      Need some help not with custom script in the product description for each product. 
      Have a look on my website: http://lillyandsid.gr/shop/camp-things-top/
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
×