• Resolved jstallard

    (@jstallard)


    Woocommerce 2.5.5
    Twenty Twelve Theme
    All plugins except Woocommerce removed

    I have a product with three variations (at campfirecooking.com.au). I enter product prices into ‘Regular Price’, and when I save changes, the prices disappear.

    Chrome debug says:
    Notice: Undefined index: value in /home/campfire/public_html/wp-admin/includes/post.php on line 286

    Notice: Undefined index: value in /home/campfire/public_html/wp-admin/includes/post.php on line 286

    Notice: Undefined index: _sku in /home/campfire/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 847

    Warning: Cannot modify header information – headers already sent by (output started at /home/campfire/public_html/wp-admin/includes/post.php:286) in /home/campfire/public_html/wp-admin/post.php on line 197

    Warning: Cannot modify header information – headers already sent by (output started at /home/campfire/public_html/wp-admin/includes/post.php:286) in /home/campfire/public_html/wp-includes/pluggable.php on line 1171

    Thanks
    Jackie

    ### WordPress Environment ###
    
    Home URL: https://campfirecooking.com.au
    Site URL: https://campfirecooking.com.au
    WC Version: 2.5.5
    Log Directory Writable: ✔
    WP Version: 4.5.1
    WP Multisite: –
    WP Memory Limit: 128 MB
    WP Debug Mode: –
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.20
    PHP Post Max Size: 68 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    SUHOSIN Installed: ✔
    MySQL Version: 5.5.49
    Max Upload Size: 10 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.5.5
    :
    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 (1) ###
    
    WooCommerce: by WooThemes – 2.5.5
    
    ### Settings ###
    
    Force SSL: –
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #112 - /shop/
    Cart: #97 - /cart/
    Checkout: #99 - /checkout/
    My Account: #101 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Twelve
    Version: 2.0
    Author URL: https://wordpress.org/
    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 theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    2 things to check;

    1. In chrome, View > Developer > Javascript console. Are any errors listed before or after save? You may need to check the ‘persist log’ checkbox to keep them visible.

    2. What are the attribute names and value for this variation? If they are very long, some servers won’t post this amount of data in the request, so the attribute values will need shortening.

    Thread Starter jstallard

    (@jstallard)

    Hi Mike

    Thanks for your reply

    No javascript errors listed in console.

    To begin with I had this error several times – WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403.

    That stopped when I disabled Jetpack.

    I shortened the attribute names and value. There are only 3 variations – ‘One Stacker, Two Stackers, Three Stackers’. Attribute name is ‘Please Choose’

    Thanks
    Jackie

    Thread Starter jstallard

    (@jstallard)

    Hi Mike

    Found the problem.

    I can’t save the product price unless the product variation SKU field is filled in.

    I tried the woocommerce-product-sku-generator plugin. That didn’t help.

    It won’t work if the parent SKU is filled in and product variation SKU is blank. The product variation SKU must be set explicitly.

    Thanks
    Jackie

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot add product variation prices’ is closed to new replies.