Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by Noboru

  1. Hi @Gadgetto
    I need additional consent to the general business terms. For API version 2 this is documented here: https://docs.snipcart.com/v2/configuration/custom-fields

    It works like this in a test in MarkupSnipWire:

     $jsResources[] = 
                  '<script src="' . $this->snipwireConfig->snipcart_js_path . '"'
                . (!empty($this->snipwireConfig->snipcart_js_integrity) ? ' integrity="' . $this->snipwireConfig->snipcart_js_integrity . '"' : '')
                . ' data-api-key="' . $snipcartAPIKey . '"'
                . ' data-cart-custom1-name="By checking this box, I have read and agree to the <a href=\'https://www.processwire.com\' class=\'js-real-link\' target=\'_blank\'>Terms &amp; Conditions</a>"'
                . ' data-cart-custom1-options="true|false"'
                . ' data-cart-custom1-required="true"'
                . ' id="snipcart"'
                . '></script>';

    Could such a custom field be accessible via the configuration? Or is there a better way?

  2. 9 hours ago, Gadgetto said:


    I just tried to reproduce the problem but couldn't. I installed ProcessWire 3.0.147 on a fresh MAMP host and installed SnipCart on the naked system. Also installed the additional resources package from within SnipWire settings - and it worked like expected.

    Could you please provide more infos regarding your setup? PHP version, CURL version, additional installed modules, ...?

    Hi @Gadgetto,

    I'm using MAMP Pro 5.5.1 with PHP 7.3.8 (tried it with 7.1.31 with the same result), 

    /Applications/MAMP/Library/bin/curl --version
    curl 7.65.1 (x86_64-apple-darwin13.4.0) libcurl/7.65.1 OpenSSL/1.0.2o zlib/1.2.8 nghttp2/1.29.0
    Release-Date: 2019-06-05
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
    Features: AsynchDNS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets

    It's also an naked PW 3.0.147 without any other modules.

    Its the same result like on my webhost (curl 7.19.7 , PHP 7.3.12).

    More testing on webserver (because webhooks and full configuration):
    If I set the price to a value without a comma everything works as expected (SnipWire log: Fetched Snipcart product with SKU [1116] / ID [xxx-xxx-xxx-xxx]. 

    But if the product price is for example 11.50, I get Snipcart product with SKU [1116] could not be fetched. [500 Internal Server Error: ]

    I've tried different settings for decimal separator in app.snipcart.com Regional Settings.

    The Markup for the Add-to-cart-Button looks like this:


    <button class="snipcart-add-item" title="Add to cart" data-item-name="Axolotl Juicer" data-item-id="1116" data-item-price="11,5" data-item-url="https://roland.zumpixel.de/shop/axolotl-juicer/" data-item-description="Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." data-item-image="https://xxx.xx.de/site/assets/files/1116/beer3.65x65-hidpi.jpg" data-item-metadata="{&quot;id&quot;:1116,&quot;created&quot;:1576098063,&quot;modified&quot;:1576185868,&quot;published&quot;:1576098063,&quot;created_users_id&quot;:41,&quot;modified_users_id&quot;:41}" data-item-quantity="1" data-item-quantity-step="1" data-item-stackable="true" data-item-taxable="true" data-item-taxes="20% VAT" data-item-has-taxes-included="true" data-item-shippable="true">Add to cart</button>



  3. Hi Martin,

    that looks very promising! Unfortunately I can't get the module to work properly. I'm using the last dev version of processire. I get the following error when I try to install the sample products:
    Raw data option with CURL not supported for GET 
    In /wire/core/WireHttp.php line 642

    Then I get when saving a product:
    Snipcart product with SKU [1032] could not be fetched. [500 Internal Server Error: ]

    I tried it in different environments, but in MAMP I also get these errors.

  4. Hi @AndZyk,

    you could try this:
    brew install imagemagick
    brew install pkg-config
    pecl install imagick

    For me this installs 

    In MAMP I switched to PHP 7.1.22 and edited in corresponding php.ini

    Now MAMP should use a newer Imagmagick with WebP-Support.

    Hope that helps.



    • Like 2
  5. Hi @horst,
    My ImageSizerEngineVips is based on your ImageSizerEngineIMagickCLI with code from other sizers. The module works fine, but at the moment only for my needs, because I optimized for speed and left some options like sharpening. But if I have the time and interest, I can polish it.
    Another thing:
    I only use WebP in pages with lazy loading and srcset. Because of that I have only variations as WebP, not the uploaded pageimage. Your change here checks not only variations, right? For me, it changes many variations that already exist. 

    • Like 2
  6. @horst, it's perfect for me. I already had WebP since your code from late 2018 and use my own ImageSizer, which relies on LibVips. The Vips engine is very fast - about 5 times faster than ImageMagick. I hope WebP will make it into the core soon - many thanks for your hard work!

    • Like 5
  7. Changing to "wire('config')" was successful. The next "this"-error was on line 430 ( Using $this when not in object context). I changed the output to only "$disabledText" and now AOS is working on PHP 5.3.8 :-) Unfortunately, I can not switch to a newer PHP version on the server because there is still an old application running PHP 5.3.8.
    Processwire is on latest Dev (3.0.40), but I think the error is because the old PHP.

    Thanks for your support!

    • Like 1
  8. Hi tpr,

    for me v054 gives an error just after updating:

    Parse error: syntax error, unexpected '.', expecting ',' or ';' in /Users/armin/Websites/pwreiter/site/assets/cache/FileCompiler/site/modules/AdminOnSteroids/AdminOnSteroids.module on line 23

    I'm running on PW 3.0.32 in local environment (MAMP). I had no issues with past versions of AdminOnSteroids.

    • Like 1
  • Create New...