-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
Hi Horst - thanks ! i'm using PW pages for the email and i have contacts stored in pages and then i can use asmselect for choosing who to send to, 1 or more... so for multiple i use the recipients array // Recipients if($message->recipients->count()) { $recipients = array(); foreach($message->recipients as $recipient) { $recipients[] = $recipient->title . ' <' . $recipient->email . '>'; } $mail->to($recipients); } but i was thinking that I want to personalize the emails, so i would need to refactor the code to start a loop with the recipients and then run a string replace on the {{name}} placeholder in the email... how does this relate to the bulk option? thanks also about the gmdate - will look at that tonight.. cheers!
-
@horst - thanks, this time difference thing is probably related to the actual server location vs the config->timezone ? does your module use the config->timezone setting to set that? regarding the whole logging thing, i feel stupid, i'm pretty much lost even after reading this thread 5 times... no idea how to simply log the success of a mail being sent, either to a log file, or to a field on my page... for now i do this which is ok for the moment: // Send $sendLog = 'Number Sent: '; $sendLog .= $mail->send(); // Logging $email_log = $message->email_log; $email_log .= "\n". $sendLog; $message->email_log = $email_log; $message->of(false); $message->save();
-
hey - thanks; I went with Servint for now; Appreciate the Digital Ocean referral; they are somewhat less expensive than Servint...but the support is pretty good..
-
there has been some talk also on another thread about this; Joomla with Maian Media is how I do this now; when a customer purchases downloads, the script redirects them to paypal; the IPN is processed after payment which then lets MM create the download page, that has the download links to the files; also sends an email to the user with the URL to their special download page. It would be important for such a system to simply track the # of downloads, and also allow for hiding the file location (could be on a local server or on s3..) but all in all the logic should be pretty simple - gonna try and write this later this summer...
-
hi teppo - many thanks, will update the module soon - for now i gave that user superadmin to get through the project, and this issue wasn't happening on all pages, just certain ones; i will update module, reset the role and report back asap...
-
@Can - many thanks, looking forward to studying your post!
-
@Can - could you possibly share how you setup mpdf with PW? maybe on a tutorial thread? cheers!
-
we seem to be having the same issue again with non-superusers not being able to save (Only superusers can edit field) even though the user didn't edit the textarea markup field, since it is not editable for their role; (using 1.0.3)
-
BTW, you could do this: <?php echo $page->meta_title ?: $pages->get('/')->meta_title; ?> instead of this <?php echo (($page->meta_title) ? $page->meta_title : $pages->get('/')->meta_title); ?>
-
@teppo - does WireMailSwiftMailer support attachments?
-
actually you can just show different content based on the request type; so if you are doing a quick view, then you show that with Ajax; if you are linking to the page you show the page code; i'm doing that here: http://www.katonahartcenter.com/student-showcase/ and here: http://www.charleswuorinen.com/compositions/ so on your template: <?php if($config->ajax) { ?> show your markup for the quickview here <?php } else { ?> show your normal page code <?php } ?> so you don't need the quickview part of the URL
-
@Horst, great module, many thanks for your work on this! Got attachments sending and works perfectly.... Got a couple of questions; first thing is that my email client is showing the wrong time sent on the emails, specifically Outlook for Mac; webmail, apple mail and android mail are all showing the correct sent time; just wondering why Outlook is showing the sent time as 4 hours before the actual time sent - could it be interpreting the headers differently? Other than these messages sent by WiremailSMTP, outlook shows the correct time sent... ** Update - i'm now using mandrill for the smtp and this has fixed the time being wrong on Outlook; not sure if it is the server, or if Mandrill is cleaning up/altering some part of the email code itself; 2nd question is how might i use logActivity ($logmessage) to save that activity into a textarea field on my processwire page that the email is generating from?; would be cool to show a field with the send log right on that page; another question which isn't really directly related to the module, is how one might use images within the RTE and be able to have the email display the images; it would require replacing the relative image paths in TinyMCE with the absolute paths, but i'm not sure how to get started on that...[for now i have a hanna code that inserts the site's base path; kills the image in the editor, but it shows in the email...
-
@Beluga - you have a good point. I'm setting up a prestashop now and having strange issues with things not working.. still, it beats some of the other options out there and some things work really well out of the box...
- 69 replies
-
- e-commerce
- digital downloads
-
(and 2 more)
Tagged with:
-
@videokid - Opencart does look good; hmm maybe i should use that instead? there are so many factors i'm needing to provide the client, and been testing carts for so long.. maybe i'll setup an opencart demo and see how it goes... thanks
-
hi pwired, this company had originally thought they could just go with Shopify for an initial launch and then gradually migrate to something different if their business took off; I had originally recommended Shopify to them, and it is good for really simple shops; however this company has some extremely complicated requirements which were not revealed to be incompatible with Shopify until after they had already invested a number of hours into setting it up; I think Shopify is largely to blame for this because they are somewhat cagey about the limitations of their system, and there are some things that it simply cannot do (period); it became obvious after a while and searching forums that Shopify has horrible/useless support for product variants, while Prestashop handles variants really nicely; with PS, you can use the combinations generator to get your size/color combinations, and from there change the SKU#s, associated images, and many more settings per product variant. On the frontend when you change to a different product variant, the URL hash is altered to reflect the variant selected, the images are swapped out; in the cart and all the way through checkout the correct product variant image is retained. Shopify can't do this at all - it requires a hack to get it to show the right image in the cart, and then at checkout it cannot show the correct image, it can only show the default image for the parent product... I think you'll be happy with prestashop if you are looking to replace abantecart; they have come a long way; I still have a way to go with this project so i'll let you know if anything else interesting happens..
-
@blad - welcome to the forums! not totally sure here, but could possibly be an issue with trying to sanitize as text, since ID is (int). have you tried it without the sanitizer, and also have you tried it with different operators like *= and ~=?'
-
@pwired, thanks, yes those are all valid points... Some of them can be solved in the current version with addons; gotta say though, none of those issues are dealbreakers for this project; we spent/wasted a ton of time on other options, but ps has really been nice to work with..
-
wow that's cool...! glad this code worked!
-
@pwired, i have it running on shared hosting and the speed is fine; i can only imagine how much faster it will run with combine/cache/minify enabled and on a VPS; certainly getting much higher speed ratings out of the box than Shopify, which AFAIK doesn't offer any caching or asset combining/minifying..
-
Hi All - I'm helping out a client who is setting up an ecommerce site... We had originally planned and started on a processwire+foxycart site, however they need a ton of user account functionality, as well as advanced product management which is all easier/faster/cheaper accomplished with Prestashop, and they need it faster than I can build it in PW... I want to find them a host that will work really well for this and was considering this Servint plan, with the cPanel: SolidFire Essential 3 GB 50 GB 400 IOPS 1000 IOPS 6000 GB 4 $69.00 i need something that would perform from a server perspective as good as a hosted service like Shopify, and i want them to have enough support so that they don't need to call me about server related issues, as i can't offer SLAs at this point (too small and total freelancer).. any advice from current Servint customers, or any alternates i should look at before signing up? I spoke to Servint and i'm pretty much sold on them (even with the recent downtime...) on a side note - has anyone here worked on Prestashop sites, have any advice or recommendations about that? I tried many systems (lemonstand, shopify, volusion, ecwid, magento etc.) but Prestashop seems to have a special set of features that make it work really well for clothing and fashion, and the other systems basically pale in comparison, at least for this specific application... i like the admin well enough (better than the other systems mentioned) and seems put together decently enough;
-
yeah - sorry there was an error: if($count !== $total) echo "<div class='col-md-4'><ul>"; that should fix it and make it start the new column; you should be able to put back your variable logic how you want, to get the new region label; i think it's really important to comment your code, so that anyone looking at it can understand it, especially if you are posting to a forum; so commenting the logic all the way through would make it easier for us to follow what you're trying to do.. also can't guarantee this will work without being able to test it...
-
<?php function dmc_list(){ $dmcs = wire('pages')->find("template=dmc"); $dmcs->sort("parent.title"); $total = $dmcs->count(); $items_per_column = ceil($total / 3); $count = 0; echo"<div class='row'>"; echo "<div class='col-md-4'>"; //start the first column echo '<ul>'; // start your first list foreach($dmcs as $dmc){ $new_region = $dmc->parent->title; // why the same variable? $region = $dmc->parent->title; if($region !== $new_region) echo "<li class='list-group-item list-group-item-info'><b>{$region}</b></li>"; echo "<li>{$dmc->title} {$region}</li>"; if(++$count%$items_per_column) { // this will be false when we are on the last item in column echo ""; } else { // this part will run when we are on the last item in the column echo "</ul></div>"; if($count === $total) echo "<div class='col-md-4'><ul>"; // this will start a new column unless we're on the last item. } } // end foreach echo "</div>"; // end row using the modulus : $a % $b Modulus Remainder of $a divided by $b. so if the items_per_column is say 40, then there will be no remainder when the count hits 40 (false condition) so then it uses the false clause and closes the tags, and start the new tags; not perfect, but should give you some ideas about how to use some tricks to make it cleaner
-
there is quite a bit wrong with this; where are your opening <ul> tags? this looks like bootstrap 3 and you are trying to do a structure with a random # of columns (which you won't know ahead of time); looks like you want 3 items in each column, seems backwards... also i don't see why you need the container.. this is the best i could do with limited info, and you never defined $new_region variable <?php function dmc_list(){ $dmcs = wire('pages')->find("template=dmc"); $dmcs->sort("parent.title"); $dmc_total = $dmcs->count(); // if 100, then you have 34 columns, 3 rows? $column_total = ceil($dmc_total / 3); $count = 0; echo"<div class='row'>"; echo "<div class='col-md-4'>"; //start the first column echo '<ul>'; // start your first list foreach($dmcs as $dmc){ $region = $dmc->parent->title; if($region !== $new_region) echo "<li class='list-group-item list-group-item-info'><b>{$region}</b></li>"; echo "<li>{$dmc->title} {$region}</li>"; if($count !== $column_total) { echo (++$count%3 ? "" : "</ul></div><div class='col-md-4'><ul>"); } elseif ($count === $column_total) { echo "</ul></div>"; } } // end foreach echo "</div>"; // end row this definitely won't work, because it won't be consistent with bootstrap framework (too many columns) and also the you will need 2 counts, one for columns and one for the UL... if you give me more info i will fix the code i postef
-
https://twitter.com/servint
-
yes, we can help! you just need to add check_access=0 to your selector http://cheatsheet.processwire.com/selectors/built-in-page-selector-properties/check_access-0/