Which Unit Type is best suited to work with ASIN White List?
Basically I try to display a list of specific products and both Search and Category Units are ignoring the ASIN ids I’ve set there.
Thanks!
]]>For now I’ve disabled the plugin, and deleted all its tables from the database, but that has degraded the functionality of my page.
Any hints about what I’m doing wrong, or how to more elegantly fix the issue? I’m running WP 6.7.2.
]]>I am currently using the Amazon Auto Links plugin and have noticed a significant performance issue. The plugin’s CSS and JavaScript files are being loaded on all pages of my site, even when the [amazon_auto_links]
shortcode is not present. This is causing unnecessary resource usage and a drop in page speed.
To optimize my website’s performance, I want to ensure that these assets are loaded only on pages or posts where the [amazon_auto_links]
shortcode is actually used.
Here is what I have tried so far:
/**
* Caricamento condizionale degli asset di Amazon Auto Links.
* Carica i file CSS e JS solo se lo shortcode [amazon_auto_links] è presente nella pagina o nel post.
*/
function conditional_amazon_auto_links_assets() {
global $post;
// Controlla se il contenuto contiene lo shortcode [amazon_auto_links]
if ( isset( $post->post_content ) && has_shortcode( $post->post_content, 'amazon_auto_links' ) ) {
// Carica i file CSS necessari
wp_enqueue_style(
'amazon-auto-links-list-style',
plugins_url( 'amazon-auto-links/template/list/style.min.css' ),
array(),
'1.4.1'
);
wp_enqueue_style(
'amazon-auto-links-common-style',
plugins_url( 'amazon-auto-links/template/_common/style.min.css' ),
array(),
'5.4.3'
);
// Carica i file JS necessari
wp_enqueue_script(
'amazon-auto-links-pointer-tooltip',
plugins_url( 'amazon-auto-links/include/core/main/asset/js/pointer-tooltip.min.js' ),
array( 'jquery' ),
null,
true
);
wp_enqueue_script(
'amazon-auto-links-product-tooltip',
plugins_url( 'amazon-auto-links/template/_common/js/product-tooltip.min.js' ),
array( 'jquery' ),
'1.0.0',
true
);
wp_enqueue_script(
'amazon-auto-links-ajax-unit-loading',
plugins_url( 'amazon-auto-links/include/core/component/unit/asset/js/ajax-unit-loading.min.js' ),
array( 'jquery' ),
'6.7.1',
true
);
wp_enqueue_script(
'amazon-auto-links-image-preview',
plugins_url( 'amazon-auto-links/template/_common/js/product-image-preview.min.js' ),
array( 'jquery' ),
'1.0.0',
true
);
wp_enqueue_script(
'amazon-auto-links-now-retrieving-updater',
plugins_url( 'amazon-auto-links/include/core/component/unit/asset/js/now-retrieving-updater.min.js' ),
array( 'jquery' ),
'6.7.1',
true
);
}
}
add_action( 'wp_enqueue_scripts', 'conditional_amazon_auto_links_assets' );
Unfortunately, this solution does not work. The CSS and JS files from Amazon Auto Links are still being loaded globally, regardless of whether the [amazon_auto_links]
shortcode is present or not.Questions:
[amazon_auto_links]
shortcode?This issue is negatively impacting my site’s speed and unnecessarily consuming resources. Any guidance or recommendations would be greatly appreciated.
Thank you in advance for your support!
Luca Tacchetti
]]>Sorry if this comes across as a stupid question, but how you create simple text links only (no pics or widgets), AND make sure they globalize using the plugin? All the interface in the plugin seems to focus on units and pictures and APIs, but I don’t need any of that. I’ve put my associates IDs in for the main English speaking store and now I just want to paste an Amazon link in and have it globalize to the local store whenever someone clicks it. But can’t seem to get it to work – always redirects to the original .com link pasted in even when not in the US. How can I get globalization to work?
Thanks
]]>.amazon-products-container-list {
overflow-y: auto;
overflow-x: hidden;
width: 100%;
border-style: solid;
border-radius: 15px;
border-color: lightgrey;
padding: 30px;
border-width: 1px;
}
If I try to apply the modification from Chrome DevTools works fine, but when I modify the style.css file it doesn’t work. To modify the file I have to try to edit the file from my hosting file editor or upload and overwrite the style.css.
In attach the Style.css modified and the website path: gerardopandolfi.com/wp-content/plugins/amazon-auto-links/template/list/style.css
Style file (saved in txt to upload): https://gerardopandolfi.com/wp-content/uploads/2024/08/style.txt
Thanks
]]>Is there functionality to create affiliate links in Woocommerce product with the plugin.
Thanks in advance
]]>