b2bwebteam
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Show custom tab on packing slipHi @liljimmi
I may have to look into it, my query was more down the lines of how to display the shortcode via PHP from that last point.
Forum: Plugins
In reply to: [WP Store Locator] API Browser Key not working@cloud9beyond I moved the server it was hosted on and managed to find more hidden files where the old API key was stored
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Show custom tab on packing slipHi Freddie
I can add that bit with no issue, it’s then figuring out how to make it display in a similar way to the SKU and the weight on the actual report that it gives that is confusing me
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Show custom tab on packing slipHi Freddie
Thanks for this, but I’m still a little lost unfortunately. PHP isn’t my strongest point and I’m usually much more comfortable working behind the guise of a WordPress editor or in some cases using CSS to make minor changes, this would be by far the most complicated link I’ve had to make.
Is there any way you would be able to advise on the code I would need to use to get this to display, similar the code displaying the SKU and the weight of the product?
<?php if( !empty( $item[‘sku’] ) ) : ?><dt class=”sku”><?php _e( ‘SKU:’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?></dt><dd class=”sku”><?php echo $item[‘sku’]; ?></dd><?php endif; ?>
<?php if( !empty( $item[‘weight’] ) ) : ?><dt class=”weight”><?php _e( ‘Weight:’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?></dt><dd class=”weight”><?php echo $item[‘weight’]; ?><?php echo get_option(‘woocommerce_weight_unit’); ?></dd><?php endif; ?>
Forum: Plugins
In reply to: [WP Store Locator] API Browser Key not workingHi Tijmen, apologies, the reply never came through.
It all works fine now yes, I managed to find where the issue was being caused from and resolved this.
Forum: Plugins
In reply to: [WP Store Locator] API Browser Key not workingI can see that parameter when I look for it, it all appears to be set correctly
I don’t know what I’m looking for with regards to things removing script parameters, I know that there is a lot of security functionality in place on the site as it is required to be extremely secure so it is possible that something could be in place, but I cannot tell for certain
Compatability mode is enabled and was when I sent the last message across.
Forum: Plugins
In reply to: [WP Store Locator] API Browser Key not workingI have tried removing the <script> tag to stop it showing that there are multiple tags being used, but doing this now displays that there are no API keys in use. I followed this up with Google Maps support and they have done some testing and advised me back here to say its a plugin issue as everything is set correctly on their end
Forum: Plugins
In reply to: [WP Store Locator] API Browser Key not workingNo other google maps plugin is in use, compatibility mode is enabled.
The browser console shows me the following;
- Uncaught (in promise) Xc
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1 - js:124 You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
Nh @ js:124 - http://www.googletagmanager.com/gtag/js?id=UA-89128346-31:1 Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
- js:53 You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors
_.Wc @ js:53 - util.js:240 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
Both the server key and the browser key have been created following the steps outlined during setup yet the browser key is having issues and saying the following;
There’s a problem with the provided browser key.
You will have to open the browser console ( ctrl shift k in Firefox, or ctrl shift j in Chrome ) to see the error details returned by the Google Maps API.
The error itself includes a link explaining the problem in more detail.
Common API errors are also covered in the troubleshooting section.
- Uncaught (in promise) Xc