Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Custom Layout

 
Reply
   X-Cart forums > X-Cart 5 > Modules and themes (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-20-2017, 03:12 AM
 
isingwithaz isingwithaz is offline
    
Join Date: Oct 2017
Posts: 1
 

Default Custom Layout

Hi!

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


__________________
using X-Cart Trial 5.3.3.4
Reply With Quote
  #2  
Old 10-23-2017, 10:18 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 10-23-2017, 11:11 PM
 
isingwithaz isingwithaz is offline
    
Join Date: Oct 2017
Posts: 1
 

Default Re: Custom Layout

Thank you!
That helped
__________________
using X-Cart Trial 5.3.3.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modules and themes (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:01 AM.

   

 
X-Cart forums © 2001-2020