-
Posts
404 -
Joined
-
Last visited
-
Days Won
3
Everything posted by WireCodex
-
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.
-
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
-
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
-
Super Tracy!! LOL .. Another feature discovered today:
-
-
Intellisense never works with PW for me, I just uninstalled it and use the snippets Update: I mean Intelephense, I never try Intellisense
-
Ideas to add: https://gist.github.com/kongondo/2b0a16df9eca30f5b9f9b92c7584e7e3
-
Markup regions - how to include files in _main.php
WireCodex replied to JayGee's topic in API & Templates
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 ? -
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
-
Interesting Tool => Code Snippets Manager { https://masscode.io/ }
- 246 replies
-
- 3
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
finding a repeater in pages by repeater subfield
WireCodex replied to jon9china's topic in General Support
-
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
-
A Master Class!
-
An elegant way to do this is how the Intuit company does it in the footer of the sites, see: https://www.intuit.com/ they have a link to a page for the explanation (intuit-cookies-policy) and other link to configure cookie management. Will be interesting if we have a module that do both: create the page for the blah blah.. and show the modal to admin the behavior.. then output the markup for this links (About cookies | Manage cookies) ?
-
Where do I store arbitrary data like global info or settings?
WireCodex replied to Vigilante's topic in Getting Started
https://processwire.com/blog/posts/pw-3.0.133/#new-page-gt-meta-method <-- the new kid on the block -
webhoster contabo compatible with processwire?
WireCodex replied to jajaja's topic in Getting Started
I use an ionos.com (former 1and1) dedicated server and it works great (features, performance and prices), but if what you need is something easy/cheap to admin for PHP projects you can evaluate this packages: https://www.ionos.com/hosting/php-web-hosting -
Where do I store arbitrary data like global info or settings?
WireCodex replied to Vigilante's topic in Getting Started
https://modules.processwire.com/modules/fieldtype-yaml/ -
? Will be great if you can mix Markup Regions with the concept of the "Tags File Compiler" module https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#new-module-file-compiler-tags
-
LoginRegisterPro <-- Great News!!
-
integrating payment process in a user registration form
WireCodex replied to JeevanisM's topic in General Support
Add the "Paid" field to the user template: https://processwire.com/talk/topic/16400-is-it-possible-to-add-custom-user-properties-to-the-user/ Then you can update that field: $user->setAndSave('paid', 'true'); You can use a FieldtypeCheckbox for that too, then the ON value is 1 and OFF value is 0 -
https://prog.tube/laravel-php-create-a-social-network-full-app https://github.com/lvntayn/laravel-social-network
-
This is my code fragment that is currently working.. but I save the image to file because my case // here I load the SVG file $svg = file_get_contents("https://www.domain.com/site/templates/images/$image.svg"); // here goes code to modify some elements, colors and texts in the svg .... // here I set the SVG var to Imagick and save to a PNG file ready for download $im = new \Imagick(); $im->readImageBlob($svg); $im->setImageFormat("png24"); $im->scaleImage(1024, 1024, true); $im->writeImage("../downloads/$filename"); $im->clear(); $im->destroy(); $file = "https://www.domain.com/site/downloads/$filename"; echo $file; I implemented it as a service that is called by AJAX and returns the URL to the generated image.
-
It work for me. Try to assign the image path manually to verify that the Imagick is working: $im->readImageBlob("https://www.domain.com/site/templates/images/image.svg"); If you are able to open the picture in the browser using the path, this should render the picture on the page.
-
Error on module Login/Register when enter a wrong password
WireCodex replied to WireCodex's topic in Modules/Plugins