• Resolved StockUnlocks

    (@stockunlocks)


    I tested on my staging server before upgrading and found that most everything worked with my custom plugin. I was able to tweak some things before going live.

    Thanks for the reminders to test all updates/upgrades before going live! I know this has helped me to avoid many headaches.

    There is one small thing that I’m still having an issue with. After clicking on “Place order”, the “Order details” page appears. My plugin adds custom fields to products. Instead of displaying those actual custom fields names as labels, I used to do something here to create more meaningful labels for viewing (pre WC v3.0.x):

    add_filter( 'woocommerce_order_items_meta_display', ...

    After updating to 3.0.x, I lost the functionality for modifying labels and their corresponding values that appear on the “Order details” page (also appears in the email confirmations).

    After updating, I followed the advice to replace the deprecated:

    add_action( 'woocommerce_add_order_item_meta',

    with:

    add_action('woocommerce_checkout_create_order_line_item',

    My custom fields are carried over just fine into the database. I believe that the display problem is related to replacing the deprecated hook.

    Is there an equivalent replacement for add_filter( 'woocommerce_order_items_meta_display', ... that could allow me to customize the labels as they appear on the Order details page and the emails that are sent?

    Thanks,

    Henry

    
    ### WordPress Environment ###
    
    Home URL: https://www.stockunlocks.com
    Site URL: https://www.stockunlocks.com
    WC Version: 3.0.3
    Log Directory Writable: ?
    WP Version: 4.7.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.19
    PHP Post Max Size: 128 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 4000
    cURL Version: 7.45.0
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.54 - We recommend a minimum MySQL version of 5.6. See: WordPress requirements
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.0.3
    WC Database Prefix: zqcyxgaf_
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Security ###
    
    Hide errors from visitors: ?
    
    ### Active Plugins (25) ###
    
    Akismet Anti-Spam: by Automattic – 3.3
    bbPress: by The bbPress Community – 2.5.12
    iThemes Security: by iThemes – 6.2.1
    Contact Form 7: by Takayuki Miyoshi – 4.7
    GetBowtied Tools: by GetBowtied – 1.3.2
    Go Pricing - WordPress Responsive Pricing Tables: by Granth – 3.3.6
    Google XML Sitemaps: by Arne Brachhold – 4.0.8
    Icegram - Popups, Optins, CTAs & lot more...: by icegram – 1.10.3
    WPBakery Visual Composer: by Michael M - WPBakery.com – 5.1.1
    Redirection: by John Godley – 2.5
    StockUnlocks: by StockUnlocks – 1.0.9
    TablePress Extension: DataTables ColumnFilterWidgets: by Tobias B?thge – 1.7
    TablePress Extension: DataTables Sorting plugins: by Tobias B?thge – 1.0
    TablePress Extension: Pagination Length Change "All" entry: by Tobias B?thge – 1.2
    TablePress Extension: Responsive Tables: by Tobias B?thge – 1.4
    TablePress Extension: Row Filtering: by Tobias B?thge – 1.3
    TablePress Extension: Table Auto Update: by Tobias B?thge – 1.2
    TablePress Extension: Table Row Order: by Tobias B?thge – 1.2
    TablePress: by Tobias B?thge – 1.8
    TinyMCE Advanced: by Andrew Ozz – 4.4.3
    WooCommerce: by Automattic – 3.0.3
    WordPress Importer: by wordpressdotorg – 0.6.3
    Yoast SEO: by Team Yoast – 4.6
    WP Maintenance Mode: by Designmodo – 2.0.9
    MailPoet Newsletters: by MailPoet – 2.7.8
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #1539 - /shop/
    Cart: #309 - /cart/
    Checkout: #310 - /checkout/
    My account: #311 - /my-account/
    
    ### Theme ###
    
    Name: Shopkeeper
    Version: 2.0.4
    Author URL: https://www.getbowtied.com/
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: shopkeeper/woocommerce/archive-product.php
    shopkeeper/woocommerce/cart/cart-empty.php
    shopkeeper/woocommerce/cart/mini-cart.php
    shopkeeper/woocommerce/checkout/form-billing.php
    shopkeeper/woocommerce/checkout/form-checkout.php
    shopkeeper/woocommerce/checkout/form-coupon.php
    shopkeeper/woocommerce/checkout/form-login.php
    shopkeeper/woocommerce/checkout/form-shipping.php
    shopkeeper/woocommerce/content-product.php
    shopkeeper/woocommerce/content-product_cat.php
    shopkeeper/woocommerce/content-single-product.php
    shopkeeper/woocommerce/global/quantity-input.php
    shopkeeper/woocommerce/global/sidebar.php
    shopkeeper/woocommerce/global/wrapper-end.php
    shopkeeper/woocommerce/global/wrapper-start.php
    shopkeeper/woocommerce/loop/loop-end.php
    shopkeeper/woocommerce/loop/loop-start.php
    shopkeeper/woocommerce/loop/no-products-found.php
    shopkeeper/woocommerce/myaccount/form-login.php
    shopkeeper/woocommerce/myaccount/my-downloads.php
    shopkeeper/woocommerce/order/form-tracking.php
    shopkeeper/woocommerce/single-product/product-image.php
    shopkeeper/woocommerce/single-product/product-thumbnails.php
    shopkeeper/woocommerce/single-product/tabs/tabs.php
    shopkeeper/woocommerce/single-product-reviews.php
    shopkeeper/woocommerce/single-product.php
    
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce_order_items_meta_display hook no longer working’ is closed to new replies.