tnchuntic
Forum Replies Created
-
Can you send through the contact details of the support team for us to connect to them. Thanks
I did deactivated your plugin and the link modal is gone so.. I am not sure if its a conflict with your plugin to other plugin that cause the link modal to be added in the frontend.
The link modal is related to the accordion functionality.
search for “<h1 id=”link-modal-title”>Insert/edit link</h1>”.
What I am assuming is the modal functionality is always trigger even if the functionality is disabled.
If I disabled the plugin it will removed that “link-modal” div. Also I have noticed it only displays on the accordion type of the read more plugin.- This reply was modified 6 months, 2 weeks ago by tnchuntic.
- This reply was modified 6 months, 2 weeks ago by tnchuntic.
- This reply was modified 6 months, 2 weeks ago by James Huff. Reason: link moved to proper field in original post
I mean the plugin adds link modal div in frontend. The link has h1 which conflicts with the page title.
Good afternoon just checking with you if any updates on fixing this issue with Google Map API have website restriction on the application it will not show shipping method for zone within 50km radius.
Found the issue and have fixed.
I just need to remove the “Set an application restriction” and set it to none.Here’s the error log in the checkout.
15:31:06 1291445692 SERVER to GOOGLE CALL: URL:https://maps.googleapis.com/maps/api/geocode/json REQUEST STRING:address=15+Millennium+Cct+Helensvale+Queensland&components=country%3AAU%7Cpostal_code%3A4212®ion=au Request: Array ( [address] => 15 Millennium Cct Helensvale Queensland [components] => country:AU|postal_code:4212 [region] => au ) Response:{ "error_message" : "API keys with referer restrictions cannot be used with this API.", "results" : [], "status" : "REQUEST_DENIED" }
- This reply was modified 10 months ago by tnchuntic.
Dev Tool console log doesn’t have any error at all. Also code that will render shipping method are php so not sure if its affected by javascript errors if it has one.
Also where can I find the code that checks the customer address if its within the radius of store address. I would like to check and test at my end that way I can have a better understand of how the plugin code works.
Thanks
- This reply was modified 10 months ago by tnchuntic.
Any updates from the author???
Also anyone have encounter this issue… kindly message here if you are. Also if you have fixed it kindly share on how you have fixed it.Thanks
Re-opening the ticket
Re-opening the ticket… it seems that the carousel is added empty <p> tag at the end of the slider/carousel if shortcode is added in Shop page.
Thanks Ketan for the quick response.
I have checked again and you are right that its not adding the slick.min.js… but it will still add automatically the slick.css.
Is it possible for us to move the
wp_enqueue_style('wpos-slick-style');
Within the shortcode along with the js enqueue?
Also just wanted to know why is the slick.js enqueue even if I am using a grid shortcode? Should the script only be enqueue when the slide shortcode is use.
As what I have said on my first ticket, I have added GRID SHORTCODE so it shouldn’t enqueue slick.js and slick.css from the plugin. But it did enqueue always… I have traced the code the enqueue script is trigger when the plugin is loaded.
See your code blocks below, some code are redacted “…” to focus on the actual code blocks that I am referring to.
product-categories-designs-for-woocommerce.php
/** * Load the plugin after the main plugin is loaded. * * @since 1.0.0 */ function pcdfwoo_load_plugin() { .... // Check main plugin is active or not if( class_exists('WooCommerce') ) { .... ... // Script Class require_once( PCDFWOO_DIR . '/includes/class-pcdfwoo-script.php' ); .... ... } } add_action( 'plugins_loaded', 'pcdfwoo_load_plugin', 15 );
class-pcdfwoo-script.php
class Pcdfwoo_Script { function __construct() { ... .... // Action to add some style and script add_action('wp_enqueue_scripts', array($this, 'pcdfwoo_front_style_script')); } .... ... .. /** * Function to add style at front side * * @since 1.0.0 */ function pcdfwoo_front_style_script() { global $post; ... ... /* * * Style ** */ // Registring and enqueing public css if (!wp_style_is('wpos-slick-style', 'registered')) { wp_register_style('wpos-slick-style', PCDFWOO_URL . "assets/css/slick.css", array(), PCDFWOO_VERSION); } ... ... wp_enqueue_style('wpos-slick-style'); .... /* * * Script ** */ // Registring slick slider script if (!wp_script_is('wpos-slick-jquery', 'registered')) { wp_register_script('wpos-slick-jquery', PCDFWOO_URL . 'assets/js/slick.min.js', array('jquery'), PCDFWOO_VERSION, true); } ...... .... ... wp_enqueue_script('wpos-slick-jquery'); ... .... } } $pcdfwoo_script = new Pcdfwoo_Script();
Your plugin works fine but it will conflict with the Carousel Block plugin.. or any plugins that are using slick.js.
It would be nice if the slick.js and slick.css is only enqueued if shortcode for slider is executed.
As what I have mentioned on my ticket that I have temporarily fixed it by adding the carousel block hook check if its register or not.