Home › Forums › WoodMart support forum › page always acutomatically reload 2 times when click on colum options on shop
page always acutomatically reload 2 times when click on colum options on shop
- This topic has 36 replies, 2 voices, and was last updated 4 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
May 12, 2020 at 10:51 am #194316
CYCLEPROParticipantHello,
i have 2 questions:
1. why page loading stopped on halp way sometimes when click on column options?. that leads to be unable load buttons properly.2. why page always acutomatically reloads 2 times when click on colum options?
3. why loading speed is much slower than before.
please help to check if any JavaScript error or ther reasons, also see attached, thank you so much.
May 12, 2020 at 10:52 am #194318
CYCLEPROParticipantreupload
May 12, 2020 at 10:54 am #194322May 12, 2020 at 12:12 pm #194331
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
May 12, 2020 at 11:41 pm #194483
CYCLEPROParticipantHello,
Thank you very much for that you’ll lend a helping hand.
Yes i can, but it’s better don’t stop other plugins too long because website has been published to market, so please stop it by yourself when you are checking the theme.May 13, 2020 at 6:16 am #194522
Artem TemosKeymasterYour website seems to be somehow slow down by some of the installed plugins. It is quite slow on the backend too. Could you please try to disable all plugins and check how it works?
May 13, 2020 at 7:06 am #194539
CYCLEPROParticipantHi,
for fast way to check it pease do it yourself, thank youMay 13, 2020 at 9:10 am #194575
Artem TemosKeymasterBut we are sure that your website is slow because of external plugins so it not necessary to check ourselves. You need to check this from your side to see which of them cause such troubles.
May 13, 2020 at 10:22 am #194605
CYCLEPROParticipantOkay, so cuold you please fix the problem of loading first? which cause buttons are not loaded properly.
May 13, 2020 at 11:37 am #194626
Artem TemosKeymasterWe can increase the waiting time for a response from AJAX so that the page does not reload.
Add this code tofunctions.php
in your child themeadd_filter( 'woodmart_pjax_timeout', function(){ return 30000; } );
Kind Regards
May 14, 2020 at 2:16 am #194789
CYCLEPROParticipantHi,
thank you so much for helping me so much. The code boost loading speed for sure.
But, an old problem reoccured of buttons are not loading properly, which this is the puzzle. Once you provided a long string of code to solve this problem, but now the problem appears again.
See attached please.Attachments:
You must be logged in to view attached files.May 14, 2020 at 2:20 am #194793May 14, 2020 at 6:14 am #194822
Artem TemosKeymasterYou have some custom CSS that we didn’t send you. Please, remove all your custom CSS that influence this button http://prntscr.com/sggfl8 http://prntscr.com/sggfs4
May 14, 2020 at 9:30 am #194892
CYCLEPROParticipantHi,
In a previous tick, we have discussed about this issue and you provided me with long code, i was tested and looked useful at that moment, and later i didn’t put any code like you mentioned. so do i need firstly delete the long code once you sent me below? for it doesn’t work because the issue still on.
https://xtemos.com/forums/topic/issue-of-4-product-grids-per-row/
function hoverSmallContent() {
jQuery(‘.woodmart-hover-base’).each(function () {
var $el = jQuery(this),
$elBtn = $el.find(‘.woodmart-add-btn’),
widthHiddenInfo = $el.outerWidth();
if (widthHiddenInfo < 255 || jQuery(window).width() <= 768) {
$el.addClass(‘add-small-content’);
if ($el.hasClass(‘woodmart-hover-base’)) {
$elBtn.addClass(‘wd-action-btn wd-add-cart-btn wd-style-icon’);
}
} else {
if ($el.hasClass(‘woodmart-hover-base’) && (jQuery(‘body’).hasClass(‘catalog-mode-on’) || jQuery(‘body’).hasClass(‘login-see-prices’))) {
$el.find(‘.wd-bottom-actions .wd-action-btn’).removeClass(‘wd-style-icon’).addClass(‘wd-style-text’);
}
}
});
}
if (jQuery(window).width() <= 768) {
hoverSmallContent();
}
jQuery(document).on(‘pjax:end’, function (xhr, textStatus, options) {
hoverSmallContent();
});things became complicated, hope got surpport. thank you!
May 14, 2020 at 12:23 pm #194963
Artem TemosKeymasterNo, we didn’t ask you to remove that code. Please, remove your custom CSS that shown on screenshots http://prntscr.com/sggfl8 http://prntscr.com/sggfs4
We didn’t give you that part.May 14, 2020 at 12:26 pm #194966
CYCLEPROParticipanthello,
Thank you, ok buy i can only found the code are not in custom ss but in Additional CSS of appearance. right?
May 14, 2020 at 12:35 pm #194970
CYCLEPROParticipantattachment please help to check
Attachments:
You must be logged in to view attached files.May 14, 2020 at 12:38 pm #194972
CYCLEPROParticipantsorry, i can find code same as https://prnt.sc/sggfl8 but cannot find code same as https://prnt.sc/sggfl8 that’s why i’d like to check with you with that screenshot above
May 14, 2020 at 1:36 pm #194982
Artem TemosKeymasterYes, try to remove that code and check how it works.
May 15, 2020 at 1:25 am #195151
CYCLEPROParticipantHi,
After removing the code, the original problem is still on
and causes other issue as you can see in attachment that circled buttons they became not in same szie after remove code, so we cannot remove the code, please try to manage it with other solutions
Thank you!Attachments:
You must be logged in to view attached files.May 15, 2020 at 6:19 am #195178
Artem TemosKeymasterTry to add the following code snippet to the Custom CSS area in Theme Settings to decrease the add to quote button. But don’t return that code since it will break the layout as you already saw.
.yith-ywraq-add-to-quote .button { padding: 10px 14px; line-height: 16px; font-size:12px; }
May 15, 2020 at 7:10 am #195191
CYCLEPROParticipantHi,
I think even this new code sinppet is not as good as before; problems listed below:
1. it leads to other problem that button “X” is not cickable when submintting ADD TO QUOTE.
2. The upper and lower gaps are too large.
3. Buttons between 3 column and 4 column are quite defferent,
4. the basic problem of buttons on 4 column are changed nothing. which is the key to the question that we have to improve.May 15, 2020 at 9:45 am #195207
Artem TemosKeymaster1. It was never clickable because it is loaded with AJAX. Remove the X button with the following CSS code
.yith_ywraq_add_item_product_message:after { display: none!important; }
2. What exactly gap do you mean?
3. There is some bug in our JS core files that causes this problem. After our next theme update, it will work correctly after columns change as well.
May 15, 2020 at 10:16 am #195266
CYCLEPROParticipantHello,
Thank you for your support.
I’d like to know whether you will improve buttons style and layout to be same as samples (samples on attachment) on your next theme update? Thanks!Attachments:
You must be logged in to view attached files.May 15, 2020 at 12:08 pm #195291
Artem TemosKeymasterWe will not change the style but the problem when you switch between 3 and 4 columns will be solved.
May 16, 2020 at 1:15 am #195435
CYCLEPROParticipantHi,
ok, noted.
Since you said that, Yith gave me a new code snippet that finally fixed loading issue of button on when clicking 4 column option.
but just remains one thing that need your help once more.
please see attachment, thanks!Attachments:
You must be logged in to view attached files.May 16, 2020 at 8:56 am #195473
Artem TemosKeymasterYes, that is what we were talking about and will be fixed in our next theme update. It is because of a bug in our core JS script and it is not possible to fix it with a quick code fix.
July 15, 2020 at 2:31 am #210976
CYCLEPROParticipantHello there,
After updating to woodmart new version yesterday, I checked issue but there is nothing improved on this issue, please review the last Attachment on this topic to understand what is my meaning. Thanks!
Regards,
July 15, 2020 at 7:21 am #211037
Artem TemosKeymasterHello,
Have you added the code we gave you to the child theme
functions.php
file? Please, send us a screenshot.add_filter( 'woodmart_hover_width_small', '__return_false' );
Regards
July 15, 2020 at 7:42 am #211059
CYCLEPROParticipantHi,
Yes, I have added this code add_filter( ‘woodmart_hover_width_small’, ‘__return_false’ ); to child theme functions.php, so? -
AuthorPosts
- You must be logged in to create new topics. Login / Register