hairydog Posted January 22, 2018 Share Posted January 22, 2018 I'm making a second attempt at getting the page weight down. I appreciate that the developers of CC don't think this matters as much as I do. What I want to do is use a lightweight version of a CC5 skin with an up-to-date CC6 setup. Mostly, this seems to work, but far from completely. Product options are the current stumbling block. I found a reference to updating script.js at about line 430, but the script.js I found has only 40 lines of code. Is there anywhere that I can find a list of what is needed in a CC5 skin running on CC6? If so, where is it? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 22, 2018 Share Posted January 22, 2018 Is there a conversation on the forums that discuss what you mean by a 'skinny skin'? If not, perhaps we should start discussing what diet a CC5 skin would need. For example, please summarize your intentions about the Product Options. It is true that as compared to CC5 skins, the latest version of CC6's Foundation skin has a few distinct features (aside from being 'responsive') -- dynamically updated prices based on which options are selected being such a feature. We look forward to learning more about your goals. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 22, 2018 Share Posted January 22, 2018 He means optimised. The default skin is developed to be easy to customise. For this reason there is no minification etc. This is highly recommended however along with compression. I have no doubt other optimisations can be made too. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 22, 2018 Share Posted January 22, 2018 "Optimize?" To what end? Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 22, 2018 Author Share Posted January 22, 2018 (edited) For a start, I want to avoid "responsive" code. It is easy to achieve a design that is good on desktop, tablet and mobile just with a few lines of CSS. I don't want to have to call javascript libraries to render a page. I want as few queries as possible. I want the code to be clean, small and elegant. To give an idea of the difference I'm looking at, with my current test site, the Test Product page with the untouched Foundation skin, is 814.05kB and takes 4.645 seconds to load in Firefox with caches disabled. The same page, using my version of a v5 skin (which is not finished yet), is 32.05kB and loads in 753 miliseconds. Edited January 22, 2018 by hairydog mistyped the Foundation file size first time round! Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2018 Share Posted January 23, 2018 Let us know how it goes! You said, "a list of what is needed in a CC5 skin running on CC6". I would say that nothing is really needed other than the Smarty variables. A skin stands alone. It can show as much as what is available, or as little as you want. To see what is available, at the end of the template 'main.php', add {debug}. Allow your browser to show popups. The popup lists all the variables and their current contents. To satisfy my curiosity, and to clarify something, of the 4.645 seconds, how much of that time is the "time to first byte"? You may need a program like "Wireshark" to determine when that first byte arrives at your computer after the last byte of the page request gets sent out. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 23, 2018 Share Posted January 23, 2018 @hairydog if there is anything you feel you can contribute we would be grateful. CubeCart us free, open source and community dependant. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 23, 2018 Author Share Posted January 23, 2018 When comparing the page sizes, I've noticeded that the Options don't work on the Foundation skin either - so maybe the skin isn't to blame after all. I'll try the {debug] idea and see what is happening. I can't see that the time to first byte can be very high if my template on the same page on the same server has finished rendering in 0.7 seconds. The page is 800KB. That's why it takes 4.6 seconds to render: something I want to fix. Last time I tried this, a year or two back, I gave up. But I thought I'd try again. If I ever get a skinny skin working, I could make a generic version to share. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 23, 2018 Share Posted January 23, 2018 You could sell it on the marketplace if you wanted renumeration. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 23, 2018 Author Share Posted January 23, 2018 Let's see if I can make it work first! I'm wondering if I have simply misunderstood how Options work. Is there a document that describes it in more detail than the Help does? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2018 Share Posted January 23, 2018 Not that I am aware. "How do the Options work?" is a broadly-asked question. Please ask something more specific to get us headed in the right direction. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 23, 2018 Author Share Posted January 23, 2018 That is the specif question! There are options, option values, option groups, option grids. These are associated with products in various ways, none of which are obvious or clear. What is needed is an overview that explains how the hierarchy works. I would try to work this out fo myself, but I can't make them work. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 23, 2018 Share Posted January 23, 2018 I've never come across option grids? Where did you see that? Options encompasses the sum of parts surely? I agree with @bsmither. Can you be more specific in what you are asking or say what you are trying to achieve? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2018 Share Posted January 23, 2018 (edited) I am looking for a post I made that summarizes how to make options in admin -- assuming this is a good place to start. Maybe a 'grid' is actually the 'matrix'? There is this:https://forums.cubecart.com/topic/52822-tutorial-on-how-to-use-product-options/ Edited January 23, 2018 by bsmither Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 23, 2018 Author Share Posted January 23, 2018 Yes, I meant matrix, not grid. Messing with it seems to show that if you add an option to a product, that gets updates if you amend the option or its values in the admin, but any new values you add don't appear. Makes sense! Not looked at sets enough yet to work them out. It seems that radiobuttons don't work on my store at present, which may be the cause of the difficulties. That link looks very useful, thanks very much. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 24, 2018 Author Share Posted January 24, 2018 The discussion at the other end of that link ends with people being unable to explain option sets. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 24, 2018 Share Posted January 24, 2018 It's complex. If you make specific changes to an option assigned by option set it will become a normal option. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 24, 2018 Author Share Posted January 24, 2018 So an option set is just a template set of options that you can add as a bundle, but once added to a product they are just like any options you added individually? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted January 24, 2018 Share Posted January 24, 2018 Almost. They will become like normal options in the option_assign table if they are edited (e.g. given a weight or price). Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 24, 2018 Author Share Posted January 24, 2018 (edited) Got Options sorted. The next stumbling block is reCAPTCHA "Looks like" it isn't suitable. What are the criteria and required resources to enable it? Huh! suddenly it is working. All I needed to do was have a coffee break! Edited January 24, 2018 by hairydog Quote Link to comment Share on other sites More sharing options...
Lastwolf Posted January 31, 2018 Share Posted January 31, 2018 There aren't a great deal of skins available, it's one of the downfalls of a smaller community I guess, I've made hatchet jobs of few of them , I'd be interested to see the final product. Quote Link to comment Share on other sites More sharing options...
hairydog Posted January 31, 2018 Author Share Posted January 31, 2018 I've just about finished the skin for my own use, but it will need some work to make it a little more generic. But I do plan to make a skinny skin available. Quote Link to comment Share on other sites More sharing options...
hairydog Posted February 2, 2018 Author Share Posted February 2, 2018 OK, done. On the Marketplace at £5. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 2, 2018 Share Posted February 2, 2018 Great work!! Quote Link to comment Share on other sites More sharing options...
vidmarc Posted February 2, 2018 Share Posted February 2, 2018 Sounds interesting - is there a preview available? Are the colours easily customisable? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.