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

Module creation
 
Reply
   X-Cart forums > X-Cart 5 > Modules and themes (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-26-2018, 12:55 PM
 
sxint sxint is offline
 

Newbie
  
Join Date: Jul 2008
Posts: 2
 

Default Module creation

Hi everybody.

I am new with X-cart five and I try to make some changes to my shop.

I tried to add a module with cards logo in the footer of my store.

I did it but I have two questions:

1. I create a module for that but even if it is off the logos appear at the footer of my store. Is that correct;

2. I have created a style.css file with some code in it (as instructions here https://devs.x-cart.com/design_changes/working_with_footer.html) but nothing change to the view.

Can any body help me?

Regards
__________________
4
Reply With Quote
  #2  
Old 07-27-2018, 04:42 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,663
 

Default Re: Module creation

If you followed that example code the twig file will always run even if the module is off. The reason is the @ListChild instructions in the file.

If the module is just to show these logos in footer move the @ListChild to the class file that calls the template. This will sort the issue of logos showing with module off.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-27-2018, 03:54 AM
 
sxint sxint is offline
 

Newbie
  
Join Date: Jul 2008
Posts: 2
 

Default Re: Module creation

Thanks for answer.

What about question number 2?
__________________
4
Reply With Quote
  #4  
Old 08-27-2018, 04:51 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,663
 

Default Re: Module creation

Look at the source code of the page and make sure the css files is loaded. If not then you are not calling it in the php file or the file name/location is different. If file is loaded check if other styles override yours.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 01:25 AM.

   

 
X-Cart forums © 2001-2020