-
Posts
1,990 -
Joined
-
Last visited
-
Days Won
164
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by wakabayashi
-
@led24ee I am not yet at product listing part. But why do you want to see the code from there? My way of doing it will be more modular than now... @datakick Right now my thing is too raw. But I think it's possible. But in general I believe, that each theme should override this components. I know it's not realistic for old themes, thats why there needs to be a default solution for each component. There are two things planned: Elements: This is simple stuff like buttons, lists or up to a spinner. We just standardize the behaviour of classes. A theme needs to tell, which classes will be applied on a "large call to action button". It's easy in achievable in the conig file. I would state there something like "genzo_button large". A theme that relies on bootstrap will set "btn btn-primary btn-large". A Module developer can now use: <a class="{$css_selector.button_primary} {$css_selector.button_large}">Something</a> It would throw in the right classes depening on the theme used. Components: This is stuff that needs a serious markup. For example: lists, tables, cards and so on. Each theme should then deliver his own tpl file to a component. For example a very simple component (card_default) looks like this: <div class=""> <div class="group block w-full h-auto rounded-lg bg-gray-100 overflow-hidden"> <img src="{$component.image.src}" alt="" class="object-cover pointer-events-none group-hover:opacity-75"> </div> <p class="heading_section mt-2 ml-2">{$component.section}</p> <p class="ml-2 text-sm text-gray-500">{$component.title}</p> </div> A bootstrap theme would deliver a very similair markup with different styles ofc. A module dev can now use something like: $category_1_data = [ 'title' => 'Azul - Uno - Memoarrr', 'section' => 'Familienspiele', 'image' => [ 'src' => '/img/p/bla.jpg', ], 'link' => [ 'url' => '/category/link-1', ], ]; $themeElement = new ThemeHelper(ThemeHelper::COMPONENT_CARD_SIMPLE, $category_1_data, false); return $themeElement->fetchElement(); It will always render a card in the style, that the theme developer initially had in mind. So the design will stay consistent. And obviously the theme developer saves a lot of time as he doesn't need to come up with an own design (that will likely suck on some themes anyway). The card example is of course very simple. There are much more powerful usecases like sliders, modals or whatsever. I am very confident that module devs can reduce their styling work up to 80% or so. Depending on the usecase ofc. The usecase of such component wouldn't stop here. They would also be very powerful on pagebuilder or on shortcode modules.
-
Thanks for the sources. Tailwind is now very popular so it's not hard to find stuff about it. But I bought TailwindUI, so I have access to really high quality templates. I have coded a very modular way of how a theme should work IMO. In general it adds a Framework in top of TB. Module Developer could save a lot of time and merchants would get a consistent design. But unfortunately it didn't get any real response in "DEV" Channel from TB. Either people are no more around or they are just no interested in creating big changes to an old system. BTW: I am on a webserver. So if somebody would like to see, what I do, I could give you the URL by PN.
-
Funny then, that they use a thirty bees logo on their homepage ^^
-
@Billy For me this bootstrap stuff isn't too interesting. As I go with an other CSS Framework called "Tailwindcss". In general most Dev have clear opinion what they want to use. It often leads to little fights inside Dev discussions ^^ I just wanted to say that, not that you create big hopes that anyone here will build something with bootstrap...
-
@Billy Thanks for the sources. It seems to me, that they have a pretty similair approach when building a theme... But I haven't looked deeply into it. Surely they work with variants too.
-
@Mark Ok then write me on the Slack Chanel. We can see there, if my module would work for you, too.
-
haha ok. Probably i wrote it then unclear. I guess I wanted to say, that "revws" module is one of the few outside of the core. Almost all other modules I use these days are my own developements. We had en external module for affiliates before. It was one of the worst modules I ever bought. What features do you need from the affiliate module from?
-
@Mark The answer is almost the same in my case. It's: genzo_affiliate. Which means it's my own development. While most of my mobiles are out of question, to be maked public. I could consider to release this one day. It's very small without a lot of features. But on the other it's very clean IMO. BTW it's really only affiliate and not referal. Btw: How do you know I am using affiliate? Did you check my sites source code?
-
Thanks for the update @Smile. All the best too all of you here. 😷
-
This idea comes up a lot. Also when we talk about modules. To be honest: I haven't seen any collaboration coming, out with a serious result, since I am in PS World. While this idea makes sense in theory in pratice it (almost) never works. Btw: I worked like 10 hours at the weekend to push my theme project a bit forward. I am very happy with the progress. 😎 IMO I already found a very stupid behaviour that each theme copies from the other themes (root is probably 1.6 PS theme), but was probably never intended to do so. If you have ever looked into the tpl files, you have maybe noticed that some tags are opened in header.tpl and closed in footer.tpl. Very unnecessary... Just use layout.tpl for it. Such stuff is the reason, why I prefer to do it from an empty folder.
-
I feel you. In general, the expectation are too big at the community. I had to learn it too. There is just no such community. There are for sure some TB installations around in the web, cause some Dev installed it. But there are only a bunch of people that really chosed TB and fully stick to it. That's why I also don't understand why this compatibility topic is so inviolable. IMO it would make sense, too just collect data, which modules are used by now existing TB User. Then to move forward and give some kind of support for the really used modules right now...
-
@haylau I am not interested in such a project, as my point is: yes we should finally think about reinventing the wheel. About Elementor or something similar. I believe TB should have a pagebuilder/theme_config module, that each theme can rely on. Obviously this would be a huge work and won't happen any soon.
-
It's a fair point. I am not a good example for the average merchant. What surprised me was the follwoing: Why would you ever need to change php? I mean it's not the task of a them dev to change functionality, is it? IMO it should be the goal, that a theme DEV doesn't need to change PHP. Of course he should have a very basic knowledge, but not more... JS is clear. I am not a fan of putting too much functionality on JS, but obviously thats part of the theme game. @jollyfrog I am always open for some interesting discussion about ecommerce/tb. But I won't get much involved in any decision and surely not work. As I really plan do to my own thing. I am also not totally sure, what the plan is right now. A new theme the way you plan it, means basically, that you just don't like Niara Design. Is this correct? I just don't understand why do this again. Niara is not even 2 years old. If I do something new, I will try it with new technology. My way is ofc very radical. But it could also be interesting to build a theme with Bootstrap 5 and loading jQuery for compatibility reasons. @datakick would that work, without breaking most modules?
-
Thats a very good point. The compatibility break of mine has not a lot to do with Tailwind or AlpineJS. It's just that web development changed a lot in the last 5 years. You can ofc sit on Jquery Solutions and so. It works. My shop is using it now heavily too. If Jquery would be the only issue, I could also load it just for compatibility reasons. That wouldn't be a big deal. But I guess, the deeper I will dig into my project, I will find issues, that will break compatibility. The best thing would be if a Theme Designer can use Bootstrap 5, Tailwind or whatever.
-
Of course you are @datakick right about that point. But to be very honest: I don't care. I only use a handful not "genzo" modules in front end. Cause I have for example my own search, filter & affiliate modules. I think most shop owner just overblown their shop with a lot of module features (that sometimes even break eachother). The only important external modules are IMO shipping and payment modules. But of course selling my theme would only make sense, if I also sell all my modules and offer some custom support. As I indicted above with "private result", it's probably not gonna happen. I for myself just dont wanna sit a few more years on outdated designs. A relevant part of my customer base just expect a flawless shopping expierence (on mobile) and I just can't give it to theme right now. Is it possible with Jquery & Co. No doubt. But it makes just no sense, to rewrite a theme with it @Mark. It has be done like 100 times before. Its what Niara did. I dont think I could deliver a much better result than Niara... So if my project ever gonna finish, it will be more a TB 2.0 or a TB 3.0 Theme. @jollyfrog Yeah I guess the hard work will be writting all the TPL Files, not the design itself. As I dont use multiple stuff from the core. I won't obviously focus on this feature... For example my interest in customization is near to zero right now...
-
@Mark I don't think there is anything better. I have the same issue as you, beside that I have my own "outdated" theme. It's not only that the Design is outdated. A lot of the technical stuff is no more state of the art. It makes it hard, to maintain or rewrite anything. I for myself have started this weekend to play around with an empty theme. So to start completly from scratch. Technically the idea is to go with Tailwind and AlpineJS. But I think no other dev is really interested in working on it too. That's why my project will probably end either in a "no result" or in a "private result"... 😐
-
I just wanted to try this. Is it no more possible to update to bleeding edge? At least I cant get this on my teststore...
-
I am not totally sure, what you expect. Is it a full backup of DB and Files? Ofc you will then lose all the things you did after that point... In a perfect world a backup is as old as needed but as new as possible 😅 But even then you have some losses...
-
Have you tried to just regenerate them?
-
My company address on invoice only has United States
wakabayashi replied to CoffeeGuy's topic in English
Probably it's in the AdminStores controller. Don't know how the menu is called in english. Probably something like shop addresses. If you change the values there, the old invoices won't be affected... It's called: Preferences > Store Contacts -
Debug mode is only recommended if you you are not on a live shop. Otherwise your shop could break easily, if one module has a little issue on one place. So the game always works like this: Oh there is a fucking problem. Switch debug on -> does it say something? Fix the bug Switch debug mode to off again. Your issue seems very issue to explain: https://www.php.net/manual/de/function.mysql-error.php. I would bet almost all my money, that you switched to PHP 7.x recently. The function used by this module, is no more available in PHP 7. If you want to fix, you would need to remove this function (ideally replace it with something newer). But even more cleanly would be, to understand, why it actually want to throw an error. Because this shouldn't be happen anyway...
-
I don't think it makes any sense, to solve this by switching the server. I would check all stock settings and deactivate all caches... But honestly I would guess, that the problem is in javascript/ajax... There are some important questions: which combination is the standard combination? are you using multistore?
-
Thanks a lot for your contribution! 😎 I always love to see, when other merchants are improving things with custom code 👍 We have very similair functions as we also work with barcode scanners. I have not tested your code, but I would strongly recommend you, to add it as ModuleAdminController and not with such an external file. By that you gain already security as it will be only available if the user is logged in. Codewise this looks a bit unsecure on overcomplicate to me. $name = $_GET['data']; $new_order_state = 34; $get_orders = array(); array_push($get_orders,$name); foreach ($get_orders as $orders) { } As far as I understand, you scan one code after another. If this is true, you wouldn't need any foreach loop. You could then very simply to this: $id_order = (int)$_GET['data']; // Note the (int) does improve security $order = new \Order($id_order) // Continue with your stuff Maybe this helps you a little bit 😊