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

    • optionease
      By optionease+
      Using WooCommerce with PL5, PageLines Framework and PageLines.com theme with ShopLines.  Whenever click on a product category in the Shop, receive The site is experiencing technical difficulties.  Please help.
      https://iloveyoga.com
    • gstrahle
      By gstrahle+
      Hi,
      I am hoping to figure out how I can get my PageLines Full Nav to display layered in front of a sticky footer element on my website - 3keymedia.com
      I would like the Full Nav to overlay the entire screen when opening the menu as you will see when opening on a desktop the footer of nav content is cropped by the sticky footer.
       
      Thanks


    • Christian
      By Christian+
      Hi everyone, since Instagram had allowed to publish in different ratio formats (instead of only square ratio) the grams stripe has different heights. Can you tell me if i can fix it easily with some CSS?
    • Jessica McCabe Lawson
      By Jessica McCabe Lawson+
      I'm building a product catalog site. The featured image is set correctly, but the woocommerce placeholder image is displaying instead. If I click on the placeholder image, the featured image appears, and the featured image works fine as a thumbnail.
      Please view the site here: http://www.directmat.net/product/power-lock-logo-mat/
      Note: I deleted the placeholder image via FTP to see if that would inspire Quick Shop to look for the featured image. No such luck. Please help!
    • 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!
×