Forum Replies Created
-
AuthorPosts
-
Thanks for replying. We managed to sort the horizontal scroll by removing this line from enfold/css/grid.css
html { min-width: 910px; }
- This reply was modified 2 years, 7 months ago by interfacemedia.
Hi there
Thanks for your response. We did reach out to elementor directly. And as expected they were not really willing to provide third party support but what they did state was that enfold was removing the mobile styles for elementor. Is there a way we can disable mobile styles for enfold ?
Their actual response
Hello there,
Thank you for your patience!We checked it, and it seems that no mobile styles are being applied to the content when the Enfold theme is active:
alt image
In this case, I will recommend you report this issue to the Enfold theme support team. Unfortunately, we are not providing any support for 3rd party themes as we do now have any control over their development.I think i got it.
In enfold/config-woocommerce/woocommerce-mod.jsI added the line
$( document ).on( 'facetwp-loaded', avia_apply_quant_btn );
after here
$('body').on( 'wc_fragments_refreshed', avia_cart_dropdown_changed );
And it seems to have resolved the issue.
January 9, 2017 at 10:42 am in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #731036This fix worked like a charm. Many thanks for the update
December 19, 2016 at 9:42 am in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #725968No problem. Thanks very much for your assistance. Will wait for your reply
December 15, 2016 at 9:49 am in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #724809Hi there
Thanks for your assistance in this. While your fix does work for the first time. It doesn’t work a second time. Say for example i have 80 quantities of a product in my cart on page load. i can increase or decrease the quantities either way before pressing update cart and the icon reflects perfectly. The moment you press update cart is when it doesn’t do it again until you refresh the page.
December 13, 2016 at 10:11 am in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #723627Strange!. i’ve updated the credentials to the ones sent above. Also i have updated Enfold to the the latest version but the cart icon doesn’t update when changing the cart amount.
December 8, 2016 at 7:36 pm in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #722140Here you go
- This reply was modified 8 years ago by interfacemedia. Reason: password was not being changed
December 7, 2016 at 2:39 pm in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #721496Also something else i’ve just noticed. If you delete all products from the cart. The number still reflects in the icon until the page is refreshed.
or here
https://postimg.org/image/w4geotl97/- This reply was modified 8 years ago by interfacemedia. Reason: adding screenshot link
December 7, 2016 at 2:37 pm in reply to: Cart Drop Down Icon Number Not Updating On Update Cart Button #721494I’m using a temporary fix as found here : https://gist.github.com/mikaelz/f41e29c6a99a595602e4
To force a page reload when cart is updated
October 17, 2016 at 12:15 pm in reply to: Add to cart links changing when using facetwp pagination #699901Once again the FacetWP developers have come through with this solution
Add the below to the theme function file<?php // Add to functions.php function fwp_cart_link() { ?> <script> (function($) { $(document).on('facetwp-loaded', function() { FWP_HTTP.current_url = window.location.href; }); })(jQuery); </script> <?php } add_action( 'wp_head', 'fwp_cart_link', 100 ); add_filter( 'woocommerce_product_add_to_cart_url', function( $url ) { if ( function_exists( 'FWP' ) && isset( FWP()->facet->http_params['current_url'] ) ) { $url = FWP()->facet->http_params['current_url']; } return $url; });
Just on the back of my solution previously
The FacetWP developers got back to me and said that this line
$( document ).on( 'facetwp-refresh', avia_apply_quant_btn );
Should be this
$( document ).on( 'facetwp-loaded', avia_apply_quant_btn );
‘facetwp-refresh’ happens when the ajax call starts. But you’ll need to use ‘facetwp-loaded’ for it to apply after the ajax call.
However now i have a different issue but it is related. if you look at this problem here
You will see i’m echoing the Add to cart url above the button. If you then scroll down to the bottom and click on page 5 you will those URL’s change from
/products/?fwp_paged=4&add-to-cart=5948
to
/wp-admin/admin-ajax.php?add-to-cart=5941
Something is not being applied to the buttons but not sure what. If you add a product to cart on page 4 it works perfect but clicking add to cart on page 5 or any other page returns a 0 on a white page.
Can you help out here ?
- This reply was modified 8 years, 2 months ago by interfacemedia.
Just a solution here in case it helps anyone with the same issue.
Find this code
$( document ).on( 'updated_cart_totals', avia_apply_quant_btn ); $( document ).on( 'facetwp-refresh', avia_apply_quant_btn );
Apply this code below it
$(document).ajaxStop(function () { avia_apply_quant_btn(); });
This applies the quantity buttons when the ajax has finished loading / stopped
Hey there
Any other suggestions here ?
Hey there
i applied your change but unfortunately it’s made no difference.
We are using this function in functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 ); function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { $html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">'; $html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>'; $html .= woocommerce_quantity_input( array(), $product, false ); $html .= '</form>'; } return $html; }
And then our quantity-input.php looks like this
<div class="quantity"> <input type="number" step="<?php echo esc_attr( $step ); ?>" min="<?php echo esc_attr( $min_value ); ?>" max="<?php echo esc_attr( $max_value ); ?>" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" id="quantity-<?php echo $product->id;?>" class="input-text qty text" size="4" pattern="<?php echo esc_attr( $pattern ); ?>" inputmode="<?php echo esc_attr( $inputmode ); ?>" /> </div>
I’ve also applied your suggested fix to woocommerce-mod.js
$( document ).on( 'updated_cart_totals', avia_apply_quant_btn ); $( document ).on( 'facetwp-refresh', avia_apply_quant_btn );
Any other suggestions ?
Hi Ismael,
Thanks for this. Unfortunately the result wasn’t exactly what the client wanted. It removed all the filter categories except the “All” category. We need all the category names to display and filter when selected.
Hope you can assist. Appreciate all the help so far.
Kind Regards,
Joline
Hi Rikard,
Apologies for only getting back to you now. Please see temporary login details in the Private Content area.
Kind Regards,
Joline
Hi Rikard,
Thanks for this.
It looks much better! Is it possible to have the icon next to the menu toggle like we have on devices from 768px to 990px?
I adjusted your code for this (I have it aligned with toggle), but struggling to position it next to the menu toggle?
@media only screen and (max-width: 767px) {
#menu-item-search a {
height: 10px !important;
line-height: 0px !important;
padding-left: 70px !important;
position: relative;
top: -50px;
}
}Kind Regards,
Joline
Hi Basilis,
I work on Firefox and for mobile, iPhone S6 Safari. Looks like Chrome also has the same problem.
Thanks for the quick reply!
Kind Regards,
Joline
Hi Vinay & Yigit,
Thank you both for the above and your support. I will look into the suggestions and hopefully find a solutions.
Kind Regards,
Joline
Hi Yigit,
Thank you so much for this. It worked perfectly, but as soon as you reach 767px and lower, a huge gap appears in the logo area.
Any advice here would be much appreciated.
Kind Regards,
Joline
-
AuthorPosts