Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter davey1975

    (@davey1975)

    Here is my code but it doesn’t show any meta data:

    <?php 
    // Get Brand of Shoe custom field value
    $brand_of_shoe = isset($item['meta_data']['65d7a9ddeeef1']) ? $item['meta_data']['65d7a9ddeeef1'] : '';
    if (!empty($brand_of_shoe)): ?>
        <div>Brand of Shoe: <?php echo esc_html($brand_of_shoe); ?></div>
    <?php endif; ?>
    
    <?php 
    // Get Shoe Size custom field value
    $shoe_size = isset($item['meta_data']['65d7aab94cdbd']) ? $item['meta_data']['65d7aab94cdbd'] : '';
    if (!empty($shoe_size)): ?>
        <div>Shoe Size: <?php echo esc_html($shoe_size); ?></div>
    <?php endif; ?>

    I’m getting a similar error message.
    any help would be appreciated. seems to be coming from the cart-totals file?
    CRITICAL Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, float given in /var/www/xxx.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:353 intext:”Plugin: WooCommerce”

    actually i received a fatal error after that fix.:

    ?Fatal error: Uncaught Error: syntax error, unexpected variable “$mime_types”, expecting “function” or “const”
    in?C:\websites\mysite.com\wp-content\plugins\w3-total-cache\BrowserCache_Environment.php?on line?70

    Call stack:

    1. w3tc_class_autoload()
      wp-content/plugins/w3-total-cache/Root_Environment.php:172
    2. W3TC\Root_Environment::get_handlers()
      wp-content/plugins/w3-total-cache/Root_Environment.php:26
    3. W3TC\Root_Environment::fix_in_wpadmin()
      wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php:1017
    4. W3TC\Generic_Plugin_Admin::admin_notices()
      wp-includes/class-wp-hook.php:308
    5. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    6. WP_Hook::do_action()
      wp-includes/plugin.php:517
    7. do_action()
      wp-admin/admin-header.php:303
    8. require_once()
      wp-admin/plugins.php:605
Viewing 3 replies - 1 through 3 (of 3 total)