Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gggreggg

    (@gggreggg)

    Thank you for offering to help. After clicking to export, it says “Export is in progress (0/201 are completed). A few seconds later, and the message “Export failed” is displayed. I tried enabling WP_Debug in wp-config.php, but no error log was generated.

    Having said this, I did figure out how to transfer all the comments (includes product reviews) using phpMyAdmin. My notes are below. Thanks again for your offer of help ??

    Transfer Comments/Product Reviews
    1. New Site: install “Customer Reviews for WooCommerce” plugin.
    2. phpMyAdmin: select _comments>Export>Custom>Add Create Table & Add Create Procedure>Go
    3. phpMyAdmin: select _metacomments>Export>Custom>Add Create Table & Add Create Procedure>Go
    4. In new database, delete all entries in _comments and _metacomments.
    5. In new database, select _comments and Import .sql file. Repeat for _metacomments.
    6. Find the product IDs in on Old site and new site – point to each Woo product to see ID displayed below.
    7. phpMyAdmin New Site: select _database>Search>enter old product and select Exact Match Whole Field and all tables.
    8. Under _comments and _metacomments change the old product ID to the new product ID – simply double click entry to change.
    9. Repeat steps 7 and 8 for each product.
    10. On the old site, record the number of reviews for each product – Review tab on each product page.
    11. phpMyAdmin New Site: select _database>Search>wc_review_count and select At Least One Word and all tables.
    12. Under _postmeta, change the “metadata” (review count) based upon the new product IDs – simply double click entry to change.

    • This reply was modified 3 years, 12 months ago by gggreggg.
    Thread Starter gggreggg

    (@gggreggg)

    Yes, I deactivated JetPack Lazy Load after trying unsuccessfully to stop JetPack from loading (dequeue and deregister) on the page with a MetaSlider.

    Since your post, I reactivated JetPack Lazy Load and tried the functions.php code you provided. It worked perfectly!

    However, who knows when JetPack updates will once again cause trouble so your suggestion to look a a3 Lazy Load makes good sense.

    I can’t thank you enough for the amazing support!

    • This reply was modified 4 years, 1 month ago by gggreggg.
    • This reply was modified 4 years, 1 month ago by gggreggg.
    • This reply was modified 4 years, 1 month ago by gggreggg.

    Thank you for looking at this! As it turns out, disabling the DuckDuckGo Privacy Essentials add-on for Firefox clears this issue. We’re not sure if it’s the DuckDuckGo Privacy Essentials add-on or a problem with either WooCommerce or Square payment services plugins.

    Thread Starter gggreggg

    (@gggreggg)

    Marc,

    Thanks. That worked.

    Also wanted to mention that I tried several caching plugins and yours was the only one that actually reduced page load times and had an interface I could easily understand.

    Thread Starter gggreggg

    (@gggreggg)

    I sure hope someone can help me with this? I don’t see why a form that is created inside a WP custom template posts correctly while the same form written in the WP editor directed at the same custom template doesn’t – see below? The bigger picture is that I’m trying to figure out if it’s worth my while to learn PHP so I can create specialized online calculators. I’d like to write the forms on a WP page, enqueue javascript to check the form (got enqueueing figured out), and then have a custom WP template with my PHP render the output along with using HTML5 canvas to draw some rudimentary graphs consisting of lines and rectangles. I’m trying to make sure this is even possible before I dig into learning PHP and Canvas along with brushing up on Javascript.

    For what’s its worth, when I went to college, they were teaching Fortran. Two years earlier and students were still using punch cards. Getting up to speed with HTML5, CSS, Javascript, PHP, and WP has been a super steep learning curve for me. Its a ton of work just so I can finally start creating my calculators. Bottom line, I am trying to read about custom templates and various posts on the subject but I could really use some help/advise.

    Source Code when <form> is inside custom template:

    <div id="main">
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<div class="entry">
    
    						<form action="https://biotoxinjourney.com/form/" method="post">
    						Name: <input type="text" autocomplete="OFF" name="fname" /><br />
    						Age: <input type="text" name="age" /><br />
    						<input name="submit" type="submit" value="Submit Query" />
    						</form>
    
    				</div><!--end .entry-->
    
    			</div><!--end #content-->
    		</div><!-- #primary -->
    
    	</div><!-- #main -->

    Source Code when <form> is inside WP page:

    <div id="main">
    
    		<div id="primary">
    			<div class="entry">
    
    						<div id="content" role="main">
    
    <article id="post-5083" class="post-5083 page type-page status-publish hentry">
    	<header class="entry-header">
    		<h1 class="entry-title">Form3</h1>
    	</header><!-- .entry-header -->
    
    	<div class="entry-content">
    		<form action="https://biotoxinjourney.com/form3/" method="post">
        Name: <input type="text" autocomplete="OFF" name="fname" /><br />
        Age: <input type="text" name="age" /><br />
        <input type="submit" value="Submit Query" /><br />
    </form>
    <div class="post-views post-5083 entry-meta">
    
    				<span class="post-views-label"> </span>
    				<span class="post-views-count">0</span>
    			</div>			</div><!-- .entry-content -->

    Thread Starter gggreggg

    (@gggreggg)

    Hmmm, I think I found the problem. On the page I mentioned, https://codex.www.ads-software.com/Child_Themes, they talked about the possibility of the child style.css not loading.

    I replaced this functions.php code:

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }

    with this functions.php code:

    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style )
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    Now my child style.css lines are working.

    Thanks for the help!

    Thread Starter gggreggg

    (@gggreggg)

    glgeorgiou,

    Thanks for looking at this. I’d included the parent style.css in my child theme functions.php per https://codex.www.ads-software.com/Child_Themes – see my functions.php below. I think the child theme style.css is getting loaded because other tweaks to my child theme style.css are having effect.

    Thanks.

    <?php

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }

    ?>

Viewing 7 replies - 1 through 7 (of 7 total)