Title: jorisw's Replies | WordPress.org

---

# jorisw

  [  ](https://wordpress.org/support/users/jorisw/)

 *   [Profile](https://wordpress.org/support/users/jorisw/)
 *   [Topics Started](https://wordpress.org/support/users/jorisw/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jorisw/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jorisw/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jorisw/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jorisw/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jorisw/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/jorisw/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jorisw/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Can I use WordPress taxonomies for WooCommerce products?](https://wordpress.org/support/topic/can-i-use-wordpress-taxonomies-for-woocommerce-products/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/can-i-use-wordpress-taxonomies-for-woocommerce-products/#post-13875835)
 * Thanks, I know now that I can’t use WP native taxonomies and I will take your
   suggestion into consideration.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-mpdf] Request: Clear debug steps for ‘blank’ PDFs](https://wordpress.org/support/topic/request-clear-debug-steps-for-blank-pdfs/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/request-clear-debug-steps-for-blank-pdfs/#post-10837135)
 * To add to the above, a “debug” checkbox in the settings without an explanation
   isn’t very helpful either.
 * Helpful would be if, when ticking that option, it clearly stated in the settings
   page that this makes HTML files be written to a `debug` directory inside the `
   wp-mpdf` plug-in directory. Which by the way is no place to write files. Writing
   to the filesystem is meant to be done in `wp-content`. For instance you could
   write to `wp-content/uploads/wp-mpdf/debug` instead.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-mpdf] Use my theme files to build the template](https://wordpress.org/support/topic/use-my-theme-files-to-build-the-template/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/use-my-theme-files-to-build-the-template/#post-9308142)
 * To partially answer my own question, adding the following at the beginning:
 * `global $pdf_output;`
 * And this at the end:
 * `$pdf_output = ob_get_contents();`
 * … instead of `ob_flush()`, yields some resemblance of my theme files. But the
   visual representation of my styles is vastly different.
    -  This reply was modified 9 years, 1 month ago by [jorisw](https://wordpress.org/support/users/jorisw/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Crowdfunding] Rewards don’t work.](https://wordpress.org/support/topic/rewards-dont-work/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/rewards-dont-work/#post-8939429)
 * I can’t get rewards to show either. I’ve filled one in under the Rewards section
   but no rewards show either at the campaign page or during checkout.
 * Running PHP 5.5.9.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] What is the correct directory for payment gateways?](https://wordpress.org/support/topic/what-is-the-correct-directory-for-payment-gateways/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/what-is-the-correct-directory-for-payment-gateways/#post-8691799)
 * Thanks whitelamp. I urge the WP Ecommerce developers to get this documented, 
   like any extensible software does. Almost every third party is doing it wrong
   now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce Simple Shipping (wpsc-simple-shipping)] Plug-in does not seem to respect the "Free shipping for totals over…" setting](https://wordpress.org/support/topic/plug-in-does-not-seem-to-respect-the-free-shipping-for-totals-over-setting/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/plug-in-does-not-seem-to-respect-the-free-shipping-for-totals-over-setting/#post-6033271)
 * Nevermind. I got confused by the listing price in the shipping options, the totals
   at the bottom of the page seem right.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] shipping not being calculated at checkout](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/page/2/#post-4984707)
 * Pasting this code snippet into functions.php fixed my Choose Country problem:
   
   [https://gist.github.com/JustinSainton/2cc2727f131f3f95f47f](https://gist.github.com/JustinSainton/2cc2727f131f3f95f47f)
 * As for the Free Shipping Discount: It worked, just listing the normal price of
   shipping in the shipping options on the checkout page confused me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] shipping not being calculated at checkout](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/page/2/#post-4984706)
 * By “Free shipping from” I mean the “Enable Free Shipping Discount” setting.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] shipping not being calculated at checkout](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/shipping-not-being-calculated-at-checkout/page/2/#post-4984705)
 * Same here when trying to use free shipping up to a price point, and fixed rate
   shipping beyond that, plus the option to pick up the order.
 * As a logged in user, it behaves the way it should: It just shows me the shipping
   rate, correctly adjusted for free shipping up to the specified price point, and
   shows pickup as a shipping option.
 * Logged out, it wants me to “Choose a country” for shipping calculation, with 
   no countries available for selection. The user cannot proceed, as the Calculate
   button does nothing. Also, it no longer respects the “Free shipping from…” setting.
 * I have already removed any custom wpsc templates both from uploads/wpsc/themes
   and my WP theme directory. I have also disabled and re-enabled the WP Ecommerce
   plug-in.
 * I also tried to use the wpsc-simple-shipping plug-in, but the country option 
   still shows on the checkout page, and the shipping cost is not adjusted for the“
   Free shipping from…” setting.
 * WordPress 4.1.1, WP E-Commerce 3.9.1.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Permalinks] Single Post 404s](https://wordpress.org/support/topic/single-post-404s/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/single-post-404s/page/2/#post-5973354)
 * To anyone reading this, I had to add the following for each of my custom post
   type definitions in functions.php for the single post slug URLs to work:
 *     ```
       'rewrite'=>array('slug'=>'a-slug-name-for-your-post-type','with_front' => FALSE)
       ```
   
 * … to the array of arguments that’s passed to register_post_type. Full example:
 *     ```
       add_action( 'init', 'create_wine_post_type' );
       function create_wine_post_type() {
   
         register_post_type( 'wine',
           array(
             'labels' => array(
               'name' => __( 'Wines' ),
               'singular_name' => __( 'Wine' )
             ),
             'public' => true,
       	'show_ui' => true,
       	'capability_type' => 'post',
       	'supports'=>array('title','editor','thumbnail'),
       	'menu_position'=>11,
             'hierarchical' => false,
             '_builtin' => false,
       	'rewrite'=>array('slug'=>'wines','with_front' => FALSE)
           )
         );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] [Plugin: W3 Total Cache] Automatically empty cache when updating posts/pages](https://wordpress.org/support/topic/plugin-w3-total-cache-automatically-empty-cache-when-updating-postspages/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-automatically-empty-cache-when-updating-postspages/#post-1679473)
 * To answer my own question: You can call w3tc_pgcache_flush() from a hook that
   you put in your functions.php.
 *     ```
       /* Flush cache when post is saved */
   
       function clearCache($post_ID)  {
   
       	if (function_exists('w3tc_pgcache_flush')) {
       		w3tc_pgcache_flush();
       	} 
   
          return $post_ID;
       }
   
       add_action('wp_insert_post_data', 'clearCache');
       ```
   
 * Found this in the thread at
    [http://wordpress.org/support/topic/plugin-w3-total-cache-w3tc_pgcache_flush-function-isnt-flushing-cache?replies=6](http://wordpress.org/support/topic/plugin-w3-total-cache-w3tc_pgcache_flush-function-isnt-flushing-cache?replies=6)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] [Plugin: W3 Total Cache] Automatically empty cache when updating posts/pages](https://wordpress.org/support/topic/plugin-w3-total-cache-automatically-empty-cache-when-updating-postspages/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-automatically-empty-cache-when-updating-postspages/#post-1679472)
 * Frederick, could you perhaps give us some leads as to how to script this ourselves?
   I am in need of a way to provide non-admin editors with a way to empty all page
   caches or even all caches.
 * If you could tell us what method to call from what context, or maybe something
   that could work on a filesystem level, that’d be great.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] [Plugin: W3 Total Cache] Can non-admin users clear the cache?](https://wordpress.org/support/topic/plugin-w3-total-cache-can-non-admin-users-clear-the-cache/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-can-non-admin-users-clear-the-cache/#post-1820618)
 * Hi,
 * Where in the FAQs can I find that manual cache reset code? I don’t see it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: W3 Total Cache] Enable Cache URIs with query string variables](https://wordpress.org/support/topic/plugin-w3-total-cache-enable-cache-uris-with-query-string-variables/)
 *  [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-enable-cache-uris-with-query-string-variables/#post-1550150)
 * Is there a workaround for this? My site relies heavily on searches, and I’d like
   to cache those search result pages.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [W3 Total Cache: Database queries "not cached"](https://wordpress.org/support/topic/w3-total-cache-database-queries-not-cached/)
 *  Thread Starter [jorisw](https://wordpress.org/support/users/jorisw/)
 * (@jorisw)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/w3-total-cache-database-queries-not-cached/#post-1792296)
 * I’m sure disk isn’t the fastest way to cache database queries, but surely there
   is some benefit to it? My pages make a lot of queries (most of which is beyond
   my control), and so does WordPress in general.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/jorisw/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jorisw/replies/page/2/?output_format=md)