I really love your plugin.
The header cart is showing on staging : https://stage.lifeline.mk/ but not on live site : https://lifeline.mk/ even they are completely equal. Everything else is functioning great, only the cart icon is not showing. Because we need it in the header I manually added the code that is printed in staging in header, the cart icon is now showing and it’s initially set to zero. If you are adding products it’s incrementing and that is perfectly fine, but if you refresh the page or go to another page it’s again set to zero. Probably some AJAX functionality, if you add another product the cart is triggered and it shows the actual number well.
I don’t know why the cart was not showing when the sites are equal?
If show it with the code like this is there some functionality to send the actual number of items on page load?
Best wishes, Klime
]]>Im using plugin wpcart menu, it has shortcode but it doesnt work if I put it in header.php also I tried their php code doesnt work too, and I dont have block in customize stuff “header” as you all have it your themes
help me please
]]>@media only screen and (min-width: 768px) {
.primary-navigation {
display: none !important;
}
.handheld-navigation, .main-navigation.toggled .handheld-navigation, .main-navigation.toggled div.menu, .menu-toggle {
display: block !important;
}
}
However, no matter what I try, I cannot get the cart icon to display below 768px (breakpoint) I can get the actual cart contents and text span (amount and qty) to show with similar markup to the above with a float: right, but I don’t want those.
I disabled the footer mobile menu (which is where the cart icon would show up) and tried umpteen css tweaks, searched every file I could see for a clue but to no avail. Is it a code thing?
My site is “under construction” but I haven’t done much to the original in the demo linked. Thank you.
I’d like customers to go to my custom page before the checkout. Therefore I’ve changed the checkout url to my page, which then re-directs to the checkout once the form there is complete.
I’m using the following to filter the custom url anywhere but the checkout.
function jmfe_redirect_checkout($url) {
global $woocommerce;
if( ! is_checkout()){
$checkout_url = 'https://localhost:28/camplight.dev/checkout';
}
return $checkout_url;
}
add_filter('woocommerce_get_checkout_url', 'jmfe_redirect_checkout');
This works for all links to the checkout other than the header cart. As far as I can see throughout the core code of the theme and the WooCommerce plugin – the code used is in the mini-cart.php file as the header cart (as far as I can see) is calling an instance of the cart widget.
Therefore, I imported the mini-cart.php file into my theme as per usual when overriding WooCommerce template files. I changed the link to the checkout to my custom page, but the changes weren’t in the site.
I also, just to test changed the link in the actual plug file, but the changes were still not reflected in my theme.
Am I missing something about the way the header cart is called?
]]>I’d like to customers to go to my custom page before the checkout. Therefore I’ve changed the checkout url to my page which then re-directs to the checkout once the form there is complete.
I’m using the following to filter the custom url anywhere but the checkout.
function jmfe_redirect_checkout($url) {
global $woocommerce;
if( ! is_checkout()){
$checkout_url = 'https://localhost:28/camplight.dev/checkout';
}
return $checkout_url;
}
add_filter('woocommerce_get_checkout_url', 'jmfe_redirect_checkout');
This works for all links to the checkout other than the header cart. As far as I can see throughout the core code of the theme and the WooCommerce plugin – the code used is in the mini-cart.php file as the header cart (as far as I can see) is calling an instance of the cart wiget.
Therefore, I imported the mini-cart.php file into my theme as per usual when overriding WooCommerce template files. I changed the link to the checkout to my custom page, but the changes weren’t in the site.
I also, just to test changed the link in the actual plug file, but the changes were still not reflected in my theme.
Am I missing something about the way the header cart is called?
]]>Where can I hardcoded a simple _blank to open my checkout buttons on a new window? I need the cart on the header to do that. Please help.
]]>