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

    • 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
    • bnapoli
      By bnapoli+
      I have Quickshop installed on my WooCommerce section of this website: http://a04.125.myftpupload.com/
      Main Shop: http://a04.125.myftpupload.com/?page_id=1198
      I've having what appears to be CSS issues on the individual product pages. After cleaning up any code accessible from the wp-admin, the page still appears broken. I never tried to customize it, it just came broken like this right out of the box.
      You can see examples of it broken on every single product page, see here:
      http://a04.125.myftpupload.com/?product=futaba-14sg-14-channel-2-4-ghz-radio-system
      http://a04.125.myftpupload.com/?product=gremsy-gstabi-h7-brushless-3-axis-gimbal
      http://a04.125.myftpupload.com/?product=dji-inspire-1-zenmuse-x5-gimbal-and-camera-unit
      http://a04.125.myftpupload.com/?product=dji-wookong-m-flight-controller
      Can somebody help?
    • King Creative Design
      By King Creative Design+
      I am setting up a Woocommerce site using PL Framework and Platform 5. I added a hook so the category description appears under the category page titles (on archive pages). However, it also appears under the title on the main "shop" page (which I have renamed "Catelog" page). There is a default description here and I can't figure out for the life of me where it is being generated from so I can change it. Any ideas how to change it or delete it on the main shop page ONLY? The staging site is here - http://16e.117.myftpupload.com/ and the page in question is http://16e.117.myftpupload.com/catalog/
      I have hit up Woocommerce support and they weren't familiar with Platform 5 and recommended I contact you.
      Your help would be appreciated, thanks!
      Michele

×