Jump to content

Pixrael

Members
  • Content Count

    230
  • Joined

  • Last visited

  • Days Won

    2

Pixrael last won the day on March 30

Pixrael had the most liked content!

Community Reputation

257 Excellent

About Pixrael

  • Rank
    Sr. Member

Profile Information

  • Gender
    Male
  • Location
    Florida, USA

Recent Profile Visitors

1,722 profile views
  1. 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
  2. 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.
  3. 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.
  4. 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
  5. 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
  6. Super Tracy!! LOL .. Another feature discovered today:
  7. Intellisense never works with PW for me, I just uninstalled it and use the snippets Update: I mean Intelephense, I never try Intellisense
  8. Ideas to add: https://gist.github.com/kongondo/2b0a16df9eca30f5b9f9b92c7584e7e3
  9. Very Good! Congratulations! https://gtmetrix.com/reports/joerg-hempel.com/W4poteAu https://tools.pingdom.com/#5c3bbe0cae400000
  10. If in doubt, always use this: <?php namespace ProcessWire; ?> on the file to include, and use this: wire('pages')-> instead of $pages-> .. and that never fails 🙂
  11. I use BS all the time and my websites never look the same. I change everything I need, it's very easy to use SASS, and its grid and utilities classes are great. Maybe the sites look the same because you/they leave it with the "out of the box" style and layouts. You simply adjust colors, borders, sizes, spaces, fonts, icons, shadows, pictures, backgrounds, etc. and create designs/layouts in a creative/useful way and that's it. But never ever copy and paste the examples and start throwing code on it... and this will happen with any framework you use. You should always start with a good (useful) design of the page, without thinking about its implementation and then use BS or any other tool to do it as it was designed, as simple as that. PS: Ah.. I forgot.. I'm a graphic designer LOL
  12. Interesting Tool => Code Snippets Manager { https://masscode.io/ }
  13. Pixrael

    ProcessWire on the web

    If we check the reviewer website (https://dougmcarthur.net/) then we understand why he sees the Processwire environment so difficult and complicated, even for Wordpress standards this website is very simple: a theme template and a couple of posts. Additionally for that plain homepage in the "recommended" Wordpress it needs: Fully Loaded Time: 9.4s Total Page Size: 5.68MB Requests: 52
×
×
  • Create New...