X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 5 (https://forum.x-cart.com/forumdisplay.php?f=64)
-   -   Custom Layout (https://forum.x-cart.com/showthread.php?t=75737)

isingwithaz 10-20-2017 03:12 AM

Custom Layout
 
Hi!

Is there a chance to add custom html here instead of props set via install.yaml?



qualiteam 10-23-2017 10:18 PM

Re: Custom Layout
 
You can replace the standard module settings page with a custom one:
1. Add necessary controller and widget classes
2. Return the URL to the custom settings page in your module's Main.php file as follows:
PHP Code:

public static function getSettingsForm()
    {
        return \
XLite\Core\Converter::buildURL('YOUR_PAGE_TARGET''', [], \XLite::getAdminScript());
    } 


Another solution is creating your custom FormField classes that display your custom HTML code.

isingwithaz 10-23-2017 11:11 PM

Re: Custom Layout
 
Thank you!
That helped :)


All times are GMT -8. The time now is 06:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.