doolak
Members-
Posts
323 -
Joined
-
Last visited
Everything posted by doolak
-
module SnipWire - Snipcart integration for ProcessWire
doolak replied to Gadgetto's topic in Modules/Plugins
I got it working by adding the Javascript manually. This module is so great - it should be continued! Great work, @Gadgetto!!! Hope you will find the time to continue developing. Another question: As you live in Austria - do you have any German Translation for it? Cheers, Christian- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
module SnipWire - Snipcart integration for ProcessWire
doolak replied to Gadgetto's topic in Modules/Plugins
Hi all, I know, this module has not been updated for a long time, but I wanted to give it a try and installed it. There was one PHP error, as I installed it on a PHP 8.1 Webspace, but this could be fixed easily. Everything seems to work fine (Dashboard etc.), but when I click on a "Add to cart" - button, nothing happens. There is no error shown. So I had a look at the sourcecode and as far as I can see there is some Javascript/JQuery necessary to fire that button. But no Javascript is included in the template folder, just in the admin area. Has anybody an idea how to get this work? Kind regards, Christian- 232 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
FieldtypeDecimal - how can I output the value with decimals?
doolak replied to doolak's topic in General Support
It's possible with number_format, e.g.: $price = $page->produkt_price; $price_decimal = number_format((float)$price, 2, ',', ''); ?> But I am sure there is a method to do it with Processwire tools, isn't it?- 1 reply
-
- 1
-
Hi all, I am trying to use PaymentMollie with Padloper. Unfortunately I could not find any detailed information how to use this module. I have read the instructions on the GitHub page but I am struggling a bit with the integration. Are there any more detailed information available somewhere? Kind regards, Christian
- 4 replies
-
- paymentmodule
- padloper
-
(and 1 more)
Tagged with:
-
OMG - I found the problem... I have changed the field name of the image and didn't change it in the template... ? Everything works fine now again! I wish you all a happy and peaceful Advent season! Cheers, Christian
- 1 reply
-
- 1
-
Hello there, hope all of you are fine and healthy. I wish you all a happy second Advent Sunday! I have a little problem using the resize function on one page - oddly enough it works fine on another page. The code I use is the following: <?php $image_resized = $page->product_image->size(806, 1028) ?> <a href="<?php echo $image_resized->url; ?>" class="lightbox-gallery-3 mfp-image"> <img src="<?php echo $image_resized->url; ?>" alt="<?php echo $title; ?>" /></a> When trying to open the page I find the following error in the logs: 2021-12-05 14:44:21 cschindler https://www.feinkost-garten.de/shop/gemuese-abo/vital-box/ Schwerwiegender Fehler: Uncaught Error: Call to a member function size() on null in /home/feinkostgarten/public_html/site/assets/cache/FileCompiler/site/templates/shop_single.php:19 Stack trace: #0 /home/feinkostgarten/public_html/wire/core/TemplateFile.php(327): require() #1 /home/feinkostgarten/public_html/wire/core/Wire.php(414): ProcessWire\TemplateFile->___render() #2 /home/feinkostgarten/public_html/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___render', Array) #3 /home/feinkostgarten/public_html/wire/core/Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #4 /home/feinkostgarten/public_html/wire/modules/PageRender.module(554): ProcessWire\Wire->__call('render', Array) #5 /home/feinkostgarten/public_html/wire/core/Wire.php(417): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #6 /home/feinkostgarten/public_html/wire/core/WireHooks.php(951): ProcessWire\Wire->_callMethod('___renderPage', Array) #7 /home/feinkostgarten/public_html/wire/core/Wire (Zeile 19 in /home/feinkostgarten/public_html/site/assets/cache/FileCompiler/site/templates/shop_single.php) On the homepage I use a very similar code and it works fine: <?php $image_resized = $four_boxes_box->four_boxes_bild->size(1090, 494) ?> <img src="<?php echo $image_resized->url; ?>" alt="" class="wow scaleOutIn" data-wow-duration="1.2s" /> Does anybody has an idea what could be the problem? I am using the not working code in a PadLoper template, but as I can't imagine that this makes any difference I wonder why it doesn't work on one place but works on the other. Kind regards, Christian
-
Would be happy if I could take part! Cheers, Christian
-
List of child pages not shown on language URL page
doolak replied to doolak's topic in Multi-Language Support
Hello again, a very nice guy sent me a pm with some suggestions and of of them worked: And it wasn`t activated but needed... So it works fine now! Merci encore pour tout, C.! Kind regards Christian -
Hello everybody, on a multilanguage job website I am using the following code to show up a list of job offers. The site structure is as follows: - stellenangebote/ -- stellenangebote/stellenangebote_de/ --- jobs as child pages The jobs are located under /stellenangebote/stellenangebote_de/ as child pages and I want to show them up on /stellenangebote/ with the following template code: $stellenanzeigen = $pages->get("/stellenangebote/stellenangebote_de/"); foreach($stellenanzeigen->children('stellenanzeige_kategorie=1') as $child) { ?> <h3 class="uk-text-primary"><?php echo $child->title ?></h3> <?php } ?> This works fine for the default language (german) on /stellenangebote/ but its does not work on the french url version of this page /fr/offres-demplois/ . I have no idea whats wrong - has anybody an idea? Cheers Christian
-
Thanks a lot, Peter!
-
Hi there, found in the Roadmap that it is planned to replace the Regular site profile with a Uikit-based site profile. I am already working with Uikit - so I am looking forward to the replacement. Is this possible to get the Uikit-based profile even now? Kind regards, Christian
-
No, it wasn't CKEditor - modified it in the module now and it seems to be ok.
-
So it seems to be CKEditor which produces the problem - tried to set config.forceSimpleAmpersand in CKEditors config.js, but no success. Any idea?
-
Hi, it's me again... Strangewise after having used the module for a long time I am having now a little problem with the generated URLs. The output encodes the URL Parameter to & - Maybe this was the same all the time, but now Google returns an error: https://maps.googleapis.com/maps/api/staticmap?sensor=false&center=loc:47.8528818,12.3630332&markers=loc:47.8528818,12.3630332&size=240x200 Does anybody have an idea how to fix this?
-
Hey sorry, found the problem... The error occured just because there where some pages without added images - everything is fine now!
-
Hi there, I need to show a cropped image from another page, which is selected with a page-field. I get the following error: here is the code I use: <?php foreach ($page->selected_page as $portfolio_item) { echo "<article class='one-fourth'\n>"; $image = $portfolio_item->foto->first()->getCrop('vorschau'); echo "<a href='{$portfolio_item->url}' alt=''>\n"; echo "<img src='{$image->url}' width='220' alt''>\n"; echo "</a>\n"; echo "<a href='{$portfolio_item->url}' class='project-meta'>\n"; echo "<h5 class='title'>{$portfolio_item->title}</h5>\n"; echo "<span class='categories'>Lorem ipsum dolor sit amet</span>\n"; echo "</a>\n"; echo "</article>\n"; } ?> On the portfolio page itself there is no error when showing the cropped image - anybody an idea what can be wrong?
-
As I found no solution without hacking the core I tried to do it with jQuery. This seemed to work, but then I recognized that the browser will have already tried to load the images from the relative path before the script will be called. So I am using a PHP solution now: $body_orig = $page->body; $body_absolutepath = str_replace("/site/assets/files/", "http://xyz.de/site/assets/files/", $body_orig); echo $body_abosultepath; This works fine - but if somebody knows a simpler and better solution, please let me know.
-
In an actual project I had to install PW in a subdomain and display the content via JSON / Pages Web Service. So I have the problem that, when adding images to a CKEditor textarea, the image path has to be absolute. Is there a possibility to make CKEditor render the image path in that way?
-
Thanks a lot - have updated and it works fine. At the moment without translation support for the buttons but very nice!
-
Ah, so this feature exists just in the dev branch - not in the stable version, right?
-
Where can I activate this?
-
Is this module still available and working with the newest PW release? Couldn't find it in the modules list.