Is there an option within your plugin that this could be coming from?
]]>Upload id : 2wfxNm8L
]]>I’m using ACF for a comparison website. On the end of each text I would like to put a text with shortcodes which pull and print values.
E.g.: The Mercedes-Benz models on this page cost between [field price] (highest price) and [field price] (lowest price) Euro.
Is there a possibility to output the highest and lowest price via the shortcodes? What do I have to add for this?
Kind regards!
]]>I set that by default, all products are sorted by price – high to low.
I want to change that only for 1 category. We sell pools and pool equipment, so I want to change that everything within the Pools (Bazeni) category is sorted from low to high. I tried few codes that I found, but had no luck. Here’s an example:
add_filter('woocommerce_get_catalog_ordering_args', 'tk_woocommerce_catalog_orderby');
function tk_woocommerce_catalog_orderby( $args ) {
if( is_product_category( 'bazeni' ) ) {
$args['orderby'] = 'meta_value_num';
$args['order'] = 'DESC';
$args['meta_key'] = '_price';
}
return $args;
}
I tried changing the product category from ‘bazeni’ to a directory (subcategory) that has products inside of it, yet, still nothing changed.
Kind regards
]]>I noticed a bug with my store. If I sort the products from lowest to highest price, everything is displayed correctly.
However, if I sort from highest to lowerst, which is the default option, the Zen sauna is misplaced. It’s displaying the prices as 2.460€, 1.901€, 2.256€, 2.104€. I don’t know why this is happening.
I tried to go to Settings -> Status -> Tools -> Product lookup tables and regenerate them, but that did nothing. I also tried to paste the code bellow to functions.php, but that didn’t fix the issue either.
/**
* Customize ordering by price
*/
add_filter('woocommerce_get_catalog_ordering_args', function ($args) {
$orderby_value = isset($_GET['orderby']) ? wc_clean($_GET['orderby']) : apply_filters('woocommerce_default_catalog_orderby', get_option('woocommerce_default_catalog_orderby'));
if ('price' == $orderby_value) {
$args['orderby'] = 'meta_value_num';
$args['order'] = 'ASC';
$args['meta_key'] = '_price';
}
if ('price-desc' == $orderby_value) {
$args['orderby'] = 'meta_value_num';
$args['order'] = 'DESC';
$args['meta_key'] = '_price';
}
return $args;
});
Kind regards
]]>For the moment, we decided to go back to version 4.1.1. Please help resolve this issue in the next update.
It is a vps with:
– Cpu: 4 cores
– Memory: 8 GB
– Hard disk: 160 GB
Thanks
]]>I have a fast server, 64 Cores, 1TB of RAM and tons of storage. I am on Litespeed Cache, a dedicated firewall server, DNS hosted with AWS and are using a 24 country CDN to reduce the load on our server. We handle around 2.1 million visitors a day, across all of our different sites, blog, e-com etc. The WHM/Cpanel Server load works fine, with like 1-2 server load at peak times.
Can woocommerce/wordpress/SQL handle 5 million product pages? I know WordPress is SQL heavy, and am willing to even offload the SQL for this 5 million product pages off-site, so I would be running a cluster of SQL databases, each one mirroring the same data as the main database. So we can split traffic between 1-2 different IP’s/servers for SQL purposes.
I know most of the blog posts out there say, “We added 500k” products!” and document everything, but nobody has done millions or 5 million like we’re planning. Even woocommerce has stated that the sky is the limit and the number of products depends on optimization and your server setup.
Anybody have experience with millions of products on a site, or know if Woo can handle these many database entries?
]]>