show multiple product photos on WooCommerce single page
show multiple product photos on WooCommerce single page
show multiple product photos on WooCommerce single page
It’s supposed to be like that. 3.3 changes the way images work. Instead of setting a width and height you set a width and aspect ratio: https://woocommerce.wordpress.com/2017/12/11/wc-3-3-image-size-improvements/ So if you want square cropped images that are 300 pixels wide (for example), set the width to 300 and cropping to 1:1.
How to check which shortcode is using my template?
I tried 5 pages on your site these took 20 to 30 seconds to load. If I visited the page again even in a different browser (with no local cache of the page) the time reduced to sub 2 seconds. Possibly due to these pages having no/expired cache on first visit, resulting in WPSC caching … Read more
Here is the solution i’ve found : in wordpress-importer plugin function process_posts : // try to use _wp_attached file for upload folder placement to ensure the same location as the export site // e.g. location is 2003/05/image.jpg but the attachment post_date is 2010/09, see media_handle_upload() $postdata[‘upload_date’] = $post[‘post_date’]; if ( isset( $post[‘postmeta’] ) ) { … Read more
So you want only the “first” products having a unique product_cip? I think a direct MySQL Query may be quicker: function get_all_product_in_selected_category($atts){ // Get the category if(!(isset($atts[‘category_id’]) || !is_numeric($atts[‘category_id’])){ return 0; } $catsearched = $atts[‘category_id’]; global $wpdb; $productssql = “SELECT min($wpdb->posts.ID), meta_value FROM $wpdb->posts INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON … Read more
Remove the product link from the product name on MY Account Downloads // Display the product name without the link add_action( ‘woocommerce_account_downloads_column_download-product’, ‘custom_account_downloads_product_column’ ); function custom_account_downloads_product_column( $download ){ // Display the product name without the link echo esc_html( $download[‘product_name’] ); }
creating number of database entries based on users numerical input
One easy way that comes to mind is to hide the elements in the mobile view via CSS using the nth-child selector. That way, all five elements are still rendered in the source code, but only two of them are visible on devices below a certain resolution. Example code assuming your product items are elements … Read more
It’s a little hackish and should be completed but it works for now. Also I had a chat with the people from WooThemes and they told me this feature should be available in the following months within the plugin, so this will become obsolete. //Hack – Shows only user’s own resources if the user does … Read more