Home › Forums › WoodMart support forum › Buy Now button alignment For Mobile device ( variable product )
Buy Now button alignment For Mobile device ( variable product )
- This topic has 11 replies, 2 voices, and was last updated 1 year, 9 months ago by
Luke Nielsen.
-
AuthorPosts
-
October 16, 2023 at 8:57 pm #504575
marketerjahidulParticipantBuy Now alignment for mobile device is ok (simple product ) -https://prnt.sc/IAdu9nbO01oz
But In variable product alignment is not ok see this -https://prnt.sc/E_PvAu58_i20Remember In mobile device Both simple products + Variable product – its should be this style like this -https://prnt.sc/IAdu9nbO01oz
I attached admin user and pass
October 16, 2023 at 9:20 pm #504577
marketerjahidulParticipantVariable product link -https://fuyana.shop/product/dawah-jersey-follow-the-sunnah-611/ (alignment ok)
simple product -https://fuyana.shop/product/igt-gas-safety-device/ (alignment not ok)
October 17, 2023 at 10:26 am #504670
Luke NielsenKeymasterHello,
Your custom code breaks the form, so please remove it and recheck the issue: https://prnt.sc/WzKFr5e3RPev
Let me know the results.
Kind Regards
October 17, 2023 at 11:18 am #504686
marketerjahidulParticipantYour answer proved that You don’t try to solve this problem for one time. why Not you read my message carefully.
I explain everything so that all of my problem cover it and you got it fully but your reply to it very lengthily process.
why not you check it form your side, you said i try to remove it at first and i see fix or not. But why don’t you check it from your side.
I explain everything please check it
Please carefully read customers every message .
October 17, 2023 at 11:26 am #504692
marketerjahidulParticipantYour answer proved that You don’t try to solve this problem for one time. why Not you read my message carefully.
I explain everything so that all of my problem cover it and you got it fully but your reply to it very lengthily process.
why not you check it form your side, you said i try to remove it at first and i see fix or not. But why don’t you check it from your side.
I explain everything please check it
Please carefully read customers every message .
=============================================Your reply I remove this code -form.cart {
justify-content: var(–content-align);
flex-wrap: nowrap !important;
display: inline-flex !important;
justify-content: center !important;
gap: 8px !important;
}why not you try this I share my admin pass
if you remove it from your side and again test it meet my requirements but You don’t do it
October 17, 2023 at 11:31 am #504693
Luke NielsenKeymasterHello,
I checked it via the browser before I sent you a message. So I made a video where you will be sure that the issue in your custom code that affects form on the mobile single product page:
Kind Regards
October 17, 2023 at 11:42 am #504694
marketerjahidulParticipantMake sure that both single product page and variable product page both the same style (display inline flex)
Like this – https://prnt.sc/IAdu9nbO01oz
October 17, 2023 at 12:34 pm #504730
Luke NielsenKeymasterHello,
For now, I see that the default styles work and on both pages the buttons are inline, here is a video:
https://monosnap.com/file/sGsQGZXDpsloGMQNX5suKcWFt9eDd5
Or do you mean that you want exactly the display inline flex CSS property for the buttons?
I await your response.
Kind Regards
October 17, 2023 at 1:00 pm #504747
marketerjahidulParticipantnot responsive fix it please browses it from mobile device – https://prnt.sc/DLmijIPA3M41
October 17, 2023 at 3:05 pm #504779
Luke NielsenKeymasterHello,
1. In our theme, the quantity, add to cart and buy now buttons are already inline, they fall under each other only if there is not enough horizontal space for them. This is done so that they do not go beyond the edge of the screen and are always available for clicking: https://gyazo.com/34a26cdd00681a1762084b2f4d4bdf97
With the help of custom code, you can turn off the wrapping of these elements so that they are always in one row, but in this case, on the smallest mobile screens, the buttons may go beyond the edge of the screen: https://gyazo.com/42da4d055125db0fc8b7560f14b9bddd
2. If you are satisfied with this position of the buttons on mobile, use the following custom code to disable the wrap for the buttons of simple and variable products:
/* simple product */ .summary-inner > .cart:not(.variations_form) { flex-wrap: nowrap; } /* variable product */ .summary-inner .variations_form .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }
Kind Regards
October 18, 2023 at 12:33 pm #505058
marketerjahidulParticipantok thanks got it
October 18, 2023 at 2:10 pm #505090
Luke NielsenKeymasterHello,
Always remember that you can reach out to us with any questions you may have.
Have a good day!
Kind Regards
-
AuthorPosts
The topic ‘Buy Now button alignment For Mobile device ( variable product )’ is closed to new replies.
- You must be logged in to create new topics. Login / Register