rollies
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WP Search with Algolia] Add Product info to wp_searchable_posts IndicesBelow is working code i have used if anyone needs it – added to themes function.php
/* Algolia customisations */ function add_product_shared_attributes( array $shared_attributes, WP_Post $post ) { $product = wc_get_product( $post ); $shared_attributes['price'] = $product->get_price(); $shared_attributes['regular_price'] = $product->get_regular_price(); $shared_attributes['sale_price'] = $product->get_sale_price(); $shared_attributes['is_on_sale'] = $product->is_on_sale(); $shared_attributes['sku'] = $product->get_sku(); $shared_attributes['stock_quantity'] = $product->get_stock_quantity(); return $shared_attributes; } add_filter( 'algolia_post_product_shared_attributes', 'add_product_shared_attributes', 10, 2 ); add_filter( 'algolia_searchable_post_product_shared_attributes', 'add_product_shared_attributes', 10, 2 );
Forum: Plugins
In reply to: [WP Search with Algolia] Add Product info to wp_searchable_posts IndicesGreat, Thank you
- This reply was modified 4 years ago by rollies.
Forum: Themes and Templates
In reply to: [OceanWP] customize woocommerce archive is not workingG’day
I had the same issue after updating elementor pro to the latest. Try adding the below and see if that fixes it. Work for me for now.
@media (min-width: 1024px) {
.elementor-element.elementor-products-grid ul.products {
grid-template-columns: repeat(4,1fr);
}
}Forum: Themes and Templates
In reply to: [OceanWP] Elementor pro 2.5.12
Viewing 4 replies - 1 through 4 (of 4 total)