Shop pictures now text links with 2.5
-
Hi,
I updated to 2.5 and for some reason the product category pages show text links rather than thumbnails. Is there a way to change this?
-
Are you using a product archive customiser plugin? I’ve seen that do this before.
Hi Mike,
Thanks for your reply. I am using WooCommerce Product Archive Customiser but even with all the plug ins turned off I still have the problem.
In Settings > Reading, ensure site and home URLs match.
Posting a system status log would also be helpful to stop me guessing your setup ??
Hi Mike,
The wordpress and site urls match.
The Log:
### WordPress Environment ###
Home URL: https://your-finder.com
Site URL: https://your-finder.com
WC Version: 2.5.0
Log Directory Writable: ? /home/yourfinder/public_html/wp-content/uploads/wc-logs/
WP Version: 4.4.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
Language: en_US### Server Environment ###
Server Info: Apache
PHP Version: 5.4.40
PHP Post Max Size: 8 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
SUHOSIN Installed: –
MySQL Version: 5.5.47
Max Upload Size: 8 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 2.5.0
:
woocommerce_sessions: ?
woocommerce_api_keys: ?
woocommerce_attribute_taxonomies: ?
woocommerce_termmeta: ?
woocommerce_downloadable_product_permissions: ?
woocommerce_order_items: ?
woocommerce_order_itemmeta: ?
woocommerce_tax_rates: ?
woocommerce_tax_rate_locations: ?### Active Plugins (14) ###
Contact Form 7: by Takayuki Miyoshi – 4.3.1
Duplicate Post: by Enrico Battocchi – 2.6
WPBakery Visual Composer: by Michael M – WPBakery.com – 4.7.4
Login With Ajax: by Marcus Sykes – 3.1.5
MultiDomain: by Nathan Carnes – 1.0
PDF Embedder: by Dan Lester – 2.4.1
Recent Tweets Widget: by Noah Kagan – 1.6.4
Revolution Slider: by ThemePunch – 5.0.9
s2Member Framework: by s2Member / WebSharks
Inc. – 160120Fast Secure Contact Form: by Mike Challis
Ken Carlson – 4.0.39Simple File Downloader: by eugenealegiojo – 1.0.4
WooCommerce: by WooThemes – 2.5.0
Email Login: by Beau Lebens – 4.6.4
YITH Woocommerce Request A Quote: by Yithemes – 1.2.0### Settings ###
Force SSL: –
Currency: ZAR (R)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2### API ###
API Enabled: ?
API Version: 3.1.0### WC Pages ###
Shop Base: #36386 – /request-quote/
Cart: #36478 – /cart/
Checkout: #36479 – /checkout/
My Account: #36480 – /my-account/### Taxonomies ###
Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)### Theme ###
Name: The7.2
Version: 2.3.5
Author URL: https://dream-theme.com/
Child Theme: ? – If you’re modifying WooCommerce on a parent theme you didn’t build personally
then we recommend using a child theme. See: How to create a child themeWooCommerce Support: ?
### Templates ###
Overrides: dt-the7/woocommerce/cart/cart.php
dt-the7/woocommerce/cart/shipping-calculator.php
dt-the7/woocommerce/content-product.php
dt-the7/woocommerce/content-product_cat.php
dt-the7/woocommerce/loop/loop-end.php
dt-the7/woocommerce/loop/loop-start.php
dt-the7/woocommerce/loop/orderby.phpI’m going to bet you that dt-the7/woocommerce/content-product.php is the problem here, and the reason you’re not being show that its an out of date template is that they have hacked the template version numbers…
Check or send that file to be certain ??
Hi Mike,
I did get a message to replace content-product.php and content-product_cat.php and dragged copies from the Woocommerce templates.
Here is the content-product.php that I put into the7/woocommerce folder:
<?php /** * The template for displaying product content within loops * * This template can be overridden by copying it to yourtheme/woocommerce/content-product.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). * will need to copy the new files to your theme to maintain compatibility. We try to do this. * as little as possible, but it does happen. When this occurs the version of the template file will. * be bumped and the readme will list any important changes. * * @see https://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.5.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $product, $woocommerce_loop; // Store loop count we're currently on if ( empty( $woocommerce_loop['loop'] ) ) { $woocommerce_loop['loop'] = 0; } // Store column count for displaying the grid if ( empty( $woocommerce_loop['columns'] ) ) { $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 ); } // Ensure visibility if ( ! $product || ! $product->is_visible() ) { return; } // Increase loop count $woocommerce_loop['loop']++; // Extra post classes $classes = array(); if ( 0 === ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) { $classes[] = 'first'; } if ( 0 === $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) { $classes[] = 'last'; } ?> <li <?php post_class( $classes ); ?>> <?php /** * woocommerce_before_shop_loop_item hook. * * @hooked woocommerce_template_loop_product_link_open - 10 */ do_action( 'woocommerce_before_shop_loop_item' ); /** * woocommerce_before_shop_loop_item_title hook. * * @hooked woocommerce_show_product_loop_sale_flash - 10 * @hooked woocommerce_template_loop_product_thumbnail - 10 */ do_action( 'woocommerce_before_shop_loop_item_title' ); /** * woocommerce_shop_loop_item_title hook. * * @hooked woocommerce_template_loop_product_title - 10 */ do_action( 'woocommerce_shop_loop_item_title' ); /** * woocommerce_after_shop_loop_item_title hook. * * @hooked woocommerce_template_loop_rating - 5 * @hooked woocommerce_template_loop_price - 10 */ do_action( 'woocommerce_after_shop_loop_item_title' ); /** * woocommerce_after_shop_loop_item hook. * * @hooked woocommerce_template_loop_product_link_close - 5 * @hooked woocommerce_template_loop_add_to_cart - 10 */ do_action( 'woocommerce_after_shop_loop_item' ); ?> </li>
The theme may be removing our image hooks and outputting the images in the previous template. Did the issue occur before or after you copied those files across?
Hi Mike,
The problem started when I updated to Woocommerce 2.5 I updated the files later but that had no effect.
v.3.2.2 (Jan 22, 2015)
Do their update.
Hi Mike,
Thanks, updating to v. 3.2.2 fixed it.
- The topic ‘Shop pictures now text links with 2.5’ is closed to new replies.