Home › Forums › WoodMart support forum › Add to cart issue with bundle products
Add to cart issue with bundle products
- This topic has 25 replies, 3 voices, and was last updated 3 years, 3 months ago by
Artem Temos.
-
AuthorPosts
-
September 7, 2021 at 1:52 pm #317012
hpbParticipantHi, i got some help the other day here: https://xtemos.com/forums/topic/add-to-cart-button-placing-on-mobile-single-product-page/
We just found one issue with the code, where add to cart for bundle products looks weird and is moved to a new column: http://prntscr.com/1rhk8mx
This code was inserted:
form.cart, .woocommerce-variation-add-to-cart { display: flex; } form.cart > button, .woocommerce-variation-add-to-cart > button { flex-grow: 1; }
September 8, 2021 at 6:37 am #317126
Aizaz Imtiaz AwanKeymasterHello,
Sorry, my mistake, please try adding the following Custom CSS in the Mobile Custom CSS area under Theme Settings >> Custom CSS and remove the CSS from the Global Custom CSS section.
Best Regards.
September 8, 2021 at 6:54 am #317131
hpbParticipantThis fixed the issue on the desktop, but the button looks very similar on the mobile view of bundles. Basically the issue is only on the mobile site now-
September 8, 2021 at 9:44 am #317165
Aizaz Imtiaz AwanKeymasterHello,
The button is showing fine on both desktop and mobile devices. Please see the screenshot: https://ibb.co/s3YynmR
Best Regards
October 14, 2021 at 5:07 am #325057
hpbParticipantSorry for the late reply. Been quite busy with other things.
Yeah, it does work on the mobile single product page, but not for bundle products on mobile:
https://prnt.sc/1w2q4hgOctober 14, 2021 at 7:17 am #325093
Aizaz Imtiaz AwanKeymasterHello,
Please provide the URL of a bundled product to check it myself and help you out accordingly.
Best Regards.
October 14, 2021 at 8:30 am #325108
hpbParticipantInserted a direct link in private content. Please look at the mobile version of the link.
October 14, 2021 at 11:16 am #325153
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.product-type-yith_bundle form.cart, .woocommerce-variation-add-to-cart { display: block; }
.product-type-yith_bundle form.cart > button, .woocommerce-variation-add-to-cart > button { display: inline-block; position: absolute; }
Best Regards.
October 14, 2021 at 3:17 pm #325229
hpbParticipantWorked great, I appreciate it. π
A minor issue is that the button goes over the right edge of the screen on my phone. The picture is in private content
October 15, 2021 at 6:46 am #325341
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.product-type-yith_bundle .product-image-summary .single_add_to_cart_button { width: 68%; }
Best Regards.
October 31, 2021 at 6:17 pm #328794
hpbParticipantHi Aizaz,
That worked well on bundles and normal products. On variant products it shows wrongly on mobile view, I pasted example link in private.
November 1, 2021 at 7:17 am #328849
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.product-type-variable form.cart { display: block; }
Best Regards
November 3, 2021 at 2:21 pm #329434
hpbParticipantThanks, Aizaz that worked.
Now I got an issue with the gallery images on the desktop. The screenshot is in a private area and all the latest CSS changes the past month is there as well.
Somehow the gallery only shows correctly on the desktop view if I’m logged in?
Custom CSS changes on the desktop the past weeks:
.woocommerce div.product .woocommerce-tabs .panel h2 { display: none; } .woocommerce-info { background-color: #ffffff !important; color:#000000; } .tabs-location-summary .tabs-layout-accordion .wd-accordion-title { font-size: 17px; font-weight: bold; }
November 4, 2021 at 7:12 am #329528
Aizaz Imtiaz AwanKeymasterHello,
You are Most Welcome.
Please deactivate all the third party plugins, activate the parent theme then clear cache and check back.
If the issue still occurs then leave all the third party plugins deactivated and provide the login details of the website.
Best Regards
November 11, 2021 at 2:36 am #330953
hpbParticipantHey Aizaz,
I found the issue. It has to do with WP rocket delay javascript execution. Do you have any ideas how to exclude the gallery on desktop? I have these excluded:
/smart-slider-3/(.*).js /jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js combine.min.js waypoints.min.js /jquery-migrate(.min)?.js /woodmart/js/scripts/global/helpers.min.js /woodmart/js/scripts/wc/productImages.min.js /wp-includes/js/jquery/jquery-migrate.min.js /jquery- jQuery /jquery-migrate.min.js _N2 wooptpm.js google-analytics.com/analytics.js ga\( ' ga\(' /gtag/js gtag\( /gtm.js /judgeme_widget_v(.*).js jdgmSettings woodmart/js/libs/owl.carousel.js woodmart/js/libs/owl.carousel.min.js woodmart/js/scripts/global/owlCarouselInit.js woodmart/js/scripts/global/owlCarouselInit.min.js mobileNavigation helpers headerBuilder menuOffsets clickOnScrollButton analytics awAddGift.js analytics.js gtag.js optimize.js main.js tp.widget.bootstrap.js
November 11, 2021 at 12:06 pm #331124
Artem TemosKeymasterAs we can see, it is currently turned off and works correctly https://gyazo.com/65440fc785f95ebde979011139ad53e9
November 11, 2021 at 12:09 pm #331127
hpbParticipantI turned it off because itβs single dat sale and not having the Gallery on desktop hurts the conversion rate. Do you want me to turn it on? Itβs not working with the JavaScript delay execution turned on
November 11, 2021 at 12:11 pm #331131
Artem TemosKeymasterYes, enable this, please. Also, disable Combine JS option in Theme Settings -> Performance -> JS.
Kind Regards
November 11, 2021 at 1:12 pm #331180
hpbParticipantHi Artem,
I enabled it again and the combine js option was already disabled. π
JavaScript delay execution turned on
Combine javascript files is offNovember 11, 2021 at 1:14 pm #331181
Artem TemosKeymasterStrange, but it is still turned on https://gyazo.com/62efc1f0da1f5d83750dd9ab0658bef2
Please, disable extra plugins temporarily and send us your admin access so we can check what is wrong.November 11, 2021 at 1:25 pm #331186
hpbParticipantWeird its done and i have attached login information in private content area.
I have tested it with no plugins and im certain, that it has to do with wp rocket delay javascript execution.
Thanks for the help!
November 11, 2021 at 1:27 pm #331188
Artem TemosKeymasterTry to add the following file to the exception list in WP Rocket now
productImagesGallery
.November 11, 2021 at 1:31 pm #331190
hpbParticipantproductImagesGallery did not work sadly
November 11, 2021 at 1:36 pm #331192
Artem TemosKeymasterPlease, check how it works now.
November 11, 2021 at 1:57 pm #331198
hpbParticipantWorks great! Thanks for the help π
November 11, 2021 at 2:21 pm #331204
Artem TemosKeymasterWe are glad that you sorted it out. Let me know if you need any further assistance.
Have a nice day!
-
AuthorPosts
The topic ‘Add to cart issue with bundle products’ is closed to new replies.
- You must be logged in to create new topics. Login / Register