-
Posts
1,523 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
Seems like you just want to email the contents of the cart. You probably do not even need to store the data, just send it right away like this or with FormBuilder (which seems like handy thing for you anyway).
-
I am still confused where you at and what you are trying to achieve: The form is on a product page and you want to store the selected number of products to display in the cart later. The form is at the end of a checkout process and you need to make a new order ...something else, like my 1st assumption. But let's think you know what you are doing and you want to save shopping cart contents (one or many product, quantity and price) to database and make that connected to the user currently logged in. You need to decide, where are you going to store that data in PW, choose a fieldtype for that. It can be a Repeater, ProFields Table or some specially crafted custom fieldtype. Those all fit as the are capable of storing random number of defined data (product, quantity and price). Them you need to create s field based on that fieldtype and configure it. Than add it to desired template. Depending on your case you could add that field directly to user template. But much more likely you need to create a new template (probably, "order" or something like that) and add this field there. On form submission you would use PW API to get the data from the user $input and save it in the created field on use page or order page. How to do that depend on the chosen field and template it was added to. Explain the case better please.
-
Welcome to the forums, @hellboy! As I can understand, you want to store the content of the last (or maybe more than one) abandoned shopping cart in the db, so retuning customers can continue the purchase. This is all possible with ProcessWire. But PW does not have shopping cart feature out of the box, so I guess you either bought Padloper module or crafted something yourself. Not sure about all those terms you use like 'Userdatabase' and stuff. Could you explain a little bit, how are products stored within your ProcessWire installation, so we can suggest how to store information about them.
-
What's on your checklist for the end of a Web design project?
Ivan Gretsky replied to johnstephens's topic in Dev Talk
There is a couple long trending repos with checklists on github: https://github.com/thedaviddias/Front-End-Checklist https://github.com/thedaviddias/Front-End-Design-Checklist ...and a whole lot more of alike here. I know, I 'm not sharing something of my own as you asked, but a something to start with anyway. -
Move Composer's vendor folder outside of the web root folder
Ivan Gretsky replied to gmclelland's topic in General Support
I tried to instruct composer running from PW root to put vendor one level up in the folder tree with vendor-dir setting. It seems not to work (at least with the relative path I provided). Did you manage to solve this, @gmclelland? Or are you moving the vendor folder manually? If so, maybe a simple require_once('../../vendor/autoload.php'); in site/init.php can help? -
Move Composer's vendor folder outside of the web root folder
Ivan Gretsky replied to gmclelland's topic in General Support
Hey, @gmclelland Seems like you can't change the composer autoloader location in ProcessWire. But maybe there are ways to configure composer itself to store packages elsewhere? A quick search gave me this. Not sure it can help though) -
Hey @Robin S! Thanks for the cool module! Did you ever think about making it chainable to PageImage?
-
@Jan235, I think not. But there is a 7 day "Satisfaction guarantee" period with full refund. See here.
-
Deleted Subdomain is Resulting to Default Error Page
Ivan Gretsky replied to Shailaja's topic in Dev Talk
Hey, @Shailaja! Welcome here! Glad you are here with us! But... I do not see any question in you post)))) I guess you do not want to see anything when you reach your subdomain. It might be only possible if you edit your domain zone so the subdomain will not point to your hosting provider at all. Anyway, Hostgator's support would help you much quicker))- 3 replies
-
- 1
-
-
- subdomain
- default error
-
(and 1 more)
Tagged with:
-
Thanks for the thread @Soma. One of the most important and cited ones in the whole forum history! In the original post there are a few points that seem to be not discussed later in the thread, but which are extremely interesting to me. 1. Are there any good examples of those to dig into? Gists maybe? 2. Looking here it seems arrays are not allowed. I might be not understanding it right or things might change since when it was written. Is there actually a way to process input from a page or an array? 3. There was already a question about what kind of validation processInput does and @adrian's answer too. I read the code a few times but still not sure should I sanitize values after processInput before saving to page fields or not. Is it necessary? Thanks again! Learning ProcessWire is still fun (or am I doing it too slow?!)
-
@bernhard just liked the original post after a few days passed, and I got notified. So decided to put a little update here. There are actually some web-design related thing I learned from this situation: Do not rely on cdn's for jquery, fonts and stuff. Opera actually is not that useless browser, as it has Turbo Mode. Thanks for support!
-
Another year has passed... I was looking for a way to include database backup in my deployment process. I did not want to use some external secrets storage yet, so looked for a way to use db credentials already present in PW config. So I wrote a simple script, which I put in the project repo and call from cli during the deployment process like this: php -f backup.php For the sake of simplicity backup.php is in the web root. Here are its contents: <?php // backup.php include("index.php"); $backup = $database->backups(); $file = $backup->backup(); if($file) { echo "Backed up to: $file"; } else { echo "Backup failed: " . implode("<br>", $backup->errors()); } The full docs on how to customize it as you need should be here, but are now missing for some reason. One can still get them from the source code anyway) P.S. I am looking for a way to do it with a simple one-liner in cli to get rid of the backup.php, but not sure it is possible with php an easy way. Any advice appreciated! P.P.S. I knew I could do it, because @adrian done it in his wonderful Admin Actions module. Go read its code for inspiration and for education, if you are not a PW guru yet.
-
@kongondo, I think so. Neither the domain nor certain urls are blocked.
-
Hello, friends! These days it is not that easy to join you here on the forums if you happen to be anywhere in Russia. You probably heard about our government's struggle to ban Telegram. And ProcessWire's ip is in the list. At these moments you start to understand just how important can a seemingly remote online community be in your everyday life and work. Thank you all for being here. As long as VPN's still function we can stay together .
- 5 replies
-
- 19
-
-
-
Cool! I was guessing you will try to create something like this as soon as I tried the power of InputfieldSelectize .
-
Hello, @Macrura! Thanks for your wonderful modules. Used them on 2 projects with full success and satisfaction)) Now I have a need to implement something like this, but do not have the budget to buy it. I was wondering if your InputfieldSelectize module could do something alike. I can see that the limitation has to be the number of pages that the module can load without getting php and the server to through an error. Do you have any experience with managing relatively large amount of pages with this module? Like 100 to 1000? Did you do any kind of search and/or ajax loading?
-
@Artomultiplo, you could set Movie_Type and Movie_Category as Page Fields to interlink you content. See here for some inspiration.
-
@Artomultiplo check out these docs.
-
Hey @PWaddict! Thanks for the module. Today I found a use case for it. I have a lot of pages with a certain template under root which pollute the Page Tree and make other pages hard to find. They are there for the sake of pretty URL structure. I wanted them to be hidden even for superuser (the one who struggles the most in admin area ), so I removed $this->user->isSuperuser() from the code. I spotted something that looks like a bug and a chance to improve the module. Pagination and the ">More" button still count all the pages, including the hidden ones. Maybe there is a chance to fix it?
-
How do you learn multiple languages at the same time?
Ivan Gretsky replied to James Ulrich's topic in Pub
Hey @James Ulrich! Welcome to the forums! I think, learning PHP+JS or Python+JS is pretty straightforward. Just start a web project and do both backend and frontend stuff)) It is the the more practical way. If you want something more classical take your time and watch something like this Harvard course. It gives you a good start in C, MySQL, Python and JavaScript. No PHP, but you will get it naturally when you'll start to do something with the best web CMF. You know, ProcessWire)) -
Blog: What to do after upgrading to latest master
Ivan Gretsky replied to ryan's topic in News & Announcements
Thanks for this blog post @ryan. The new features are coming at such a pace I sometimes only have time to get excited, but not to try them out. Those recommendations are really useful (at least to me). I would enjoy to read more about use cases for the newly added stuff. -
☁️ Duplicator: Backup and move sites
Ivan Gretsky replied to flydev's topic in Module/Plugin Development
Maybe we could use some 3rd party php zip library for this? Not to deal with all those cross-platform issues... -
I can see you are concerned about ProcessWire project, as you speak so passionate @Donald. But I can't really get the point of all those posts. Let me guess: ProcessWire could have some better docs... Partly true, but it's getting better and the code is documented very well. Take a look. I also love Vue docs, but they are also not so helpful when you go from basic stuff to real projects. And as I see it PW is more complicated and has way more stuff to document. And new features are coming more often. ProcessWire will never beat Vue on github stars... I think so too, but not really due to lack of documentation. You think that this topic will not help PW get too much stars... Partly true, but anything is better than nothing. You want to get paid modules for free... I also sometimes think that donation based support could be better for the PW development. But it is not our decision and might not work as well here. You suggest to buy stars for ProcessWire github repo... Ryan will not do it for sure. Neither will I. If you got some money to spend it is up to you to try it, but I don't not feel like it is up with the ProcessWire spirit, if you will. Anyway, wanted to share my experience here on the forums. Being gentle always paid out better for me than being provocative)) P.S. The reply is to some posts that were probably removed by either the author or moderators. I did not actually see anything bad about them. But maybe some trolling was reasonably stopped by some good censors)
-
Cool stuff @ryan! Are there any chances this could be implemented for Table and TableRows? Would be great to have it there too.
-
Once upon a time the official PW Repo had way more stars on Github. But as @ryan values customer satisfaction over some abstract regalia like numbers stored in Github database (read the whole story here), they got kind of lost (actually not really lost - they are still present, but lost for the marketing purposes). I guess we could have something about one thousand now if this would be dealt differently . But that is old story. Personally I am visiting https://github.com/trending regularly to see what's going on in the open source world. And stars is what makes me see something. So I am 100% for this @adrian's initiative. And one forum post is not enough for success. At least placing Github star buttons all over the main site and forum and in the sticky top banner somewhere would help. Maybe we could ask @Pete to help here? As I understand from years being here @ryan is expecting ProcessWire to "market itself". But as community is part of PW, us marketing PW is kind of PW marketing itself anyways . So let's attract as much stars as we can to make the real star CMS get a primetime!