overmountain Posted May 13, 2024 Posted May 13, 2024 I am trying to write a widget for OSC4. On the backend, in the Design and CMS - Themes link, you can click Customize and get a WYSIWYG edit to add widgets to your pages. I was able to add a widget in the widget popup by adding a file for it in: lib/backend/design/boxes/include/ But when I try to drag it on the page it does not work. I have tried adding the widget by hand by editing the database table: design_boxes. But it seems to work for a little while and then disappears after using the editor again. Is there any developer documentation on how to write a widget and add it to a page, both the backend and the frontend components? Thank you! Quote
pandrei Posted May 14, 2024 Posted May 14, 2024 On 5/13/2024 at 5:00 PM, overmountain said: Is there any developer documentation on how to write a widget and add it to a page, both the backend and the frontend components? Thank you! Try this example: https://www.oscommerce.com/wiki/Sample_of_Creating_Extensions_with_Widget_for_Editing_and_Outputting_Additional_Information_about_Product Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.