Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter obtenmiweb

    (@obtenmiweb)

    I’m using the default template that comes with WooCommerce, the only change I’ve made is in the database. I did try this too and it still doesn’t display the actual DB value:

    Your help is appreciated.

     
    add_filter( 'woocommerce_get_availability_text', 'bbloomer_custom_get_availability_text', 99, 2 );
      
    function bbloomer_custom_get_availability_text( $availability, $product ) {
      $stock = $product->get_stock_quantity();
      if ( $product->is_in_stock() && $product->managing_stock() ) $availability = __( 'Quantity: ' . $stock, 'woocommerce' );
      return $availability;
    }
    • This reply was modified 4 years, 8 months ago by obtenmiweb.
    • This reply was modified 4 years, 8 months ago by obtenmiweb.
    Thread Starter obtenmiweb

    (@obtenmiweb)

    Yes, that’s correct. Thank you.

    • This reply was modified 5 years, 5 months ago by obtenmiweb.
    Thread Starter obtenmiweb

    (@obtenmiweb)

    I replaced the real domain name in my last reply. The icons that are not showing up are in the main menu of my site. Here’s a list of all the CORS errors:

    Here‘s cloudfront pointing to my domain.

    • This reply was modified 5 years, 5 months ago by obtenmiweb.
    Thread Starter obtenmiweb

    (@obtenmiweb)

    Added the following to .htaccess as it says in the Github repository and still get CORS error.

    # END WordPress
    AddType font/ttf                         ttf
    AddType font/otf                         otf
    AddType font/woff                        woff
    AddType font/woff2                       woff2
    AddType application/vnd.ms-fontobject    eot
    <FilesMatch ".(eot|ttf|otf|woff|woff2)">
      Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    

    The log I’m getting is the following:
    SEC7120: [CORS] The origin 'https://domainname.com' did not find 'https://domainname.com' in the Access-Control-Allow-Origin response header for cross-origin font resource at 'https://d1wwhmx7g3g9x.cloudfront.net/wp-content/plugins/theme-addons/assets/fonts/Linearicons.ttf?fgpewa'.

    • This reply was modified 5 years, 5 months ago by obtenmiweb.
Viewing 4 replies - 1 through 4 (of 4 total)