how to add weight field on checkout page in Jigoshop Plugin

Simply use a callback that you hook to wp_mail(). The first line of the function: extract( apply_filters( ‘wp_mail’, compact( ‘to’, ‘subject’, ‘message’, ‘headers’, ‘attachments’ ) ) The third argument $message is what you want to alter. Just return an array in the callback where you merge the original with your alterations.

Jigoshop search taxonomy

You need to change the query settings before it is run. I’m assuming that you have a search.php page, but if not I’ll tell you where to put the code at the end. In search.php add this to the very top of the file (above the get_header() call) – $args = array( ‘posts_per_page’ => get_option(‘posts_per_page’), … Read more

Fatal error with jigoshop and woocommerce

Woocommerce is a fork (modified copy) of Jigoshop. You can run just one of those plugins, not both. The error is a result of declaring the same function declared two times, because this function was not changed in Woocommerce. The pages installed by Jigoshop were probably removed during the uninstall process. You will either find … Read more

Using Jigoshop, how can I add a custom post type to the cart via code?

Short answer: You can’t. Long answer: Jigoshop is designed to only allow checkout of our “product” CPT. In reality, you should have been looking at Jigoshop’s template_functions.php file which has our add to cart functions. For security reasons, Jigoshop has checks, absolutely everywhere that the CPT is in fact Jigoshop’s own product CPT. Source: I’m … Read more

Custom post type (Jigoshop): unexpected value for $category_id (via $term->term_taxonomy_id) on live server

For a Category landing page that only shows each ‘product_cat’ image that links to a separate page for each category, I have the following template enclosed. It doesn’t use $term->term_taxonomy_id but rather $term->term_id. Not sure if it will help, but look it over for differences from what you have. <?php /** * Product taxonomy template … Read more

Taxonomy Tag Conditionals

If you want to use an entirely different template, you could filter 404_template and check query vars for a specific taxonomy: function wpa83050_404_template( $template=”” ){ global $wp_query; if( isset( $wp_query->query_vars[‘product_cat’] ) ) $template = locate_template( array( “product_taxonomy-no.php”, $template ), false ); return $template; } add_filter( ‘404_template’, ‘wpa83050_404_template’ ); You could also just put logic similar … Read more

How to modify product page for Jigoshop

You need to edit the loop-shop.php file under template (remember the file can be auto updated, so you need a backup.) <?php global $columns, $per_page; do_action(‘jigoshop_before_shop_loop’); $loop = 0; if (!isset($columns) || !$columns) $columns = apply_filters(‘loop_shop_columns’, 4); //if (!isset($per_page) || !$per_page) $per_page = apply_filters(‘loop_shop_per_page’, get_option(‘posts_per_page’)); //if ($per_page > get_option(‘posts_per_page’)) query_posts( array_merge( $wp_query->query, array( ‘posts_per_page’ => … Read more

How to query a custom post type with a taxonomy filter but display post type archive page?

The simplest way is, in all honesty, to hook into wp_title and change things, and just be aware that the warnings are there but not showing in production (because you’ve property configured your server). What follows is a kind of hacky solution. If you take a look at get_queried_object… <?php function get_queried_object() { global $wp_query; … Read more