-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab created with Event.cs does not work on Mobile. #622
Comments
Be sure your returned content looks something like this:
Regards |
As you said, we get returns. But the content is empty. |
Have you pulled the latest code containing my commit? |
Add the class show to nav-collapse. |
I don't understand where to install it? Code Here: https://prnt.sc/vd8_UETukzE1 |
Look at the div in the code I've posted above. |
When clicked once on mobile, the content appears, but the tab does not close again. |
Can you please upload this somewhere so I can have a direct look. |
Can you give me your e-mail address? I would like to forward the module file privately to you. |
Send the link to info[at]smartstore.com |
I just checked your plugin. The code I've posted above is completely missing in the view ProductInstallmentTab.cshtml. Just wrap it around thecontent you're returning.
|
Thanks, I solved the problem! |
Describe the bug
if (tabStripName == "pd-tabs") { var entityId = ((EntityModelBase)eventMessage.Model).Id; var price = ((ProductDetailsModel)eventMessage.Model).Price.FinalPrice; await eventMessage.TabFactory.InsertAfterAsync("pd-reviews", builder => builder .Text("Taksit Seçenekleri") .Name("pd-tab-installment") .Icon("fas fa-credit-card", "fas") .LinkHtmlAttributes(new { data_tab_name = "Installment" }) .Action("ProductInstallmentTab", "CreditCardWeb", new { productId = entityId, priceAmount = price.Amount }) .Ajax()); }
Note: This code is taken from the document.
Document Link: https://smartstore.gitbook.io/developer-guide/compose/modules/examples/adding-tabs
With this code, we add a tab to the product detail section. It works fine on desktop but not on mobile.
To Reproduce
Steps to reproduce the behavior:
https://prnt.sc/mgKCTmSFruSN
)Expected behavior
The tab is expected to work in Desktop and Mobile versions.
Screenshots
Desktop (please complete the following information):
Additional context
The problem exists in versions 5.2 and 5.3.
The text was updated successfully, but these errors were encountered: