osositno
Forum Replies Created
-
Forget it. Found it within chatgpt:
Added this within the Extra CSS withing the template:/* Center the button in the middle of the product image / .addonify-qvm-button, .addonify-qvm-button.addonify-qv-shortcode-button, .wc-block-grid__products .product .button.addonify-qvm-button, .wc-block-grid__products .wc-block-grid__product .button.addonify-qvm-button, .woocommerce ul.products .product .button.addonify-qvm-button, .woocommerce ul.products .wc-block-grid__product .button.addonify-qvm-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; / Ensures the button appears above other elements / background: rgba(255, 255, 255, 0); / Makes the background transparent / border: none; / Removes borders / color: inherit; / Keeps the text color consistent with the theme / transition: all 0.3s ease; / Smooth transition for hover effects */
}/* Ensure the product image container is positioned relative to the button */
.product-image-wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}/* Keep the button transparent on hover / .addonify-qvm-button:hover, .addonify-qvm-button.addonify-qv-shortcode-button:hover, .wc-block-grid__products .product .button.addonify-qvm-button:hover, .wc-block-grid__products .wc-block-grid__product .button.addonify-qvm-button:hover, .woocommerce ul.products .product .button.addonify-qvm-button:hover, .woocommerce ul.products .wc-block-grid__product .button.addonify-qvm-button:hover { background: rgba(255, 255, 255, 0); / Transparent background on hover / border: none; / No border on hover / color: inherit; / Keep the text color as it is */
}/* Adjust the icon size to 40px x 40px / .addonify-qvm-button .icon svg, .addonify-qvm-button.addonify-qv-shortcode-button .icon svg, .wc-block-grid__products .product .button.addonify-qvm-button .icon svg, .wc-block-grid__products .wc-block-grid__product .button.addonify-qvm-button .icon svg, .woocommerce ul.products .product .button.addonify-qvm-button .icon svg, .woocommerce ul.products .wc-block-grid__product .button.addonify-qvm-button .icon svg { align-items: center; display: inline-flex; height: 40px; / Set height to 40px / line-height: 1; / Ensures proper line height / width: 40px; / Set width to 40px */
}Do you have any more tips?
Does your plugin have an issue with handeling short-codes? Like [ ] if this is part of the pages the feeds are handling?
The short-code works in our site, listing the page it includes, but it looks like then the include-page plugin is active, your plugin can’t list the content or someting? The [Include-page] code is active when the plugin is not active, listing as just text but when it’s active, your feed is stuck at 0% it seems.The strange ting is that when the include-pages plugin is disabled, the short-code is still in the product-description pages, but then the Feed gets generated.
- This reply was modified 4 months, 3 weeks ago by osositno.
Forum: Plugins
In reply to: [Insert Pages] Fatal errorMy bad. Sorry. The fatal error was before the update ?? No more fatal error since the update.
All is good now it seems ?? Thanks for your support.
Forum: Plugins
In reply to: [WooCommerce] Missing product image and SKU in admin >products >all productsThis code added the image thumbs back to Product Admin page:
//Ads Images Thumbs back to Screen Option in product admin page
add_filter('manage_edit-product_columns', 'add_thumbnail_column', 15);
function add_thumbnail_column($columns) {
// Add thumbnail column to the product list
$new_columns = [];
foreach ($columns as $key => $column) {
if ($key == 'cb') {
$new_columns['thumb'] = __('Image', 'woocommerce');
}
$new_columns[$key] = $column;
}
return $new_columns;
}
add_action('manage_product_posts_custom_column', 'display_thumbnail_column', 10, 2);
function display_thumbnail_column($column, $post_id) {
if ($column == 'thumb') {
echo get_the_post_thumbnail($post_id, 'thumbnail');
}
}
// Adjust column width in admin CSS
add_action('admin_head', 'thumbnail_column_width');
function thumbnail_column_width() {
echo '';
}Forum: Plugins
In reply to: [WooCommerce] Missing product image and SKU in admin >products >all productsDid not help, but putting this code in function.php in theme fixed it:
//ads SKU to admin >products page
// Add SKU column to the product list
add_filter(‘manage_edit-product_columns’, ‘add_custom_sku_column’);
function add_custom_sku_column($columns) {
$columns[‘custom_sku’] = __(‘SKU’, ‘woocommerce’);
return $columns;
}// Populate the SKU column with SKU data
add_action(‘manage_product_posts_custom_column’, ‘show_custom_sku_column’, 10, 2);
function show_custom_sku_column($column, $post_id) {
if ($column == ‘custom_sku’) {
$product = wc_get_product($post_id);
echo $product->get_sku() ? $product->get_sku() : __(‘—’, ‘woocommerce’);
}
}// Make SKU column sortable
add_filter(‘manage_edit-product_sortable_columns’, ‘sortable_sku_column’);
function sortable_sku_column($columns) {
$columns[‘custom_sku’] = ‘sku’;
return $columns;
}// Adjust query to make SKU sortable
add_action(‘pre_get_posts’, ‘sku_column_orderby’);
function sku_column_orderby($query) {
if (!is_admin()) return;$orderby = $query->get('orderby'); if ('sku' === $orderby) { $query->set('meta_key', '_sku'); $query->set('orderby', 'meta_value'); }
}
Hi
The plug-in that is conflicting is: https://www.ads-software.com/plugins/insert-pages/
It seems that the feed generation is stuck at 0% for those products that has a description that includes a shortcut from Insert-Pages plugin: [insert page=’XXX.page display=’content’]
When i disable the Insert-Pages plugin, all the feeds are beeing generated successful.Forum: Plugins
In reply to: [Insert Pages] Fatal errorHi.
After installing the versjon 3.9.0, fatal error reappears. Now with a different line number: 2024-10-31T07:14:01+00:00 Kritisk Uncaught Error: Attempt to assign property “ID” on int in /websites/xxxxxx/www/html/wp-content/plugins/insert-pages/insert-pages.php:537
Just one more thing. It would be great if you can include in the plugin when the Feed was generated. Cannot find that. Would be great for us, so we can find out if the feed is actually working or not.
Forum: Plugins
In reply to: [Insert Pages] Fatal errorWe also had issues with another plugin called Product Feed PRO for WooCommerce, version 13.3.8.1 from AdTribes.io. The feeds in this plugin did not complete and were stuck at 0% when Insert Pages plugin was active.
Hi. It looks like there is a conflict with one of our plugins. Insert Pages from Paul Ryan.
When disabling this plugin, the feed completed with ready status.My Hosting provider restarted WP Cron, but the issue is still there. Have tried to disable a lot of plugins to see of there are any conflicts. Cannon find any fatal errors or errors in product-feed-pro-by-adtribes-io log.
Any other tips?
This site shows our picture like it should, but if you click the facebook page, you can see the differance. Look at the top header in the Set/category.
Forum: Plugins
In reply to: [Max Mega Menu] Mega Menu sometimes disappearWe have just seen this issue with desktop view.
Forum: Plugins
In reply to: [Facebook for WooCommerce] Critical error when editing some productsHi
All good now. There was a setting in the “insert Pages” that fixed the issue:
https://www.ads-software.com/support/topic/latest-version-no-longer-working/
Changed the insert Methon from Legacy to Normal.Well, thank you for you time. And sorry for my inconvenience, and a little frustration.
Best regards
Ososit