Digital experiences for all disciplines
Forum Replies Created
-
-
October 6, 2014 at 11:04 am in reply to: product and 1st gallery images displayed instead of Product Image Only #117539
Updates completed, issue resolved.
Have same problem as e_van, theme is updated to 1.93, WC Version 2.2.4 WP version 4.0
Following 2 lines are generated in error.log for each order:
[04-Oct-2014 15:03:13 UTC] PHP Fatal error: Call to undefined method WC_Order::has_status() in /home/boardsc/public_html/wp-content/themes/neighborhood/woocommerce/checkout/thankyou.php on line 32
[04-Oct-2014 15:03:15 UTC] PHP Fatal error: Call to undefined method WC_Order::has_status() in /home/boardsc/public_html/wp-content/themes/neighborhood/woocommerce/checkout/thankyou.php on line 32Thanks, Bob
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hi Rui,
It looks like theme options are just reverted to the defaults.
I get no error when trying to import them, it asks me to save changes and then doesn’t appear to make any difference…
Thanks
Emile
September 15, 2014 at 2:38 pm in reply to: product and 1st gallery images displayed instead of Product Image Only #110783We will upgrade to woocommerce 2.2 and check images then, if any issues, will implement code in this topic.
Happy to close.
Thanks for all your help.
Hi, we are going to upgrade to Woocommerce 2.2 so happy to close this topic at the moment.
No, still on 2.1.12, bit concerned regards updating =having seen some of the forum topics regards problems that have arisen.
Should we make change suggested by Laranz?
September 15, 2014 at 11:03 am in reply to: product and 1st gallery images displayed instead of Product Image Only #110646This is what we have in lines 49-64 of CHILD THEME/woocommerce/content-product.php;
<li <?php post_class( $classes ); ?>>
<?php do_action( ‘woocommerce_before_shop_loop_item’ ); ?>
<?php if ($product_overlay_transition) {
if ($overlay_transition_type == “slideleft”) { ?>
<figure class=”product-transition-alt”>
<?php } else if ($overlay_transition_type == “fade”) { ?>
<figure class=”product-transition-fade”>
<?php } else { ?>
<figure class=”product-transition”>
<?php }
?>
<?php } else { ?>
<figure>
<?php } ?>Does your code replace this? need to go in before or after?
Sorry to be a pain, am fairly IT savvy but not familiar with PHP and site developer is not currently available.
September 14, 2014 at 12:55 pm in reply to: product and 1st gallery images displayed instead of Product Image Only #110419As PHP upload not allowed, have submitted as .TXT
Attachments:
You must be logged in to view attached files.September 14, 2014 at 12:51 pm in reply to: product and 1st gallery images displayed instead of Product Image Only #110417Here is structure and files in child theme folders;
public_html/wp-content/themes/neighborhood-child
Files; functions.php
Style.csspublic_html/wp-content/themes/neighborhood-child/woocommerce
Files; content-product.php
public_html/wp-content/themes/neighborhood-child/woocommerce/cart
Files; cart-shipping.php
cart.phpCopies of the files attached.
Attachments:
You must be logged in to view attached files.September 13, 2014 at 10:13 am in reply to: product and 1st gallery images displayed instead of Product Image Only #110316Here is function.php in the child theme;
<?php
add_filter(‘comment_form_default_fields’, ‘unset_url_field’);
function unset_url_field($fields){
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}add_filter( ‘woocommerce_price_trim_zeros’, ‘wc_hide_trailing_zeros’, 10, 1 );
function wc_hide_trailing_zeros( $trim ) {
// set to false to show trailing zeros
return true;
}add_filter( ‘wc_product_enable_dimensions_display’, ‘__return_false’ );
Please advise if this is OK or should additional code be added.
September 11, 2014 at 4:28 pm in reply to: product and 1st gallery images displayed instead of Product Image Only #109728We have content-product.php in public_html/wp-content/themes/neighborhood-child/woocommerce and a new version in public_html/wp-content/themes/neighborhood/woocommerce after update today.
Please be specific regards what needs copying, e.g. complete file or just some code.
September 10, 2014 at 1:19 pm in reply to: product and 1st gallery images displayed instead of Product Image Only #109102http://4boards.co.uk/shop/sup/
you will see all the images on this page have the product image and the 1st gallery image displayed together.
-