JapeNZ
Forum Replies Created
-
Hi Anton,
Thank you for getting back to me.The error message when trying to run the performance test is:
The performance test didn’t return any results. This probably means you’re on a local website (which we can’t scan) or something went wrong trying to access WPMU DEV. Try again and if this error continues to appear please open a ticket with our support heroes.Homepage is https://www.comicbookshop.co.nz/ no errors though there are four warnings.
Kind regards,
JPHello again Sebastien,
I think I might have got it!I’ve added the following to ‘// Get attributes’
‘category’ => ”,and this to ‘// Default ordering args’
‘product_cat’ => $atts[‘category’],The following shortcode seems to be working!
[product_tag tags=”back-issue” category=”other-publishers” per_page=”-1″ columns=”5″ orderby=”sku” order=”asc”]If you think this might in any way break things, please let me know!
Kind regards,
JPHi Sebastien,
Thanks for getting back to me ??Bummer! lol
Do you think this is something that could be done with some coding? Might I be able to add categories to the tags array or something?
I’m certainly not much of coder, but if you think it might be doable I’ll certainly give it a go.
Any suggestions or links that might help would be appreciated.
Thanks again!
JPForum: Plugins
In reply to: [Gmail SMTP] Fatal Error since WP 4.8 upgradeHi there,
Thanks for getting back to me.
Seems it may be a plugin conflict rather than an issue with Gmail SMTP.
I’ve contacted the plugin support to hopefully get it sorted.Marking this resolved as I’m pretty sure the issue isn’t on your end.
Thanks for your help ??Kind regards,
JP- This reply was modified 7 years, 9 months ago by JapeNZ.
Hi there,
Where can download version 2.7.6 from please?
I’m getting the same error with 2.7.8.
Thank you!JP
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Custom image sizeAlso the post selection (product tags / categories) doesn’t seem to do anything with woocommerce?
Thanks again!
JP
Forum: Plugins
In reply to: [Gmail SMTP] Error phpmailerExceptionHi there,
I’m having the same error but only with mailpoet.
Woocommerce emails are sending but mailpoet newsletters are not.
I’m assuming this is a mailpoet error and have contacted them, figured I’d also check and see if it was something that needed fixing from your end.Appreciate any help you might be able to provide.
Kind regards,
JP- This reply was modified 8 years, 1 month ago by JapeNZ.
Forum: Plugins
In reply to: [WooCommerce] Shortcode to display products by product typeHi anphira,
Thank you for your help ??I think I’ve manged to get this sorted using the the code I found here
Woocommerce Product Type Shortcode and just changing the product type.//products by type 'auction' shortcode function auctions($atts) { $atts = shortcode_atts( array( 'columns' => '4', 'orderby' => 'title', 'order' => 'asc', 'ids' => '', 'skus' => '', 'product_type' => 'auction' ), $atts ); $query_args = array( 'post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'orderby' => $atts['orderby'], 'order' => $atts['order'], 'posts_per_page' => -1, 'meta_query' => WC()->query->get_meta_query(), 'tax_query' => array( array( 'taxonomy' => 'product_type', 'field' => 'slug', 'terms' => $atts['product_type'], ), ), ); if ( ! empty( $atts['skus'] ) ) { $query_args['meta_query'][] = array( 'key' => '_sku', 'value' => array_map( 'trim', explode( ',', $atts['skus'] ) ), 'compare' => 'IN' ); } if ( ! empty( $atts['ids'] ) ) { $query_args['post__in'] = array_map( 'trim', explode( ',', $atts['ids'] ) ); } return product_loop( $query_args, $atts, 'products' ); } function product_loop( $query_args, $atts, $loop_name ) { global $woocommerce_loop; $products = new WP_Query( apply_filters( 'woocommerce_shortcode_products_query', $query_args, $atts, $loop_name ) ); $columns = absint( $atts['columns'] ); $woocommerce_loop['columns'] = $columns; ob_start(); if ( $products->have_posts() ) { do_action( "woocommerce_shortcode_before_{$loop_name}_loop" ); woocommerce_product_loop_start(); while ( $products->have_posts() ) { $products->the_post(); wc_get_template_part( 'content', 'product' ); } woocommerce_product_loop_end(); do_action( "woocommerce_shortcode_after_{$loop_name}_loop" ); } woocommerce_reset_loop(); wp_reset_postdata(); return '<div class="woocommerce columns-' . $columns . '">' . ob_get_clean() . '</div>'; } add_shortcode( apply_filters( "auctions_shortcode_tag", "auctions" ), "auctions" );
If you see any improvements I should make to the code please let me know ??
Kind regards,
JPForum: Plugins
In reply to: [WooCommerce] Shortcode to display products by product type@anphira thank you for getting back to me, I don’t suppose you can point me in the right direction for ‘writing a custom shortcode to return the result of a custom query’ could you?
If you happen to know of a guide that would be very welcome ??@lorro good call, I’ve actually been doing this but as the products are only temporarily set as auctions it’s proving a bit clumsy.
Ideally if I switch the product from simple to auction it would then display on the page with the auction product type shortcode, then disappear when I revert the product back to simple.
Being able to do this would remove the chance of someone forgetting to change the category.
Thanks for your help ??Forum: Plugins
In reply to: [WooCommerce] Add tags / categories to product variationsHi @anphira,
Thank you for getting back to me ??Do you know if it’s possible to add taxonomies as a custom field?
I’m thinking if this is doable I can then use the directions in the article your provided (thank you!) to add them to the variations.Thanks again for your help ??
Kind regards,
JPForum: Plugins
In reply to: [WooCommerce] Change 'Tax' to 'GST' on customer invoices.Hi katmac_aus,
Unfortunately not, if you manage to find a fix please let me know ??Kind regards,
JPForum: Plugins
In reply to: [WooCommerce] Load WooCommerce Icons from static subdomainIn case anyone has the same trouble I had, it turns out my code wasn’t right.
Should have been like this:
define("WP_CONTENT_URL", "https://static.comicbookshop.co.nz"); define("COOKIE_DOMAIN", "www.comicbookshop.co.nz"); define("WP_PLUGIN_URL", "https://www.comicbookshop.co.nz/wp-content/plugins");
Now works fine ??
Cheers,
JPForum: Plugins
In reply to: [WooCommerce] Load WooCommerce Icons from static subdomainFair enough Mike, I don’t actually think this is a WooCommerce error but more a set up error with my subdomain.
I’ll mark as resolved and contact my host for support.Thanks for the taking the time to have a look mate ??
Cheers,
JPForum: Plugins
In reply to: [WooCommerce] Load WooCommerce Icons from static subdomainHi Mike,
There are couple of WooCommerce errors, all with the same problems:The stylesheet https://static.comicbookshop.co.nz/wp-content/plugins/woocommerce/assets/css/menu.css was not loaded because its MIME type, “text/html”, is not “text/css”.
Any idea what the problem might be?
Cheers,
JPForum: Plugins
In reply to: [WooCommerce] Load WooCommerce Icons from static subdomainHi Mike,
Screen captures can be viewed here:https://static.comicbookshop.co.nz/uploads/2016/06/Woo-Icon-errors.jpg
https://static.comicbookshop.co.nz/uploads/2016/06/Woo-Icon-errors-2.jpgCheers,
JP