Closed samsonegba closed 4 years ago
@samsonegba can you share your cms block config here?
Okay its just as the basic structure you provided
{ "slider": [ { "title": "New Luma Yoga Collection", "image": "wysiwyg/home/slide1.jpg" }, { "title": "Even more ways to mix and match", "image": "wysiwyg/home/slide2.jpg" }, { "title": "Find conscientious, comfy clothing in our eco-friendly collection", "image": "wysiwyg/home/slide3.jpg" } ], "featuredCategories": { "42": { "title": "Woman Sales" }, "41": { "title": "Man Sales" } } }
Try to clear mobile app data. To do this you need to add persistor.purge();
at the end of src/store/index.js
I uninstalled the app from my physical device
I added persistor.purge();
at the end of src/store/index.js
ran react-native run-android
and it installs but unfortunately its still the same
Is the html element the expected response from server?
I see your problem
you have to press hide editor. In WYSIWYG editor mode it will wrap content with html tags.
Okay so as i mentioned earlier, I am new to react native and Magento. So regarding this issue, I had to figure what knowledge I was missing to be able to debug the issue, turns out I needed to learn react-redux, so I did a quick course on it.
Now I tracked to issue of sliders from the reducers
to the HomeSlider
component.
Finally it turns out the images I uploaded in magento
backend wasn't uploaded at all or perhaps wasn't uploaded to the selected directory.
About the featured products not showing, I checked the JSON and the items
value is empty array.
Will update when I fix see why that is.
I see your problem
you have to press hide editor. In WYSIWYG editor mode it will wrap content with html tags.
In your code, you filtered the html tags anyways
Okay, so its fixed now, the feature product was my bad. When I created the categories, I selected some products during creating the category.. but apparently they didn't reflect, so I edited some products and added new categories to the product. Thanks you @troublediehard for this awesome system.
Welcome! Glad to hear you solved your issues.
Describe the bug Hello, I am new to Magento and React Native as well, I followed the instructions and compiled the app, installed Magento and everything works fine except for the home page. The homepage displays the slider's caption but not the image itself, I have tried and restarted the app and local server many times, every other pages works fine, but the homepage doesn't.
Expected behavior I expected the homepage block to display with image as I carefully uploaded the image in path "wysiwyg/home/"and copied the image path to the slider->image JSON param
Screenshots
Additional context Add any other context about the problem here.