-
AuthorPosts
-
December 21, 2016 at 10:31 am #726961
Hi Enfold dev,
I bought yesterday Measurement Price Calculator Plugin of Woocommerce.comSince I have installed this plugin the field of “number item add to cart +/-” in product page makes an error. And couldn’t add product to cart.
I alerte with a ticket on woocommerce.com and their developpers answer me to activate Twenty Sixteen to see if it’s due to Enfold Theme.The website is at few days of opening to public so it’s very urgent
My problem is exactly this: https://kriesi.at/support/topic/conflict-between-woocommerce-measurement-price-calculator-and-enfold/
But i’m not on a child enfold theme I use the parent.Waiting for your well known professionnalism to fixe the issue on my parent theme
(need a solution that will not be overwrite in your next update and will not disable some ajax effect)
RegardsDecember 22, 2016 at 6:35 am #727398Hey jb84,
Did you try Josues suggestion in your parent theme? I would recommend that you use a child theme though since you will lose all edits your make to the parent theme on updates: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
Best regards,
RikardDecember 22, 2016 at 1:01 pm #727501Hi,
so I clone to a child theme.
And follow exactly this reffer:
https://kriesi.at/support/topic/conflict-between-woocommerce-measurement-price-calculator-and-enfold/Everything work find now but the buttons + and – in between the quantity field has desaepeared.
I found an old topic for this problem but josua said to reffer to the post above (but i reffered on it!)
Can you please have an urgent look of it?
Thanks in advance for your very professionnal support!December 28, 2016 at 4:46 pm #728367Hi,
I do not have much experience with measurement price calculator plugin unfortunately however when i checked the examples here – https://woocommerce.com/products/measurement-price-calculator/ it seems like by default quantity buttons do not show up. I also tried temporarily activating Twenty Sixteen theme and quantity buttons still did not show up.
Can you please check with Woo support theme once again and make sure that all settings are correct and that quantity buttons should display?
Sorry for the late reply, thanks for your kind words.
Enjoy your holidays! :)Best regards,
YigitJanuary 3, 2017 at 11:46 am #728922Hi
yes quantity buttons should display.I found why buttons are hidden, it’s because of an issue given by one of your moderator to add this snippet:
add_action(‘init’, function() {
wp_dequeue_script( ‘avia-woocommerce-js’ );
wp_enqueue_script( ‘avia-woocommerce-child-js’, get_stylesheet_directory_uri().’/js/woocommerce-mod.js’, array(‘jquery’), 2, true );
}, 11, 1);Effectively it solv the problem of compatibility between ENFOLD and Measurement Price Calculator but make diseapered the buttons.
An idea to fix this ?January 4, 2017 at 6:29 am #729297Hi,
What are the modifications added in the child theme’s “js/woocommerce-mod.js” file? Please post it on pastebin.com.
Best regards,
IsmaelJanuary 4, 2017 at 3:26 pm #729447hi,
info in private
thanks with your helpJanuary 6, 2017 at 4:38 am #730142Hi,
Please remove this part completely.
function avia_apply_quant_btn() { } avia_apply_quant_btn(); //if the cart gets updated via ajax (woocommerce 2.6 and higher) we need to re apply the +/- buttons $( document ).on( 'updated_cart_totals', avia_apply_quant_btn );
Let us know if it makes any difference.
Best regards,
IsmaelJanuary 6, 2017 at 10:53 am #730261Hi Ismael and very thanks for your help.
I removed the code above completely from enfold-child / js / woocommerce-mod.js
It doesn’t change anything, +/- buttons not display. Please see link in private.Maybe my comment of January 3, 2017 at 11:46 am maybe help you.
I thank you in advance for the time you spend on it, it’s very important website on production!
January 9, 2017 at 6:54 am #730991Hi,
Why is the “avia_apply_quant_btn” function empty? Did you place it somewhere else? Please post the FTP details here so that we can check this further.
Best regards,
IsmaelJanuary 9, 2017 at 5:08 pm #731197Hi,
I think I did not change the “avia_apply_quant_btn” function…
I give you in private ftp details ONLY IF your work on it BEFORE sunday 15th of january.
Website have to be perfect on sunday night
If you have time only after this date please do not access/change anything on the website.January 12, 2017 at 5:19 am #732438Hi,
Are you sure that this is the correct file server? I modified the style.css file to test it but it’s not taking effect in the frontend. This css codes in the style.css file should hide the cart dropdown and the logo but it’s not working.
.logo { display: none !important; } #menu-item-shop { display: none !important; }
Best regards,
IsmaelJanuary 12, 2017 at 9:46 am #732546Your css is working!
logo and cart are hidden here :But why did you do that?!
I just erase this css code in style cssSo what about the problem of +/- buttons on product page and on cart page?
January 12, 2017 at 9:47 am #732547attention
January 12, 2017 at 12:52 pm #732623Hope Ismael your are working on the website because of an actually problem to add to cart button on products list!!!…
Can you confirm please, we are scare?I think it is due to your modification of few hours ago on the file named (see in private) in js folder.
Please can you undo as soon as possible and make your test on the test folder. Or in the root but please don’t let website with errors (can’t add to cart, number under cart icon dessepearded…)
————- New answer —————-
Ok I find, you rename the woo.js with back
I undo it. Can you undo if you made others modifications?
So can you fixe the “+/- button not desplay problem on all the website” before sunday?- This reply was modified 7 years, 10 months ago by jb84.
January 12, 2017 at 5:55 pm #732739Hey!
It seems like Ismael made only CSS changes he mentioned in his last post. We have asked him to check this thread again.
Best regards,
YigitJanuary 14, 2017 at 3:17 am #733415Hey!
But why did you do that?!
I just erase this css code in style cssI did it because I wanted to test if it’s the correct file server. The changes I created are not affecting the site “https://paumedeterre.fr”.
So can you fixe the “+/- button not desplay problem on all the website” before sunday?
The quantity buttons are not displaying even before I placed the css modifications. I can’t fix it because the changes that I put into the files are not taking effect in the frontend. Is there a server cache or did you subscribe to a cdn provider?
And follow exactly this reffer:
https://kriesi.at/support/topic/conflict-between-woocommerce-measurement-price-calculator-and-enfold/
Everything work find now but the buttons + and – in between the quantity field has desaepeared.Did you put the following code somewhere? I can’t find it in the child theme’s functions.php file.
add_action('init', function() { wp_dequeue_script( 'avia-woocommerce-js' ); wp_enqueue_script( 'avia-woocommerce-child-js', get_stylesheet_directory_uri().'/js/woocommerce-mod.js', array('jquery'), 2, true ); }, 11, 1);
Please get a fresh copy of the theme then override your installation just to make sure that none of the files are modified.
Cheers!
IsmaelJanuary 14, 2017 at 11:07 am #733519Hey!
hey ISMAEL!!!But why did you do that?!
I just erase this css code in style css
I did it because I wanted to test if it’s the correct file server. The changes I created are not affecting the site “https://paumedeterre.fr”.You are wrong it affect the production website (actually and until this afternoon website is in work (hide for public).
And you have rename for a second time the enfold file js who make disapered number under cat!!!! I redo it for second time.
Please see in private for clear detailSo can you fixe the “+/- button not desplay problem on all the website” before sunday?
The quantity buttons are not displaying even before I placed the css modifications. I can’t fix it because the changes that I put into the files are not taking effect in the frontend. Is there a server cache or did you subscribe to a cdn provider?
here you are write. It’s not because of you css modifications. This problem is THE problem because of why a opened this post.
Another time: yes it take effet on frontend. Please see in private for clear detailAnd follow exactly this reffer:
https://kriesi.at/support/topic/conflict-between-woocommerce-measurement-price-calculator-and-enfold/
Everything work find now but the buttons + and – in between the quantity field has desaepeared.
Did you put the following code somewhere? I can’t find it in the child theme’s functions.php file.
add_action(‘init’, function() {
wp_dequeue_script( ‘avia-woocommerce-js’ );
wp_enqueue_script( ‘avia-woocommerce-child-js’, get_stylesheet_directory_uri().’/js/woocommerce-mod.js’, array(‘jquery’), 2, true );
}, 11, 1);Yes I did. The snippet is activated on front and backend.
Sorry but we are a little stress because of +/- button not displayJanuary 16, 2017 at 7:08 am #733906Hi!
Again, we would like to ask you to get a fresh copy of the theme then override your installation just to make sure that none of the files are modified or missing.
So can I ask you to NOT work on enfold root AND NOT on enfold child root.
Can you work ONLY on this folder TEST in www
You can see you effects here : EDITEDI’m sorry but you didn’t mention this right away. I’m actually working on the wrong directory before I posted that the css modifications are NOT affecting the site.
Yes I did. The snippet is activated on front and backend.
Where did you put it? I checked both the parent and the child theme’s function.php file but I can’t find that code. Please check it yourself. That snippet is used to load the woocommerce-mod.js file from the child theme instead of the parent theme so without it the js file in the child theme is useless. And without that snippet, the js file is not going to affect the site even if I rename it or delete it completely.
Regards,
IsmaelJanuary 16, 2017 at 12:23 pm #733998Hi,
I just rewrite the TEST enfold theme folder with last version.
On the TEST folder you can do what you want but please don’t touch the root folderYou will see the snippet in admin dashboard (carefull to be on the admin test folder URL) / black menu on the left / SNIPPET
The name of the snippet is : “measurment pour marcher avec enfold”January 16, 2017 at 3:51 pm #734112Hey!
Alright. The add to cart button is working now. We replaced the following line in the child theme’s woocommerce-mod.js file:
newNum = jQuery(jQuery('<div />').append(number.clone(true)).html().replace('number','text')).insertAfter(number);
.. with:
newNum = jQuery(jQuery('<div />').append(number.clone(true)).html()).insertAfter(number);
.
Please remove browser cache or hard refresh before checking one of the products.
Cheers!
IsmaelJanuary 16, 2017 at 4:16 pm #734142Very thanks Ismael for the time spend on our problem!
Now it’s perfect working!January 17, 2017 at 7:24 am #734515 -
AuthorPosts
- The topic ‘Conflict between ENFOLD and Measurement Price Calculator [URGENT]’ is closed to new replies.