Leaderboard
Popular Content
Showing content with the highest reputation on 10/30/2020 in all areas
-
We got hit by hurricane/tropical storm Zeta overnight Wednesday and it took down the power lines in our neighborhood, and in many places in Atlanta. We aren’t supposed to get the electricity back till Monday, though I’m hoping they might surprise us and have it back sooner. But I’m basically offline other than my cell phone, charged in the car. I work off a desktop computer (iMac) so not able to do any kind of computer work until the electricity is back. As a result, I don’t have any updates for you this week. Though I was making great progress on the ProcessWire modules directory site up until the storm came through and we lost electricity. For now my job is to keep the flashlights working and find ways to keep what’s left of the food from going bad (since the fridge/freezer is also offline). The same thing happened with hurricane Irma, back in ProcessWire 3.0.75. It took out the power for several days. Though we weren’t in the middle of a covid hotspot back then. The deal is that Atlanta has a lot of big old trees, and all the power lines are above ground. So any time a significant storm rolls through, it knocks down a tree, the tree knocks down a power line, and the power goes out. Atlanta is pretty big, so multiply that by a few hundred trees and power lines (and a pandemic), and much of the city is out for awhile. Even a little storm sometimes knocks out the power for a few hours. That’s just one of the joys of where I live. I’m sorry about that, but since we’re supposed to be back online by Monday, I expect to have good updates for you next week. Thanks for reading and have a great weekend!7 points
-
2 points
-
Hi Daniel! It sure is. A simple way to do it is to have the field on only ONE page, like the homepage or a "settings" page and get this page's field content in your footer template. For instance, if you have this field on your homepage, called "footer_text", you can get it this way: // On your footer.php file //Get the homepage reference $homepage = $pages->get('/'); // Let's say your field is called "footer_text" echo $homepage->footer_text; // Docs: https://processwire.com/api/ref/pages/get/2 points
-
E-commerce is probably one of Processwire's weakest points in terms of a quick, ready to go integration, although hopefully that will change when Padloper 2 is released, but I was doing some browsing and came across a PHP e-commerce platform Aimeos https://aimeos.org/docs/latest/developer/architecture/ that grabbed my attention with this quote: Has anyone had any experience with it? I'm trying to work out how it would need to be integrated, (currently it supports Laravel, Symfony, and Typo3 off the shelf), but if there's an off-the-shelf open source e-commerce package that can be integrated relatively easily with Processwire, that would be nice.1 point
-
Cs-cart is my favorite. Really flexible, scalable and reliable. Exact as ERP and Akeneo as PIM1 point
-
I currently manage a webshop with 225k products from around 60 suppliers and few millions of euros in yearly sales. I will share a bit from my experience, the issues I encountered and the facts you will want to consider before you start picking your solution. Self or Client Questionnaire 1. What is the max number of products your shop will have in 5 years from now? based on that you will need yo explain and educate the client why he will need an erp or pim software. 2. How many supplies you estimate that you will have and how they deliver the data. how often the product data is updated? 3. Whats is the monthly /yearly marketing budget? (Looking for only long term partnerships, I usually avoid signing a DEV& SEO contract with someone who has no idea of their marketing budget. It might sound crazy... but there is a clear view that your client will have enormous SEO expectations with No or limited budget. Main Issues : - each supplier comes with their products in a different template, filetype and the way they notify their resellers about the price updates. - for a big shop you will always want to work with a product information management (PIM) software. Are you ready to build your own PIM? - in order to increase your sales you will always want to send your products feed to site like amazon, google shopping etc... are you ready to invest and develop those solutions? - most of the shops are required to be connected with an ERP solution and at the end of the day you will need to make those systems to work together as much as possible. SHOP-ERP-PIM and resellers websites if any. My advice is to choose the only solution that is stable, capable and really secure. The multitude of plugins in store its always a plus and i will always like to pay 200$ on a good plugin than to develop it from scratch with a final cost of 2k. Please don’t try to reinvent the weel !!! Give yourself the luxury to work on marketing and SEO. Increasing your sales and google rankings are the only things that really matters at the end. Good luck!1 point
-
I have played around just a little with Aimeos for Symfony. It is very fast. I have not looked at their API's, but it looks like you can use a JSON API to fetch products on your PW front end and manipulate a basket as well. It looks like there is an admin API as well for manipulating products, but not orders (maybe I overlooked it). So I think you will end up working in the Processwire CMS for all your regular content and work in the Aimeos backend for everything sales related. Which may or may not be acceptable to you. The benefit is that for the e-commerce side, you have something dedicated and more robust than a pure PW solution. Have you looked it Sylius? It is build from the ground up to be extended and modified. Based on Symfony. I have installed and modified it and it looks like a superb e-commerce package to me. It will not be 'easy' to integrate these solutions with PW, however. There is also Shopware. This has a beautiful backend plus it comes with pretty solid content management from what I can tell, so you may not even need Processwire. I hope this helps a little. Having worked with Padloper for a few extensive e-commerce projects, I would not use it again unless the shop is very basic. So I share your urge to plugin a dedicated e-commerce solution, but it may not make sense.1 point
-
The biggest thing to keep in mind is that mobile OSes don't just run any programming language. iOS runs swift, android runs java(/kotlin). Then there are a few projects bringing external languages/tooling onto those platforms like react native (js), flutter (dart), …. This is quite a different world to web development. Then for web technology you can also look at progressive web apps, which are less powerful than native apps, but can serve similar purposes and can be developed quite a bit easier. ProcessWire or Laravel are just one (likely the simplest) piece of the puzzle by being one of many ways to have a server side backend – you won't get the app itself from them. Meteor is a bigger piece of the puzzle as it's client and backend at the same time, but truthfully I wouldn't suggest meteor nowadays. Its ideas were ahead of the time and it never really took off. Today it lives on mostly on the sidelines. At the moment I feel flutter or react native based apps are the best way to build an app, if it's meant to be for production use. For the backend choose your favorite flavor of server side tooling. Likely something graphql, which makes it easy to interact with from the apps perspective. All this however is nothing you learn in a few days and be able to produce an app. I feel not even webdev can be learned that fast anymore.1 point
-
Glad you got it working! That's all of us really - it's more a matter of eliminating possibilities sometimes and debugging what the value of variables that are throwing errors actually are and then looking at what / how those variables are used.1 point
-
http://php.net/manual/en/language.oop5.decon.php __construct() is called automatically. init() not. Every property defined/ populated with __construct() is accessible inside the class/ module and outside if public. If you define properties or change their values with init() you have no access inside a function of your class without calling init() from inside this function. If you init a module the processwire way inside a template you get what you expect. EXAMPLE <?php namespace ProcessWire; class TestModule extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => "Test Module", 'version' => 1, ); } public $colours = array(); public function __construct() { $this->colours = array( 'Blue' ); } public function init() { $this->colours = array( 'Red', 'Orange', 'Yellow' ); } public function getColourArray() { return $this->colours; } } If you call Module/ Class via ProcessWire or directly inside your template you will get different results: <?php namespace ProcessWire; // INSTANTIATE VIA PW var_dump($modules->TestModule->getColourArray()); // init() is called by PW // array(3) { [0]=> string(3) "Red" [1]=> string(6) "Orange" [2]=> string(6) "Yellow" } // INSTANTIATE CLASS $test = new TestModule(); // the PHP way, init() is not called var_dump($test->getColourArray()); // array(1) { [0]=> string(4) "Blue" } // CALL INIT AND CHANGE RESULT $test->init(); var_dump($test->getColourArray()); // array(3) { [0]=> string(3) "Red" [1]=> string(6) "Orange" [2]=> string(6) "Yellow" }1 point
-
For those who want to know more or want dig deeper into this JSON-LD/Rich data/schema.org topic - there is a really good write-up about all this with examples and recommendations as well: https://www.link-assistant.com/news/structured-data-for-seo.html1 point