keepsmilyn
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Woo Search] Table size issueWe have enabled a handful of “Search in” options, which are searching within product attributes, so the second function can’t be used.
Is there a way to auto clear cache? You have an option to setup a cron job to reindex table, can the same be done with clearing of cache? This way we dont need to manually clear the cache and it can be automatically done periodically?
Thank you!
Forum: Plugins
In reply to: [Advanced Woo Search] Table size issueThank you. I will check settings and apply these functions.
Highly appreciate your detailed reply. Thank you. ??
Forum: Plugins
In reply to: [W3 Total Cache] AH01071 Php Warning“Never cache the following pages” option under Performance > Page Cache is empty on our website.
We do have entries in “Cache exception list:” however. Maybe thats conflicting also.
I remember having entries in there for our woocommerce store so have put them back (as they are critical for our site). So now it includes the following only:
shop*
cart
checkout
wp-.*\.php
index\.php
/?fl_builderForum: Plugins
In reply to: [Advanced Woo Search] Reindex table messageExcellent. Thank you.
It was only an issue after we had to regenerate our index table due to its massive size and then re-index all products. Otherwise we havent seen this message prior. Its probably something that shows up the first time you use the plugin. Either way, still best to only appear for the admin users. ??
Thank you for the fast response and resolution to the problem. Have upgraded and cant see the error anymore. ??
Thank you.
If you need any help debugging let me know. We have a staging site we can give you access to for seeing the error message.
Ive re-written it like this, with some slight ammendments:
function get_cart_item_quantities() {
global $woocommerce;
$item_qties = array();
$items = $woocommerce->cart->get_cart();foreach ($items as $item => $cart_item) {
if (!empty($cart_item[“variation_id”]))
$item_qties[$cart_item[“variation_id”]] = $cart_item[“quantity”];
else
$item_qties[$cart_item[“product_id”]] = $cart_item[“quantity”];
}
return $item_qties;
}It appears to be an issue with this function:
/* function get_cart_item_quantities() {
global $woocommerce;
$item_qties = array();
foreach ($woocommerce->cart->cart_contents as $cart_item) {
if (!empty($cart_item[“variation_id”]))
$item_qties[$cart_item[“variation_id”]] = $cart_item[“quantity”];
else
$item_qties[$cart_item[“product_id”]] = $cart_item[“quantity”];
}
return $item_qties;
}// $items = $woocommerce->cart->get_cart();
// foreach($items as $item => $values) {
// $_product = wc_get_product( $values[‘data’]->get_id());*/
For the time being I am using the following CSS code:
.product_meta h3, .product_meta .wad-qty-pricing-table {
display: none !important;
}Have figured out that we need to apply individual discounts per product instead.
It seems that the paid version does what we want as the “If orders items count” refers to any products in the cart count, when atleast one item from the product list is present.
Actually when I have just added 2 of another product (not in the discount category list) to my cart then add 8 of a discountable product, it discounts the discountable product. But it shouldnt be discounting when there is only 8 of that item in the cart. Its totalling all products as the quantity.
Forum: Plugins
In reply to: [Role Based Price For WooCommerce] Not changing pricesDid you get this resolved??
We are also finding the same problem on our website.
Forum: Themes and Templates
In reply to: [Storefront] Page not displaying full widthAnother option is trying to use the is_front_page() or is_home() functions.
I have done this recently (in the header.php file of my child storefront theme), not the best way but it works:
if ((is_page_template(‘template-contentpage.php’)) || (is_front_page())){
echo “<div class=\”col-full\” style=\”width: 100%; margin-left: 0em !important; margin-right: 0em !important; max-width: 100% !important; padding: 0 0em !important; \”>”;
}else{
echo “<div class=\”col-full\”>”;
}Forum: Plugins
In reply to: [WooCommerce] WooCommerce 3.3 Shop Display Options MissingCant seem to get this working. When I select to display categories or products & categories categories just dont appear, only products do on the shop homepage.
Not sure if the option under Customize>WooCommerce>Product Catalog is even doing anything to be honest. Appears to be a bug in latest version of woo. This is a fresh install of latest WP version (4.9.6) and latest woo version (3.4.3).