Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Sorry for the late reply. I figured out how to get the issue how to go away. I found a script being injected onto our public-facing (non-admin) pages, above the <HTML> tag. It looked like the following:


    <script>
    var s=document.referrer;
    if(s.indexOf("google.fr")>0)
    {
    self.location="https://www.bravesnow.com/";
    }
    </script>

    It was being injected by a malicious index.php file in the root directory of our WordPress installation. We do not know how it got there, but upon replacing it with WordPress’s default version of the file, the shopping card functionality returned to normal.

    I believe that the code that was being injected (above) was causing WooCommerce to have returned to it page content that it didn’t expect to receive, and so it wasn’t working.

    I hope this information helps you.

    I am experiencing this same issue and have tried just about everything to fix it. The site I’m attempting to fix is https://sipcalifornia.com/

    Thread Starter tenkabuto

    (@tenkabuto)

    You may want to look at the plugin I produced to help me resolve the issue: https://github.com/tenkabuto/Revitalize-Orders/blob/master/revitalize-orders.php I do not recommend using this on a live site, however, as (1) it can be a performance suck due to the issue mentioned two paragraphs down and (2) because it can cause WooCommerce to re-send order processing/completion emails to your previous customers.

    What it does is searches through all your orders then retrieves for each one all comments until it reaches one that looks like “Order status changed from processing to refunded.”, at which case WooCommerce is told to set the order to whatever status it had last been changed to — which would be refunded in the previous example.

    There is a problem with the aforementioned code, though: It runs through all orders. (I’d tried to have the code process only the no-status orders (when I introduced the $not_alive variable), however, due to the nature of the original, status-wiping error, there’s no way that I know of to check for such orders.)

    Good luck in resolving this, I hope that either my response or my code — flawed as it may be — manages to help you.

    Thread Starter tenkabuto

    (@tenkabuto)

    Oh, okay, thank you very very much!

    Thread Starter tenkabuto

    (@tenkabuto)

    Thank you! I’ve also found this thread and I’m wondering if it also works. =/

    Thread Starter tenkabuto

    (@tenkabuto)

    Can someone please help?

    Thread Starter tenkabuto

    (@tenkabuto)

    I accidentally posted twice, the first was using a blockquote, this one with a code tag, sorry: D=

    <div id="sidebar">
    		<ul id="sidelist">
    
    	<?php 	/* Widgetized sidebar, if you have the plugin installed. */
    					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    		<?php endif; ?>
    
    <?php
    // this is where 10 headlines from the current category get printed
    if ( is_single() ) :
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>
    <li><h2>More from this category</h2>
    <ul class="bullets">
    <?php
    $posts = get_posts('numberposts=10&category='. $category->term_id);
    foreach($posts as $post) :
    ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    
    <?php endforeach; ?>
    
    <li><strong><a href="<?php echo get_category_link($category);?>" title="View all posts filed under <?php echo $category->name; ?>">Archive for '<?php echo $category->name; ?>' &raquo;</a></strong></li>
    </ul>
    </li>
    <?php endforeach; endif ; ?>
    
    <?php if ( is_home() ) { ?>
    <li><h3><?php
    	// this is where the name of the News (or whatever) category gets printed
    	wp_list_categories('include=8&title_li=&style=none'); ?></h3>
    		<?php
    // this is where the last three headlines are pulled from the News (or whatever) category
    		query_posts('showposts=3&cat=8');
    		?>
    		<ul class="bullets">
     	<?php while (have_posts()) : the_post(); ?>
          <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
     	<?php endwhile; ?>
     	</ul>
     	</li>
    <?php } ?>
    
    	<li><h3>Browse Archives</h3>
    	<form id="archiveform" action="">
    <select name="archive_chrono" onchange="window.location =
    (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    	<?php get_archives('monthly','','option'); ?>
    	</select>
    	</form>
    	</li>
    
    <li><h3>Browse Categories</h3>
    <ul class="subnav">
    <?php wp_list_categories('title_li='); ?>
    </ul>
    </li>
    
    <li><h3>Ads &amp; Sponsors</h3>
    </li>
    
    <li><h3>Contributors</h3>
    
    <ul class="bullets">
    <?php wp_list_authors
    ('exclude_admin=0&show_fullname=1&hide_empty=1&feed_image=' .
    get_bloginfo('template_url') . '/images/rss.gif&feed=XML'); ?>
     </ul>
    </li>
    
    </ul><!--END SIDELIST-->
    </div><!--END SIDEBAR-->

    Thread Starter tenkabuto

    (@tenkabuto)

    This is my entire sidebar.php file:

    <div id=”sidebar”>
    <ul id=”sidelist”>

    <?php /* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>
    <?php endif; ?>

    <?php
    // this is where 10 headlines from the current category get printed
    if ( is_single() ) :
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>

    • <h2>More from this category</h2>
      <ul class=”bullets”>
      <?php
      $posts = get_posts(‘numberposts=10&category=’. $category->term_id);
      foreach($posts as $post) :
      ?>
    • “><?php the_title(); ?>
    • <?php endforeach; ?>

    • ” title=”View all posts filed under <?php echo $category->name; ?>”>Archive for ‘<?php echo $category->name; ?>’ »
    • <?php endforeach; endif ; ?>

      <?php if ( is_home() ) { ?>

    • <h3><?php
      // this is where the name of the News (or whatever) category gets printed
      wp_list_categories(‘include=8&title_li=&style=none’); ?></h3>
      <?php
      // this is where the last three headlines are pulled from the News (or whatever) category
      query_posts(‘showposts=3&cat=8’);
      ?>
      <ul class=”bullets”>
      <?php while (have_posts()) : the_post(); ?>
    • ” rel=”bookmark”><?php the_title(); ?>
    • <?php endwhile; ?>

      <?php } ?>

    • <h3>Browse Archives</h3>
      <form id=”archiveform” action=””>
      <select name=”archive_chrono” onchange=”window.location =
      (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);”>
      <?php get_archives(‘monthly’,”,’option’); ?>
      </select>
      </form>
    • <h3>Browse Categories</h3>
      <ul class=”subnav”>
      <?php wp_list_categories(‘title_li=’); ?>
    • <h3>Ads & Sponsors</h3>
    • <h3>Contributors</h3>

      <ul class=”bullets”>
      <?php wp_list_authors
      (‘exclude_admin=0&show_fullname=1&hide_empty=1&feed_image=’ .
      get_bloginfo(‘template_url’) . ‘/images/rss.gif&feed=XML’); ?>

    • <!–END SIDELIST–>
      </div><!–END SIDEBAR–>

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