-
Posts
68 -
Joined
-
Last visited
Everything posted by michelangelo
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Following Gadgetto's train of thought I also found out now that using a commercial solutions really saves money in the long run. I really didn't want to risk security for example, so Snipcart could be great. Otherwise there are many breakdowns of what's good and what's not and I think unless you have an extremely simple shop you will most likely need a fully-fledged system.- 232 replies
-
- 1
-
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Hello everyone, I was curious to know if there is a way to access discounts from SnipWire? I would need it to recalculate the price on the front-end based on the quantity of items. Thank you! p.s. I know I have been posting a lot, but it's my first time using SnipWire and Snipcart so much. Thanks for the understanding.- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
@Gadgetto That might help! I think in general more thorough documentation will really help people, but I can understand that's quite a lot to do. For example, I am not super sure how Snipcart parses all the information from the $anchor variable output by SnipWire? I want to update the price based on a bundle of products by using prices and discounts directly from the Snipcart API: So when you go up or down the grams, it will already update the price on the right (also adding the discounts if any). 1g = €50 2g = €90 3g = €130, etc Now do I access directly Snipcart with its own api or I change the cart by SnipWire? This: Snipcart.api.items.add({ "id": "mineral", "name": "Mineral", "price": "50.00", "quantity": 1, // change this value to update the cart? ... }); or this: <button class="snipcart-add-item" title="Add to cart" aria-label="Add item to cart" data-item-name="Mineral" data-item-id="mineral" data-item-price="{eur: 50.00}" data-item-quantity="1", <!-- change this value to update the cart? --> ... Add to cart</button> I would like to keep it simple and clean. Last but not least Thank You for all your work, it is a massive help!- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Thank you, sorry for wasting your time with this!- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
I am checking all the settings now, but I cannot figure what could've gone wrong. I set up an express Paypal gateway. I tried to disable it but I cannot really, I just entered wrong paypal but still sends me directly there. I tried it in TEST mode and it works properly... I also see that my client has entered their card but I cannot be sure if it is proper. It says 'Name on card: visa'. Maybe they didn't fill it in correctly and that's why Snipcart doesn't let the user pay to it? Update: I added a new card. Now I can pay with card but it always sends me to this PayPal page, so I guess it's all fine. I just expected it to look something like this: @Gadgetto can you just confirm if that is what you see usually in LIVE too?- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Hello everybody, anybody had any problem with credit cards not showing up on check out? Everything was working fine and I am at the end of the project. But when launched into Live with set up credit card on the seller's side and Paypal, the shopping cart directly sends me to the PayPal. I cannot choose any credit card option. On the back-end of Snipwire I see the three default options Visa, MasterCard, Maestro, but nothing shows up... Any ideas? Thank you! p.s. @Gadgetto sorry for spamming, I thought I can delete my previous post, but I couldn't maybe somebody else can- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Hello everybody, anybody had any problem with credit cards not showing up on check out? Everything was working fine and I am at the end of the project. But when launched into Live with set up credit card on the seller's side and Paypal, the shopping cart directly sends me to the PayPal. I cannot choose any credit card option. On the back-end of Snipwire I see the three default options Visa, MasterCard, Maestro, but nothing shows up... Any ideas? Thank you!- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
@LostKobrakai thanks, I usually just make srcset with ProcessWire. Is that what you mean? BTW I checked better already and it seems like some videos of 20 sec were 25 MB that I compressed to 2.5 MB. Quite impressive this Handbrake...
-
Hey @millipedia, thank you for the kind words and suggestions. I will suggest to the clients to use compression when uploading media to the website. One more thing I can ask: did you get error 500 sometimes? I got it a few times and wasn't sure what might cause it. Perhaps I misconfigured the ProcessWire?
-
Hello guys, I have been using ProcessWire for a while now and I really got to like it. However, I don't know how well I am building my websites. Recently I worked on a website with quite a few images and videos, where I noticed a bit of slow performance. Is anybody willing to take a look and tell me if I am doing wrong something wrong. Thanks!
-
Yes, I do have ffmpeg, but MAMP is not aware of it, that's why I need to direct to it. I need to do something extra, it didn't work out of the box.
-
-
Wow @adrian I am hitting a huge wall with installing ffmpeg-php. There are many outdated or confusing tutorials online. Do you have any tips? I am using MAMP with php 7.4.2 and ZSH as shell.
-
@adrian good point. I guess I wasn't really taking advantage of it then :D I will install the php-ffmpeg module and see... thank you.
-
Yes, I agree. I just like it because it keeps everything a bit more tidy at the backend. BTW the thumbnail generation is not really working for me. I am not sure if I did something wrong...
-
Hello @bernhard, for the super late reply. I was super stressed around this project and just couldn't get my thoughts together. Thank you for your reply and the work on RockFinder3. I wasn't really able to contain the results I was interested in from RockFinder in an array for further use. I think that's what frustrated me. But it's probably due to my lack of knowledge of PHP rather than the module itself.
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
@Gadgetto I submitted an issue on github with the accompanying images. A bit late but better than never I suppose... I closed the issue as I realised I just had to add the specific currency field to my template... I don't know why I assumed SnipWire is converting all the currency based on the initial one. ?♂️ Anyways, it's all good now.- 232 replies
-
- 1
-
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
Okay, I start to get the general opinion towards Infinite Scroll :D
-
Wow @MoritzLost, that's quite a response. Thanks so much! I will post a few examples here of my code but reading all your point made me realise a few things. Let's start from back: We don't need to load the events, but eventually there is going to be many of them in the archive. My idea was to display the most recent ones and if you want you can pull the next most recent, etc. With pagination maybe it will work the best as I can render everything on the server and just display what I need. My idea was to render everything at the server side as it is easier for me. But I completely get your point why this is not scalable. The Infinite scroll was also too complicated for the same reason, I didn't know what's going on in the back scenes. Right now: let postData = { "ajax:": true, "itemOffset": itemOffset, }; $.ajax({ type: "POST", url: url, data: postData, beforeSend: function (xhr) { xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded") }, success: function (data, status) { pageData = data; itemOffset += itemsToLoad; } }).done(function () { // when finished and successful container.insertAdjacentHTML("afterbegin", 'loaded: ' + pageData + ' (by jquery ajax)'); }); and then I wanted to execute that with my load_events.php template: $num_new_events = $_POST['itemOffset']; $events = $pages->find('template=nk-event, limit=$num_new_events'); // Render something about these events title, images, etc... foreach ($events as $event) { $event_title = $event->title; //etc... $events_output+= '<div class='event'>'. $event_title .'</div>'; //etc... } return $events_output; and then my JS will take it again from there. Of course, this didn't work last week, now it works but only from the home page, because it cannot find my load_events.php file or CORS policy issues. So at the end, I thought it's a bit more straight-forward but it seems like I need to rethink my approach. I have spent a lot of time on this project, so maybe I will try to make what I have until now work or switch to pagination. Thanks for the feedback!
-
Hello guys, I know there are several AJAX threads, but I have been struggling for weeks with AJAX and I really want to get it working... Theoretically I understand what is happening, but how can I make it work in a ProcessWire context? Let's say I have 10 events (pages). I am displaying 5 and when I click 'Load More' it loads 5 more, etc. What I understand until now is: 1. Make a button 'Load More'. 2. Connect the button to AJAX function in JS (vanilla or JQuery or infinite Ajax Scroll). I prefer to be as simple as possible so I can tweak it myself. 3. Send the AJAX request to a php template that renders my content ( the 5 more events ) and returns it to my JS. 4. JS takes the returned content and appends it to my container in the DOM Step 3 is impossible for me. I tried so many different ways to just create a simple query, render my content and return it. If you can share your workflow and small bits of code, that will be the best thing ever. Thank you!
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Haha, no worries. I am really getting into Snipcart and SnipWire. I hope it's okay to ask a few more questions the next few days. Actually, I got one now because I am using Polish Złoty which is not parsed correctly so I get this message: I suppose that this comes from the Snipcart API, but then there it is formatted well... Is it because it doesn't have a currency symbol but just letters (pl)?- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Aha, thanks, so it is not part of the module and I don't have to tinker with that. Thank you again, great job on the module integration!- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Hello again @Gadgetto, I managed to make it work on my dev server, unfortunately after a lot of hassle because Duplicator and Site Export didn't work (Profile not found error). Anyways, now it works. I was wondering if I can implement Paypal payments? Is this something I need to implement or it is not yet in the module? Thanks.- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
michelangelo replied to Gadgetto's topic in Modules/Plugins
Okay, it seems clear. I am just using the SnipWire Module, I have no idea, whether I need to configure more than just the required steps in the module... Update: I saw that the default products from processwire are not included in the Snipwire db. I added them, but it still doesn't work.- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with: