Hello, I am trying to create a page that would hold all of the items we are currently running promotions on. I would like a page and then a block in that page that has items manually selected. I went to layout section of the admin panel, created a new layout page and set the dispatch to be promotions.view. However when I try to visit the new page at https://domain.com/index.php?dispatch=promotions.viewI get the 404 page instead. How can I access the new layout page I created.
You should create a template for this page. For example, use My changes module and create the following template
design/themes/responsive/templates/addons/my_changes/views/promotions/view.tpl
thanks
You should create a template for this page. For example, use My changes module and create the following template
design/themes/responsive/templates/addons/my_changes/views/promotions/view.tpl
I have tried as you suggested above, I created a tpl file in the location below
design/themes/responsive/templates/addons/my_changes/views/promotx/view.tpl
I then visited the url below but still got a 404
http://arch.test/index.php?dispatch=promotx.view
The new layout page config is below
Dispatch: Custom promotx.view Name: Promo
view.tpl content
I would have attached the new page layout below as well but the forum doesnt let me . I have cleared cache as well as disabled and re-enabled the my_changes addon but no luck yet.
Any further assistance is appreciated
I have been able to resolve my issue as described above by adding the required controller as described here https://forum.cs-cart.com/topic/62407-how-to-create-and-access-front-end-page-of-an-addon/
However I cannot seem to get the blocks that were added in the admin section to show up on the page am I missing something ?
Yes, controller is required. Did you add the Main content block to the new layout page?
Yes I did but on closes inspection there was a spelling error in the dispatch for the new page, I corrected it and now everything works as intended. Thank you for the help
Thank you for lettings us know it