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)
-   -   Module creation (https://forum.x-cart.com/showthread.php?t=76438)

sxint 07-26-2018 12:55 PM

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?


cflsystems 07-27-2018 04:42 AM

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.

sxint 08-27-2018 03:54 AM

Re: Module creation
Thanks for answer.

What about question number 2?

cflsystems 08-27-2018 04:51 AM

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.

All times are GMT -8. The time now is 02:44 AM.

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