• Resolved designbureauagency

    (@artprintnow)


    Hi guys

    So I tried updating to 3.0 and it immediately places all my products on sale, but with the full price as the sale price, as well as the full price in a < del > tag. Variable products obviously don’t show this since you changed that format to no longer show the cross-out prices on the archive templates. When I check the products, no sale date is scheduled, and it actually shows the full prices as the sale price, not the stored sale price. There’s also no discernable way to turn this off. All products have a .sale class and show the .on-sale span/label.

    There are minimal template overrides in the theme. Any differences don’t appear to have any relation.

    Any ideas?

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

    (@mikejolley)

    I need:

    – Screenshot of prices
    – Link to product page
    – System status report.

    Not able to replicate my side.

    Thread Starter designbureauagency

    (@artprintnow)

    1: https://prntscr.com/esta82
    2: no can do, site is closed to public presently. If you really need access please email me on info[at]artprintnow[dot]com.
    3:

    
    ### WordPress Environment ###
    
    Home URL: https://www.artprintnow.com
    Site URL: https://www.artprintnow.com
    WC Version: 3.0.0
    Log Directory Writable: ?
    WP Version: 4.7.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.30-1~dotdeb+7.1
    PHP Post Max Size: 64 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 3500
    cURL Version: 7.26.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: ? 5.5.54 - We recommend a minimum MySQL version of 5.6. See: WordPress requirements
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.0.0
    WC Database Prefix: wp_
    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 ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (25) ###
    
    WooCommerce - Flickity Gallery: by Radley Sustaire – 1.0.0
    Advanced Custom Fields: Date and Time Picker: by Per Soderlind – 2.1.5
    Advanced Cron Manager: by Kuba Mikita – 1.5
    Advanced Custom Fields: by Elliot Condon – 4.4.11
    AJAX File Upload: by Samuel Elh – 0.1.1.1
    Capability Manager Enhanced: by Jordi Canals
    Kevin Behrens – 1.5.7
    
    Contact Form 7: by Takayuki Miyoshi – 4.7
    Error Log Monitor: by Janis Elsts – 1.5.2
    Favorites: by Kyle Phillips – 1.2.3
    If Menu: by Andrei Igna – 0.6
    MailChimp: by MailChimp – 1.5.7
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    Remove Dashboard Access: by Drew Jaynes (DrewAPicture) – 1.1.3
    Shortcodes in Menus: by Gagan Deep Singh and Saurabh Shukla – 3.1
    Category Order and Taxonomy Terms Order: by Nsp-Code – 1.4.9
    Under Construction: by Web factory Ltd – 1.80
    User Meta Manager: by Jason Lau – 3.4.9
    User Switching: by John Blackbourn – 1.0.9
    WooCommerce Social Media Share Buttons: by Toastie Studio – 1.3.0
    WooCommerce Table Rate Shipping: by Automattic – 3.0.2
    WooCommerce: by Automattic – 3.0.0
    WooCommerce Helper: by WooCommerce – 1.7.2 – Network enabled
    WP-Mail-SMTP: by Callum Macdonald – 0.10.1
    WP-Members: by Chad Butler – 3.1.7
    WP Term Images: by John James Jacoby – 1.0.0
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: simple (simple)
    grouped (grouped)
    variable (variable)
    external (external)
    
    ### WC Pages ###
    
    Shop base: #26 - /shop/
    Cart: #27 - /cart/
    Checkout: #28 - /checkout/
    My account: #29 - /my-account/
    
    ### Theme ###
    
    Name: FoundationPress
    Version: 2.6.1
    Author URL: https://olefredrik.com/
    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 ###
    
    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: FoundationPress/woocommerce/cart/cart.php version 2.3.8 is out of date. The core version is 3.0.0
    FoundationPress/woocommerce/cart/mini-cart.php
    FoundationPress/woocommerce/loop/pagination.php
    FoundationPress/woocommerce/single-product/add-to-cart/variable.php
    FoundationPress/woocommerce/single-product/tabs/additional-information.php version 2.0.0 is out of date. The core version is 3.0.0
    FoundationPress/woocommerce/single-product/tabs/description.php
    FoundationPress/woocommerce/single-product/tabs/tabs.php
    FoundationPress/woocommerce/single-product-reviews.php
    
    Outdated Templates: ?Learn how to update
    
    Plugin Contributor Mike Jolley

    (@mikejolley)

    How about an export – tools > Export. If I have the products and the ID of that one with the strike out I can check what data is stored.

    Thread Starter designbureauagency

    (@artprintnow)

    product id: 59198

    export: https://www.dropbox.com/s/wy6ykgn1qzdk0vw/artprintnow.wordpress.2017-04-05.xml.zip?dl=0

    Note that it’s affecting all products, including any new ones I try create after the update. Variable products appear to show the correct sales price (compare product id 59978), but why they’re all suddenly on sale is a mystery.

    Thanks for your time on this, very much appreciated. In the meantime I’m rolling back the update on production and putting up a clone test instance for further debugging of WC 3.0.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    That one has a sale price of 35, a price of 40 and regular price 40. Was this product imported from elsewhere?

    Thread Starter designbureauagency

    (@artprintnow)

    It was created programmatically using wp_insert_post, like so:

    update_post_meta( $cushion, ‘_price’, $total_price);
    update_post_meta( $cushion, ‘_regular_price’, $total_price);
    update_post_meta( $cushion, ‘_sale_price’, $total_sale_price );

    I’ve tried a manually created product, and it also was marked as on sale, but I’m not sure if there was an issue with the price.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    _sale_price should either be blank, or if on sale set to the same as _price.

    _price is your active price.

    Thread Starter designbureauagency

    (@artprintnow)

    Ok I’ll try that and let you know if it does the trick. Thanks Mike!

    Thread Starter designbureauagency

    (@artprintnow)

    Nailed it. Thanks very much!
    Keep up the good work!

    Similar issue here, but a different solution. We were using a plugin which used some pricing filters which were deprecated in WC 3.0 and replaced with different ones: https://github.com/woocommerce/woocommerce/wiki/2.6.x-to-3.0.0-Developer-Migration-Notes#deprecated-functions
    We also disabled the filter for get_sale_price and things went back to normal. Hope that helps someone.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘3.0 update places all products on sale.’ is closed to new replies.