Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter r939

    (@r939)

    Hello.
    Our manager in the administrative part of the site in the product card adds products that will be displayed in the upsell and crosssell blocks (upsell_ids / crosssell_ids). This list includes products that are not available for sale. The manager does not know and does not have to remember all the products that are currently not available.
    I did not find a woocommerce hook or option to exclude products with the status – (!is_purchasable() && !is_in_stock()) from the search query.
    It looks very stupid when the list (in the block) we recommend or cross-sale includes products that are not currently on sale.
    image
    https://tvoifason.ru/wp-content/uploads/other/UPSALE-CROSSSALE.jpg

    The last error, which may not be due to the configuration, is an old, not updated template.

    And lastly.
    It so happens that the configuration is suitable, but since the project is located on a physical server, where there are other domains that create a much larger load, less processor time is allocated to your needs, as a result, your site works badly or errors 500 and 503 appear.
    But before abuse, you need to set limits or ask technical specialists to help you do this.

    in .htaccess
    php_value upload_max_filesize 128M
    php_value post_max_size 128M
    php_value max_execution_time 300
    php_value max_input_time 300
    php_value memory_limit 256M

    OR

    contact support with a request to set up php limits
    post_max_size 128М
    memory_limit 256Мб
    max_execution_time 180
    upload_max_filesize 256Мб
    max_input_time 600
    max_input_vars 5000

    • This reply was modified 5 years, 8 months ago by r939.

    Most likely woocommers creates a load for which your server is not ready (configuration). Faced with this. Again, if your server is running NGINX, there is a possibility that the configuration is not optimal for WordPress + Woocommers. I constantly communicate with support on the side of the hosting operator. For a long time everything worked poorly and slowly, until I bombarded them with requests and appeals.

    • This reply was modified 5 years, 8 months ago by r939.

    I can advise you to write to those hosting support. Highly, the error is server side and not code related. Something is wrong with the server configuration.

    Try only WoCommers enabled (disabling all plugins) and be sure to test with the classic editor (with gutenberg disabled).

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