Viewing 30 posts - 1 through 30 (of 30 total)
  • Author
    Posts
  • #449244

    I have just updated to latest WP, WooComm and Propulsion 2.8 with a child theme.
    In the past I had overrides in…

    • /themes/propulsion/woocommerce/single-product/product-image.php
    • /themes/propulsion/woocommerce/single-product/product-thumbnails.php

    …that now no longer work, but overrides to…

    • /themes/propulsion/woocommerce/single-product/related.php

    …for some reason do.

    Is there a remove_action / add_action somewhere that is stopping me from editing those files now?

    Thanks in advance.

    #449796

    Hi!

    I suppose you have those custom templates in your child theme (not in /wp-content/propulsion/), let’s discard if it is the theme causing the issue; open the parent theme functions.php and comment this line:

    require_once( 'config-woocommerce/config.php' ); 
    

    Regards,
    Josue

    #449830

    Thanks Josue.
    When I commented out that line the site came up with…

    Fatal error: Call to undefined function avia_woocommerce_enabled() in …/wp-content/themes/propulsion/includes/admin/register-widget-area.php on line 45

    And sorry for the confusion. I do have the overrides sitting in the child theme folder like…
    /themes/propulsion-child/woocommerce/single-product/product-image.php

    • This reply was modified 2 years, 5 months ago by  seank.
    #449899

    Hm, let’s try something different, instead of commenting that line in functions.php, open config-woocommerce/config.php and comment/remove from line 80 to line 148 (these are the template hooks made by the theme).

    Best regards,
    Josue

    #449910

    When I remove those lines of code the layout breaks quite a bit.
    But I can see my override files again are being displayed.

    #449977

    Hm, try removing just line 100:

    remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );
    
    #450394

    Removing line 100 had no discernible effect.
    So I removed line 101 instead and I could then see the product-image.php oveerride displaying, in addition to the existing product image. Also under the image I get the following warning…

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘avia_woocommerceproduct_prev_image_after’ not found or invalid function name in …/wp-includes/plugin.php on line 496

    Then I tried removing 100 and 101 and I could then see the product-image.php and product-thumbnails.php overrides, with the above warning still.

    #450946
    This reply has been marked as private.
    #451468

    Hi!

    Can you please create us a temporary FTP / SFTP account and a WP account? post them here as a private reply.

    Best regards,
    Josue

    #451506
    This reply has been marked as private.
    #452888
    This reply has been marked as private.
    #452951

    Hey Sean,

    You’d need to mix your custom template code with the Propulsion WC filters set in /config-woocommerce/config.php, specifically avia_woocommerceproduct_prev_image in line 337-391.

    Regards,
    Josue

    #452959
    This reply has been marked as private.
    #452977

    Am I supposed to move all the product images to this new meta area?

    Yes, that would be ideal procedure, the theme expects the gallery of images to be set there (i know this can be confusing but back in the day when Propulsion was released WC did not include a “Product Gallery” meta so the theme had to do that itself).

    Regards,
    Josue

    #452982
    This reply has been marked as private.
    #452987

    Hold on, i think i managed to mix your product thumbnails template code with the Propulsion avia_woocommerceproduct_prev_image filter, check it

    Regards,
    Josue

    • This reply was modified 2 years, 5 months ago by  Josue.
    #452993
    This reply has been marked as private.
    #452995

    Here’s how i see it – http://a.pomf.se/wbpemk.png

    Best regards,
    Josue

    #452997
    This reply has been marked as private.
    #453001

    That product doesn’t have a Product Gallery – http://a.pomf.se/rvukzk.png

    Cheers!
    Josue

    #453002
    This reply has been marked as private.
    #453018

    There’s definitely something weird with that Product (get_gallery_attachment_ids doesn’t return anything) but it’s on WooCommerce level because i did (Purchase code hidden if logged out) /#post-449899″>this to discard if the issue was coming from the theme filters but the result was the same (no thumbnails). Does this happen with other Products? have you tried re-setting the Product Gallery?

    Best regards,
    Josue

    #453019
    This reply has been marked as private.
    #453023
    This reply has been marked as private.
    #453025

    Re-saving the Product seems to fix it, check:
    http://medistore.com.au/product/ (Purchase code hidden if logged out) /

    Best regards,
    Josue

    #453106
    This reply has been marked as private.
    #453135
    This reply has been marked as private.
    #453396

    Hm, i don’t note a difference between those two links to be honest.

    Best regards,
    Josue

    #453493
    This reply has been marked as private.
    #453495

    Great, let me know if there is anything else i can help with.

    Regards,
    Josue

Viewing 30 posts - 1 through 30 (of 30 total)

You must be logged in to reply to this topic.