obtenmiweb
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Updating database from third party applicationI’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.
Forum: Plugins
In reply to: [WooCommerce] Ship to same address based on locationYes, that’s correct. Thank you.
- This reply was modified 5 years, 5 months ago by obtenmiweb.
Forum: Plugins
In reply to: [WPAdmin AWS CDN] CORS Solution not workingI 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.
Forum: Plugins
In reply to: [WPAdmin AWS CDN] CORS Solution not workingAdded 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.