• Resolved klaggy

    (@klaggy)


    I’ve read other posts but still have the issue of products with variations that don’t show the prices since the update to 2.4.6

    There’s no variable.php file with that theme (The Retailer). The interesting thing is that I tried what an other user said: Edit the product with variation, click on Update and tadaa, the price shows up but after spending two hours doing that and coming back the next day, all prices are gone!!! So I guess they were stored as part of the session variables?

    Any suggestions? Site is going live in a few days and stress level is going up… 🙁

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

Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    No, prices are not stored in sessions.

    Which price is not showing? And have you tried a non-retailer theme to see if its controls price output?

    Thread Starter klaggy

    (@klaggy)

    That is so strange, it did it again, prices were showing up during the time I updated the product and today, price is gone… nobody else is working on the website but me… Any idea how that can be happening?

    All products with variations don’t show the prices and it used to show the price bracket like “$330 – $385” before.

    Yes, I tried a non retailer theme and prices don’t show up either but it shows a “Select options” instead that doesn’t show on the Retailer theme.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Post your system status report.

    I’m also using the same theme, The Retailer by GetBowTied. I’m not having any issues with my variables though.

    Woocommmerce: Version 2.4.6
    The Retailer: Version: 2.3.4 (skipping 2.3.5 as I have my own purchased copy of VC and I don’t use the Revolution Slider)
    Visual Composer: 4.7

    I’m using a plugin called “WooCommerce Advanced Bulk Edit” from CodeCanyon to manage my products/variables. Makes life easier. Perhaps that’s why I haven’t experienced the same issues..

    Thread Starter klaggy

    (@klaggy)

    Here’s the system status report, and yes, I’ve tried to deactivate all plugins and the problem still persists…

    ### WordPress Environment ###

    Home URL: http://dev.sonjapicard.com
    Site URL: http://dev.sonjapicard.com
    WC Version: 2.4.6
    Log Directory Writable: ✔ /home/sonja2015/public_html/wp-content/uploads/wc-logs/
    WP Version: 4.3
    WP Multisite: –
    WP Memory Limit: 96 MB
    WP Debug Mode: –
    Language: en

    ### Server Environment ###

    Server Info: Apache/2.4.12
    PHP Version: 5.4.43
    PHP Post Max Size: 48 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.42
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Remote Post: ✕ wp_remote_post() failed. PayPal IPN won’t work with your server. Contact your hosting provider. Error: transfer closed with 191 bytes remaining to read
    Remote Get: ✔

    ### Database ###

    WC Database Version: 2.4.6
    :
    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 (15) ###

    AJAX Thumbnail Rebuild: by junkcoder – 1.12
    Contact Form 7: by Takayuki Miyoshi – 4.2.2
    Envato WordPress Toolkit: by Envato – 1.7.3
    WooCommerce – Gift Cards: by WP Ronin – 2.1.1
    HTML Javascript Adder: by Aakash Chakravarthy – 3.9
    WPBakery Visual Composer: by Michael M – WPBakery.com – 4.7
    MailChimp for WordPress Lite: by ibericode – 2.3.9
    Regenerate Thumbnails: by Viper007Bond – 2.2.4
    Revolution Slider: by ThemePunch – 5.0.6
    VFB Pro: by Matthew Muro – 3.1.3
    WooCommerce Header Category Image: by Get Bowtied – 1.0.0
    WooCommerce Promotion Manager: by IndoWebKreasi – 1.2.0
    WooCommerce Table Rate Shipping: by Bolder Elements – 3.6.4
    WooCommerce: by WooThemes – 2.4.6
    Wordfence Security: by Wordfence – 6.0.15

    ### Settings ###

    Force SSL: –
    Currency: CAD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2

    ### API ###

    API Enabled: ✔
    API Version: 3.0.0

    ### WC Pages ###

    Shop Base: #4 – /shop/
    Cart: #5 – /cart/
    Checkout: #6 – /checkout/
    My Account: #7 – /my-account/

    ### Taxonomies ###

    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    ### Theme ###

    Name: The Retailer Child
    Version: 1.0.0
    Author URL:
    Child Theme: ✔
    Parent Theme Name: The Retailer
    Parent Theme Version: 2.3.4
    Parent Theme Author URL: http://www.getbowtied.com/
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: theretailer/woocommerce/archive-product.php
    theretailer/woocommerce/cart/cart-empty.php
    theretailer/woocommerce/cart/cart-shipping.php
    theretailer/woocommerce/cart/cart-totals.php
    theretailer/woocommerce/cart/cart.php
    theretailer/woocommerce/cart/cross-sells.php
    theretailer/woocommerce/cart/mini-cart.php
    theretailer-child/woocommerce/content-product.php
    theretailer/woocommerce/content-product_cat.php
    theretailer/woocommerce/content-single-product.php
    theretailer/woocommerce/global/breadcrumb.php
    theretailer/woocommerce/global/quantity-input.php
    theretailer/woocommerce/loop/orderby.php
    theretailer/woocommerce/loop/price.php
    theretailer/woocommerce/loop/result-count.php
    theretailer/woocommerce/myaccount/form-edit-account.php
    theretailer/woocommerce/myaccount/form-login.php
    theretailer/woocommerce/order/form-tracking.php
    theretailer/woocommerce/single-product/meta.php
    theretailer/woocommerce/single-product/price.php
    theretailer/woocommerce/single-product/product-image.php
    theretailer/woocommerce/single-product/product-thumbnails.php
    theretailer/woocommerce/single-product/rating.php
    theretailer/woocommerce/single-product/related.php
    theretailer/woocommerce/single-product/review.php
    theretailer/woocommerce/single-product/short-description.php
    theretailer/woocommerce/single-product/tabs/additional-information.php
    theretailer/woocommerce/single-product/tabs/description.php
    theretailer/woocommerce/single-product/tabs/tabs.php
    theretailer/woocommerce/single-product/title.php
    theretailer/woocommerce/single-product/up-sells.php
    theretailer/woocommerce/single-product-reviews.php
    theretailer/woocommerce/single-product.php

    Thread Starter klaggy

    (@klaggy)

    @the988 You have product variations and prices show up? Do you have different prices for variations? Does it show the min and max price like: $min – $max?

    Thanks,

    Short answer: yes, yes and yes.

    My products all have variations with different prices and the image changes according to each variation as well. I did have the min-max show up but I disliked that fact and added a custom code to modify it. It now says “from xx price”.

    This is the code that I have added to the theme’s functions.php file.

    /********************** Variable Product: Add From | Remove Price Range **********************/
    add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
    function custom_variation_price( $price, $product ) {
    $price = '';
    if ( !$product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) $price .= '<span class="from">' . _x('From', 'min_price', 'woocommerce') . ' </span>';
    $price .= woocommerce_price($product->min_variation_price);
    return $price;
    }
    /*********************************************************************************************/
    Thread Starter klaggy

    (@klaggy)

    Hi Mike,

    I tried to re-upload the Woocommerce plugin in case one of the files was corrupted but still the same. It’s so bizzare that prices show up after I simply hit Update but then the price disappear after a while… Any suggestions where I should look?

    Thanks,

    Thread Starter klaggy

    (@klaggy)

    Ok, I found the origin of the problem, it’s the function get_price_html( ) in class-wc-product-variable.php. The first condition: if ( $this->get_price() === ” || empty( $prices[‘price’] ) ) { doesn’t get triggered even though the variations prices are not empty…

    Could there be a conflict in the PHP version?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Does “WooCommerce Promotion Manager” change variation prices?

    Hi i also am having this issue and I had promotions manager installed as well. After removing promotions manager however I am still finding variable type products are removing their prices after a day.

    All this happened after updating both woocommerce and installing that promotions manage plugin. So its hard to say whether its something that has come from promotions manager plugin or whether its an update problem.

    I’ve tried running with default themes but still same issues.

    I have two sites, both running the exact same install versions, only one has “Woocommerce Promotion Manager” and is suffering from this issue, the other never had that plugin installed and variation prices show quite well.

    I have now turned the plugin off and after updating each product the price is showing correctly again.

    Hello

    I am having a similiar issue on a site using the WooCommerce CSV Import Suite. When running the importer the variable prices all disappear until I manually go in and update the product – the data and all variable prices are stored correctly in the backend, but when running the importer it seems to reset something and the prices all disappear. It’s only after manually updating the product that the variable prices register on the frontend.

    I wasn’t having this issue until the last couple of WooCommerce updates.

    Tried testing for plugin conflicts etc etc no luck.

    Sometimes, seemingly completely randomly, the prices do work after import, and sometimes they don’t unless I go in and manually update the product.

    The prices seem to display fine on the single product, it’s just the variable price label (eg’ from XX – XX) which doesn’t work.

    A developer has having a look today but something smells fishy.

    On another note, I know this is unrelated but for the CSV Import Suite when merging variations, it creates duplicates of old variations even if they have the same SKU. I am having to go in now and find a way to manually clear out variations as I just realised some products have 4-5 sets of the same variations.

    Hi VikingCC,

    Have you managed to find a solution, i am just having the same issue.
    When importing products with a csv, on variable products is missing the price or price-range, and only in cart showing up. but if i update a product everything is ok.
    thanks a lot

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Variations prices not showing up’ is closed to new replies.