Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Pixrael

  1. Yes, for me it has worked as follows: I'm not brave and complex enough to go with Laravel, but I'm also not cowardly and simple enough to go with SquareSpace πŸ™‚ so Processwire fits me like a shoe πŸ˜‰
  2. But I want to comment πŸ˜‰ ..when you release Padloper2, Can you create a tutorial, or better a course, how to use Vue+PW in modules development? I think if you put it on Udemy, some of us might buy it.. I would like to start creating modules and I think Vue is the way. You will allow us to know if this will be a bigger and better step than using UIKit in Processwire. Thank you for bringing this to our environment.
  3. For me, it depends on the types of users, there are "Back-end Users" and "Front-End users". For the first I don't need to adjust the look and feel, just control the access/actions to avoid problems, mainly they are people from the business administration or team specialists. For the second, I generally need to create a profile/settings section on the Front-end that matches the look of the website/brand. Usually they are public/unknown people/customers from all over the world and I always want to keep them out of the PW core. But is not a big deal because building a custom Front-end user manager or access control is also very easy using the API. For this particular project it's easy to do it on the Front-end, you just need to know the user/role logged to show/hide information in the template files. Using the free LoginRegister module is essential, but if you can go for the Pro version, much better.
  4. Can you put a screenshot here of your Template settings (Setup/Templates/Parent_Template_name) ?
  5. echo '<img src="' . $entry->logo->url . '"/>';
  6. That depends on the store, if the monthly income is in the order of $20,000, the fee for using Snipcart is $400.. but in more quantities, it will go crazy. In one of the stores that I manage (Check the picture), so far this month (and there are 8 more days) the Snipcart charges would go up to $16,658, but Shopify only charges me $266 for the whole month. It would be very interesting to have a similar module for Shopify, or better for a headless ecommerce patform like https://saleor.io/ PS: Source https://github.com/mirumee/saleor Store example https://pwa.saleor.io/ Admin https://pwa.saleor.io/dashboard/ Login credentials: admin@example.com / admin
  7. Yes, it happened to me too, and twice!! ... but the third time I started to understand ... I'm a graphic designer, but I knew something about php, however you need to understand how PW is going first, if not, you are shooting blindly . When you reach that stage, then you discover how easy it was! I must admit that for me the selection of the names for the components of the system does not help at all in the learning curve. Because we arrives here with names learned elsewhere and here it's not used for the same thing (Pages, Templates, Template files, etc.) For me the new concepts was the most difficult side.
  8. Are you going to spread that love in all your modules? 😎
  9. This is the way ... now Shopify .. then Processwire + Padloper 2 (when released)
  10. Uf! I don't know, but you can implement a module for this https://cloud.google.com/bigquery and then share it here! πŸ˜‰
  11. For the storage of data that does not change anymore after saving it, (I mean it's not necessary to edit and save constantly) I use the module Fieldtype YAML. It's very easy to read the data and to save it too. You can save simple objects or an entire structure in the field, however you want to do, only using an associated array. For saving part check this post:
  12. Can you use a REST endpoint for the 3rd party app? ..is easy to deliver the information in JSON format from any form entry
  13. I tested the following and works, but I never used it in production: If you render your form in the template using the Custom Embed method (Option C), you can pass the page information as an array to the same form using the render method (https://processwire.com/api/ref/form-builder/render/) to pre-populated the values (field names and array names must match). When the form is submitted, you update the page related. For this, you need to implement a mechanism to know when the form is in ADD mode or EDIT mode, maybe using urlSegments, or a hidden field in the form, or different template for each action.
  14. Maybe this PW theme can be adapted to restaurants: https://seavuel.com/ ..or you can follow this recommendations: OpenTable could be a good easy solution, you can use the API or Widget: https://support.opentable.com/s/article/How-do-I-install-the-reservation-widget-to-take-reservations-on-my-website-and-Facebook?language=en_US ... check one implementation example here: https://www.babbonyc.com/
  15. Well... Homework => https://github.com/search?l=PHP&q=websocket&type=Repositories
  16. How the current connected users at that page knows about new (or ended) user connections? I think you need a solution with Websockets, check https://socket.io/ Update: for php check: http://socketo.me/
  17. I really have a Shopify class implemented, but basically you can do this as simple as: // https://shopify.dev/tutorials/authenticate-a-private-app-with-shopify-admin $key = "yourkeyhere"; $pass = "yourpasswordhere"; $store = "yourstorename"; $data = array( "since_id" => "632910392", // Retrieve all products CREATED after the specified product (by ID) "fields" => "id,images,title", // include only this attributes in the response ); // Is better to use try/catch here $http = new WireHttp(); $response = $http->getJSON("https://{$key}:{$pass}@{$store}.myshopify.com/admin/api/2020-01/products.json", true, $data); // True to get an array, False for object $products = $response["products"]; if (count($products) > 0) { foreach ($products as $product) { echo $product["title"]; // direct output or save to a custom array to use in views, etc. } } // use the id field for the Buy Button js code in order to have the cart/checkout in your site
  18. Yes, of course ... check the documentation page, you can get all or just one product, create a new one, modify it or delete it etc. PRODUCT: https://shopify.dev/docs/admin-api/rest/reference/products/product You can do this simply using WireHttp, I think if you want to add much more information to the product than Shopify allows or to relate it directly to other PW pages, then it makes sense to have a copy in PW and keep the synchronization between them, but if you only want to display products in a section of your website like a regular store only for selling, then you can simply query the API from your template file and process/display the answer on your website. When you check the DOC page you will see very clear examples of how to use the queries, you will see that you can use filters, and the answer is JSON that you can easily manipulate in PW. For the synchronization issue you can export the list of products to a CSV file and import it in PW, in my tests I used Ryan's module and it worked perfectly. Shopify also has Webhooks that allow you to update PW from Shopify according to events in the store such as new product, modifying or deleting it, new order etc. WEBHOOK: https://shopify.dev/docs/admin-api/rest/reference/events/webhook In other words, there are many ways to interact with Shopify and they are all very simple, well.. it seems to me, that I'm a graphic designer and not a professional programmer.
  19. Nope, I'm sorry.. We finally ended up using Shopify as the platform for our online stores, ..and due to the volume of sales, we went to the biggest plan: Shopify Plus, which also gave us a discount on the payment gateway fee that we could not miss. But I remember 3 years ago, that we tried several ecommerce systems, and one of the tests that I did was using the Buy Button code with PW and it was very simple and easy. Currently I use the Shopify API to get information about orders in an internal system (PW) and then get quotes for LTL shipments from different carriers and fulfill the order. In this process I need to deal with several APIs and I can tell you, the Shopify API is one of the easiest to use and the authentication process is very simple.
  20. Check this: https://www.youtube.com/watch?v=CSglrisvE7Y Shopify will provide the js code for a single product or collection every time you create a Buy Button.. But if you check that js code, in the "ui.createComponent" there is an element ID that corresponds to the product ID in Shopify, ..so you can tricky that js code (css style too) by assigning the product ID to a field on the PW page that represents the product, then you can use only one js code in the product template file, and just echo the ID. Anyway you can try it yourself, there is a trial option for 90 days!!! Check this too: https://www.youtube.com/watch?v=fB02qCpCTqg
  21. MY OPINION here: While we wait for Padloper v2, using Shopify is the best option. You will pay $29/mo plus the common fees for payment gateways 2.9% + $0.30 per transaction. This includes unlimited "managed" high-speed hosting, several free front-end themes and the easiest to use back-end you can imagine, including statistics, marketing tools, selling on multiple channels (facebook, messenger, instagram, amazon, ebay). Also you can stop your subscription at any time, and jump to Padloper v2 when it's out. But.. if what you want is to use Processwire for content and implement only the shopping cart and the payment gateway inside: Your best option is Shopify.. again. There is a plan for $9/mo that does not include the front-end store, only the admin part in which you can enable the "Buy Button" sales channel and with a small javacript code you have the cart on your website. It's very similar to what Snipcart does, but muuuuch cheaper, because Snipcart charges 2% plus 2.9% of the payment gateway in each order. In my company (we sell Air Conditioners) the AOV is between $2000 - $4000 that total fees represent a maximum of $192 per order, where Snipcart will get $80 for each order. We are in the low season, and today we start the day with 108 orders, make the numbers.. ~$8000 in one day for Snipcart plus the CC fees! I know this also depends on the type of store you have, but my advice --> never EVER go with a solution that charges you a percentage of the sale. PS: Shopify also comes with a very VERY very easy to use API (REST and GraphQL too) ..maybe one day we can have our Shopiwire LOL PPS: None of this is a Shopify affiliate program, it's just a personal experience after a lot of research. https://www.shopify.com/lite
  22. Super Tracy!! LOL .. Another feature discovered today:
  • Create New...