My checkout page does not show anything

hi, i've installed Pro Sites but my checkout page does not show anything, help me please.
Thanks

  • Tyler Postle
    • CGO

    Hey Adet,

    I tested this out on your installation and I see the issue. You can delete the test account I set up :slight_smile:

    Can you try deactivating your caching plugin and then test it again, does it work then? If not, then try deactivating all other plugins as well to make sure it isn't a plugin conflict. You can also try switching to a different theme temporarily to make sure it isn't a theme conflict.

    Hope this helps! Let us know if you still need further assistance after the above tests.

    Cheers,
    Tyler

  • Tyler Postle
    • CGO

    Hey Adet,

    Hope you are doing well!

    It could be that your default theme doesn't include a loop in their page.php template. Please see this thread: https://premium.wpmudev.org/forums/topic/blank-checkout-page-no-gridoptions look for Aaron's posts about halfway down. He provides a fix that should be similar for you if that's the case. Make sure you backup any files you edit just in-case anything goes wrong :slight_smile:

    Make sure you post back here instead of the thread above if you still need further assistance. Keeps everything organized and allows us to provide more efficient support for you!

    Cheers,
    Tyler

  • ADET
    • Flash Drive

    I've checked the topic but as the themes page.php is really different i dont even know where to change. i've granted acces on WPMU Dev page.

    {extends $layout}
    
    {block content}
    <article id="post-{$post->id}" class="{$post->htmlClasses}">
    
    	<header class="entry-header">
    
    		<h1 class="entry-title">
    			<a href="{$post->permalink}" title="{__ 'Permalien à'} {$post->title}" rel="bookmark">{$post->title}</a>
    		</h1>
    
    {*
    		<div class="entry-meta">
    			<span class="sep">{__ 'Posté le'} </span>
    			<a href="{dayLink $post->date}" title="{$post->date|date:$site->dateFormat}" rel="bookmark">
    				<time class="entry-date" datetime="{$post->date|date:$site->dateFormat}" pubdate="">{$post->date|date:$site->dateFormat}</time>
    			</a>
    			<span class="by-author">
    				<span class="sep"> {__ 'par'} </span>
    				<span class="author vcard">
    					<a class="url fn n" href="{$post->author->postsUrl}" title="{__ 'Voir tous les articles de %s'|printf: $post->author->name}" rel="author"> {$post->author->name}</a>
    				</span>
    			</span>
    		</div>
    
    		<div class="comments-link">
    			<a href="{!$post->permalink}#comments" title="{__ 'Commenter'} {$post->title}">{$post->commentsCount}</a>
    		</div>
    *}
    
    	</header>
    
    	{if $post->thumbnailSrc}
    	<a href="{!$post->thumbnailSrc}">
    		{ifset $fullwidth}
    		<div class="entry-thumbnail"><img src="{timthumb src => $post->thumbnailSrc, w => 940, h => 250}" alt=""></div>
    		{else}
    		<div class="entry-thumbnail"><img src="{timthumb src => $post->thumbnailSrc, w => 629, h => 250}" alt=""></div>
    		{/ifset}
    	</a>
    	{/if}
    
    	<div class="entry-content">
    		{!$post->content}
    	</div>
    
    </article><!-- /#post-{$post->id} -->
    
    {include comments.php, closeable => $themeOptions->general->closeComments, defaultState => $themeOptions->general->defaultPosition}
    
    {ifset $themeOptions->advertising->showBox4}
    <div id="advertising-box-4" class="advertising-box">
        {!$themeOptions->advertising->box4Content}
    </div>
    {/ifset}
    
    {/block}

    this iy my page.php

  • Patrick
    • Support Monkey

    Hi there @ADET

    I hope you had a great weekend!

    Thanks very much for your patience here, and I apologize for any delays caused by the weekend... yeah, we do take a break now and again unfortunately, lol. :slight_smile:

    I'm just logging into your site now to see if I can help figure this out for you. I'll post again as soon as I have something to report... either good, or not so good. :slight_smile:

  • Patrick
    • Support Monkey

    Hi again @ADET

    Yep, that Directory theme does appear to have a rather particular structure.

    Instead of messing around on your site, could you please email me a copy of the theme so I can test some things on my own development site?

    Please send to patrick(at)incsub.com

    We'll get to the bottom of this. :slight_smile:

    Thanks!

  • Patrick
    • Support Monkey

    @ADET

    Yep, I got the email.

    But the rar you included didn't make it through. That's likely the cause of the error you got.

    Can you try again with a zip instead of a rar? Never had any trouble with zipped stuff before.

    UPDATE: I managed to grab the rar form the link in the 2nd email you sent. Extracted and zipped up the contents. It's now on a test site so I can start messing around with it. :slight_smile:

  • Patrick
    • Support Monkey

    @ADET

    LOL, we're cross-posting. :slight_smile:

    I managed to grab the rar from the link in the 2nd email you sent. Extracted and zipped up the contents. It's now on a test site so I can start messing around with it. :slight_smile:

    And my silly Firefox just crashed, so off we go to Chrome. :slight_smile:

  • Patrick
    • Support Monkey

    Hi again @ADET

    Yikes!

    The copy you sent me is full of hard-coded links to your site, and a bunch of extra stuff generated by your cache plugin, making it unusable on my site.

    No matter where I install it, all links to my test site redirect to yours. :smiley:

    Can you download a fresh copy from AIT theme or ThemeForest and send me that.

    We'll get it right eventually, lol. :slight_smile:

  • Patrick
    • Support Monkey

    Hi again @ADET

    Couldn't get back to this yesterday as I had some Life stuff to tend to.

    But I just went over all options/settings configurations, shortcodes, and fiddled around with the templates.

    Unfortunately, I cannot figure out how to get the darned Pro Sites checkout to display on the page.

    The Directory does have a very unusual template structure and, for the life of me, I can't figure it out.

    So I've called in the big guns on this issue, and have flagged the 2nd-level support wiz-kids to get their insight into this.

  • ADET
    • Flash Drive

    Hey, allright Patrick. Thanks alot for your attention. The directory theme is a must for me. I really need directory and pro sites on my site. Thinking about installing Domain Mapping plugin aswell but want to resolve this problem before starting to work on it. Hope Big guns are not busy.
    I've tried many methods aswell but the directory theme has a really different structure compared to other themes.

    Thanks again for your help

  • Patrick
    • Support Monkey

    Update here:

    We got the layout issue for the signup page sorted in live chat by adding the following to the theme style-sheet:

    input[type=text], input[type=password], textarea { border: 1px solid #ccc !important; }

    We're now waiting on 2nd-level support for some templating help to get the Pro Sites checkout page to display using this theme with an unusual template structure.

    I'll see if I can speed up the process. :slight_smile:

  • Jose
    • Bruno Diaz

    Hey @ADET,

    Hope you are doing great today!

    I'll take over on this issue.

    Please take into account that the problem is being caused by a third party theme and therefore it might take a bit longer than usual since we need to get familiarized with the code.

    I'll be back to you as soon as I get this sorted.

    Thanks for your patience!

  • Jose
    • Bruno Diaz

    Hi @ADET,

    I finally found the issue and I'm working on a solution.

    Directory plugin is hacking the default WP Loop, and therefore it doesn't gives the chance to Pro Sites plugin to hook and print the content.

    I think we can workaround this using a default template in a child theme.

    In order to make the necessary changes, I'll need from you to please send me the following information via <a href="https://premium.wpmudev.org/contact/
    ">contact form:

    - In the subject field add "Attn: Jose”
    - Link back to this thread
    - Include admin/network access
    - Include FTP
    - Include any relevant URLS for your site

    On the contact form, select "I have a different question", this ensures it comes through and gets assigned to me.

    Thanks

  • Jose
    • Bruno Diaz

    @ADET,

    It should be working now. :slight_smile:

    The problem is that Directory template engine (WpLatte) do not use the default WP Loop.

    It emulates the loop inside the class WpLattePostEntity. But for some unknown reason, the routine is not setting this important flag:
    WP_Query->in_the_loop;

    Pro sites checks if in_the_loop() is true before printing the checkout form. And that's why it wasn't showing up.

    The best/cleaner approach that I found was to hook into the 'loop_start' action to force the flag to be set.

    I created a child theme and placed the snippet into functions.php. You can also place the code into a must use plugin or custom plugin as well.

    The snippet is as follows:

    add_action('loop_start', 'set_in_the_loop');
    
    function set_in_the_loop( $args ) {
        try{
            $query = is_array($args) ? $args[0] : $args;
            $query->in_the_loop = true;
        }catch(Exception $e){
            die($e);
        }
    }

    Please let me know if everything works as expected now. I'm right here to assist you if you have further questions.

    Cheers!
    JJ

  • ADET
    • Flash Drive

    Thank you Jose.
    It worked, now i have to customize the child theme. I've switched to main theme as the child theme changes all options to default. Gonna do this as soon i get to home. If ever something goes wrong i'll let you know.
    Thank you again one time :slight_smile:

  • Tyler Postle
    • CGO

    Hey Adet,

    Hope you are well today! Our translations manual should help you out, about halfway down it explains exporting and where to upload it to in your site. You will want to find the wp-content/languages/plugins foler. I will copy and paste the relative excerpt from the linked manual:

    You can choose to Export the translation in various formats:

    Portable Object Message Catalog (.po)
    Machine Object Message Catalog (.mo)

    The only ones we’re interested in are the .po and .mo files, it’s these that WordPress uses. Think of .po as human readable, and .mo as machine readable, it’s the .mo files that WordPress will read.

    All you need to do is select .mo from the drop down, then hit the Export button. The resulting download should already be perfectly named with the plugin’s textdomain and locale. You can just drop it in the plugin’s languages folder. Note that themes do not use a textdomain, so you will need to remove it from the filename. Example change this-theme-es_ES.mo to es_ES.mo before placing in the theme’s language folder.

    You can put translation files in:

    Plugins: /wp-content/languages/plugins/textdomain-locale.mo
    Themes: /wp-content/languages/themes/textdomain-locale.mo

    Hope that helps!

    Let us know if you need any further assistance :slight_smile:

    Cheers,
    Tyler

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.