X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Creating a new skin (https://forum.x-cart.com/showthread.php?t=69801)

ARW VISIONS 08-12-2014 07:56 PM

Creating a new skin
 
So do I have to create a new module to make a new skin?
Does the module file need to be named Main.php note the capital 'M'.

I also just enable the custom skin module, and sat through 10 minutes of building the cache. How often does this happen?

ARW VISIONS 08-12-2014 08:37 PM

Re: Creating a new skin
 
Sigh... I created a module, but I entered the version incorrectly. Now I have to redeploy the store for my simple version correction to be recognized? waiting another 15 minutes.

This seems counter productive :/

totaltec 08-13-2014 05:01 AM

Re: Creating a new skin
 
Is it taking 15 minutes to redeploy/ rebuild cache? That is way too long. On my local machine it takes about 3 minutes, on a nice dedicated server from EWD it seems like it is about half that.

The rebuilding cache process is extremely annoying. When I first started working with XC5 it almost made me give up. But either I have learned to avoid it more, by working in the var/run directory while testing, or I have simply gotten used to it. :-)

Any major code change or module installation/enabling, you have to rebuild. Template changes can be uncached if you set developer mode On in etc/config.php, that helps a lot.

ARW VISIONS 08-13-2014 01:13 PM

Re: Creating a new skin
 
Errr, yes it takes forever. Every time a change a setting I have to wait. Not a good decision. Is your local environment windows or *nix based?

totaltec 08-13-2014 02:20 PM

Re: Creating a new skin
 
Windows. Running XAMPP on Win 7. Working in 5.1.3 at the moment, just because I started the project on that version. Rebuild cache takes 2 minutes 30 seconds, just timed it.

If you are working in Windows, you might need to speed up your localhost: http://stackoverflow.com/a/14635402 There are several suggestions on that thread, the one I linked to worked for me. If you are working on a Mac, then I am clueless...

ARW VISIONS 08-14-2014 05:51 PM

Re: Creating a new skin
 
Deplyed the store to hosted server. redeploy took under 2 minutes. guess it doesn't like my computer.

ARW VISIONS 08-14-2014 07:54 PM

Re: Creating a new skin
 
<list name="layout.header.bar" />

where do I find these lists?

totaltec 08-15-2014 04:56 AM

Re: Creating a new skin
 
Quote:

Originally Posted by ARW VISIONS
<list name="layout.header.bar" />

where do I find these lists?

They are built dynamically you might say, each module or template that needs to add to a list does so.

I don't know where the lists are initially defined, I'm not sure they are. If you need to find out what list you need to add to, use the webmaster kit module. http://www.x-cart.com/extensions/addons/webmaster-kit.html

ARW VISIONS 08-16-2014 09:19 AM

Re: Creating a new skin
 
how do you add to a list? x5 is more confusing that ever from a skin customization stand point.

ARW VISIONS 08-16-2014 09:21 AM

Re: Creating a new skin
 
went to get the webmaster mod, but I don't have an SSL on my local machine. not ever going to. so guess getting anything from the marketplace is out of the question?

totaltec 08-16-2014 09:24 AM

Re: Creating a new skin
 
Quote:

Originally Posted by ARW VISIONS
went to get the webmaster mod, but I don't have an SSL on my local machine. not ever going to. so guess getting anything from the marketplace is out of the question?

This is what I had to do, worked like a charm after a few tries:
http://kb.x-cart.com/display/XDD/Creating+self-signed+SSL+certificate

ARW VISIONS 08-18-2014 07:13 PM

Re: Creating a new skin
 
just activated the webmaster module and I get this. header layout was perfect before I had to wait 5 minutes to re-deploy the store and get my layout garbled up.

http://www.2techchicks.com/xc514/

why would I get double headers?

totaltec 08-19-2014 07:02 AM

Re: Creating a new skin
 
Quote:

Originally Posted by ARW VISIONS
just activated the webmaster module and I get this. header layout was perfect before I had to wait 5 minutes to re-deploy the store and get my layout garbled up.

Guess you figured it out? I don't see the double header now unless I am missing it. Looks like you are making some progress!

ARW VISIONS 08-19-2014 04:18 PM

Re: Creating a new skin
 
lol... don't know if I figured it our per say. Every time I active a module I get double a double header. Only way I have found n to get rid of it is, delete my custom skin > re-deploy > re upload skin > re-deploy.. it's an absolute joy :)

ARW VISIONS 08-19-2014 04:20 PM

Re: Creating a new skin
 
which file controls the products grid, formally products_t.tpl. I'd like to add our price and market price to the price line.

ARW VISIONS 08-19-2014 05:08 PM

Re: Creating a new skin
 
http://www.2techchicks.com/xc514/

There we go, all kinds of goobally goop. All I did was active the market place module... and presto.... CRAP!

qualiteam 08-20-2014 12:38 AM

Re: Creating a new skin
 
I guess you copied a template file with the @ListChild directive into your custom skin directory, so the template is now being inserted into the same list two times (because of @ListChild in the original template, and in your custom one).

Try to remove the @ListChild from the template in your custom skin.

Does this help?


All times are GMT -8. The time now is 04:26 AM.

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