hatchlingweb
Forum Replies Created
-
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).
Actually I have tested this issue further and found that wp-login and wp-admin only works when you are logged or have seen/visited the login page. If you go to ‘wp-login.php?itsec-hb-token=XXXX’, thereafter it goes to any variation. There appears to be some sort of strange caching or something going on as once you have successfully access the login page it seems to work every time after that (with wp-login.php or wp-admin). :-S
Forum: Plugins
In reply to: [Portfolio Gallery - Photo Gallery] Stopped working after PHP upgradeActually seems to only be displaying that way on Google Chrome as I just loaded the website on Microsoft Edge and its displaying the gallery straight away. Very odd!
Forum: Plugins
In reply to: [Easy Testimonials] Width of Slider ItemsYes, still needing help. Can I send a link privately as I prefer not to post the url live on the forum.
Forum: Plugins
In reply to: [Easy Testimonials] Turn off Console Logs?Thank you. Much appreciated. ๐
Forum: Plugins
In reply to: [Easy Testimonials] Width of Slider ItemsHave replied via your websites contact form with the link. Thank you.