Jump to content

mandrin

Members
  • Posts

    138
  • Joined

  • Last visited

About mandrin

  • Birthday 03/03/1974

mandrin's Achievements

Newbie

Newbie (1/14)

15

Reputation

2

Community Answers

  1. Sweeet! Got it figured out. Thanks Vekia! I am running PS 1.5.6 I edited the following file: mywebsite/modules/productcomments/controllers/front/default.php And I added the followin line: mail("[email protected]","new review","new review posted on website") After the first "$comment->save();" on line 110, like so: $comment->title = Tools::getValue('title'); $comment->grade = 0; $comment->validate = 0; $comment->save(); mail("[email protected]","new product review","new product review posted on website"); $grade_sum = 0; foreach(Tools::getValue('criterion') as $id_product_comment_criterion => $grade) { $grade_sum += $grade; $product_comment_criterion = new ProductCommentCriterion($id_product_comment_criterion); if ($product_comment_criterion->id) $product_comment_criterion->addGrade($comment->id, $grade); } It's there in the middle... Again, thanks for your help Vekia
  2. Sweeet! Got it figured out. Thanks Vekia! I am running PS 1.5.6 I edited the following file: mywebsite/modules/productcomments/controllers/front/default.php And I added the followin line: mail("[email protected]","new review","new review posted on website") After the first "$comment->save();" on line 110, like so: $comment->title = Tools::getValue('title'); $comment->grade = 0; $comment->validate = 0; $comment->save(); mail("[email protected]","new product review","new product review posted on website"); $grade_sum = 0; foreach(Tools::getValue('criterion') as $id_product_comment_criterion => $grade) { $grade_sum += $grade; $product_comment_criterion = new ProductCommentCriterion($id_product_comment_criterion); if ($product_comment_criterion->id) $product_comment_criterion->addGrade($comment->id, $grade); } It's there in the middle... Again, thanks for your help Vekia
  3. Thank you for your assistance I did reply, but unfortunately, I am not a coder and don't know the exact syntax and exact location to put the string. I have not been lazy and googled the hell out of this But what is basic for coders is not for a non-coder. My further reply is in the link you posted above. Kind regards,
  4. Ahhhh alas... I am not a coder. I need to know the exact string and need to know exactly where to put that string. die(Tools::jsonEncode(array( 'result' => $result, 'errors' => $errors ))); } mail([email protected],newreview,newreviewpostedonwebsite) protected function ajaxProcessReportAbuse() { if (!Tools::isSubmit('id_product_comment')) die('0'); Like in the above example, I don't even know if my code string is correct... Thank you Vekia, I did try your sugestion, but unfortunately the send button then does not work and the review is not submitted. What I need is rather a simple thing. I need a registered client to be able to review my products. I need to be notified via email that a review had been posted and placed in the moderation queue. I then need to go accept that reviw show it will show on my site. It is utterly inconcievable that such a highly required feature in todays modern eshopping world, is so difficult to inplement. Very frustrating to say the least As I said, I am not a coder, and as you are no doubt frustrated by our ignorance of simple concepts you take for granted, the reverse applies in equal measure for us too I am just rather going to have to play with the Yotpo module... I hate having a third party having control of my reviews, but this seems to be the only way I am going to get all the functionality I need. Kind regards,
  5. @ Dh42 , smile and wave dude You had full right to go nuts, but you kept your cool in the face of insults. Much respect to you. I love the way people go insane and demand instant solutions for a free software solution There ARE going to be problems people. The issues I had to deal with and resolve goes right back to when I upgraded my site to PS 1.2.5. It was frustrating but I stuck it through with loads of awesome support and help. Yes, 1.6 has hassles. But no one is putting a gun to your head and forcing you to upgrade. It takes less than a day, to copy your live site to a secure and non-live enviroment. That store you then upgrade and play with and fault find. Keep going till it's stable for you. Then you copy that now upgraded and working site, back to your live location. All the while your money-earning-live-site, is untouched. Personally however, and with respect to the Prestashop team and support devs, but I would rather wait a good few months before upgrading to the latest version. There are ALWAYS bugs and the best way to find them is to release the package into the wild and play with it. I am running an awesome theme on PS 1.5.6 and it has a lot of similarity and functionality with PS 1.6. My shop is perfectly stable with zero issues. I will make a copy in say 6 months time and then upgrade that copy to 1.6.x. If it is stable and is worth going live because of new modules/functionality then I can safely and happily do so. Just take a breath , say Goosefrabah, and breath out for the count of 10. Go for a walk, wash your face or have a sleep. Anything, but just chill dudes
  6. Hi there, I would like to receive an email notification when a client has made a review/posted a comment for a particular product. I know that the module I need to edit is the built in module: Product Comments. I know that the location of the modue is: yoursite/modules/productcomments And I know I need to add a mail call function to one of the files there. I have seen people say that the "productcomments.php" files needs to be edited. This is where I get stuck... Could someone please clearly define the mail call function and please exactly show where it must be put, in the relevant file.
  7. Hi there, Could you please list the files that need to be edited, which files they are and the mail call code that needs to be put in? Regards,
  8. If you are willing to pay a nominal fee, I highly recomend Cart2Cart http://www.shopping-cart-migration.com/supported-carts/147-prestashop I was tearing my hair out trying to copy my data to a fresh install, until I found these guys. It works like a dream and they also offer incredible support. I know it sounds like I work for them But when I was ready to give up and copy product by product, I found them and perfectly copied data from 1.2.5 to 1.5.6 effortlessly. They also have a free demo, so you can make 100% it works before you spend a cent.
  9. Thanks but I found it... mysite/modules/slidecaptcha/jquery/QapTcha.jquery.css I just made the changes I needed there. This is a great captcha! I just would love it to be responsive, because that's why I aligned it left. This slider captcha even works well on my crappy smart phone! Very nice indeed! Great work Shacker, thanks!
  10. Hey Shacker, What do I edit to make this align left? Regards,
  11. Yup worked for me. Great fix thanks. Edited storeroot/classes/search.php Running PS 1.2.5
  12. Ok, now the e-mails. If you un-checked things like "discounts" and "gift wrapping" in the back-end, they won't show in the checkout process or the guest tracking screens. What also won't show are the weights and shipping lines you edited. However, the e-mails your clients receive when they placed an order still show everything you un-checked and/or edited out as above So you need to go to: mails/en and edit the following 2 files: In "order-conf.txt" I removed the following lines: Products: {total_products} Discounts: {total_discounts} Shipping: {total_shipping} Gift-wrapping: {total_wrapping} So I ended up with this: Hi {firstname} {lastname}, Thank you for your order on {shop_name}! Order: {order_name} placed on {date} Payment: {payment} Total paid: {total_paid} Carrier: {carrier} Delivery address: {delivery_block_txt} Billing address: {invoice_block_txt} You can review your order and download your invoice from the "Order history" section of your customer account by clicking "My account" on our shop. If you have guest account, you can follow your order using this link: {guest_tracking_url} {shop_url} powered by PrestaShopâ„¢ And in "order-conf.html" I removed the following lines: <tr style="text-align: right;"> <td> </td> <td style="background-color: #b9babe; padding: 0.6em 0.4em;" colspan="3">Products</td> <td style="background-color: #b9babe; padding: 0.6em 0.4em;">{total_products}</td> </tr> <tr style="text-align: right;"> <td> </td> <td style="background-color: #ebecee; padding: 0.6em 0.4em;" colspan="3">Discounts</td> <td style="background-color: #ebecee; padding: 0.6em 0.4em;">{total_discounts}</td> </tr> <tr style="text-align: right;"> <td> </td> <td style="background-color: #ebecee; padding: 0.6em 0.4em;" colspan="3">Gift-wrapping</td> <td style="background-color: #ebecee; padding: 0.6em 0.4em;">{total_wrapping}</td> </tr> <tr style="text-align: right;"> <td> </td> <td style="background-color: #dde2e6; padding: 0.6em 0.4em;" colspan="3">Shipping</td> <td style="background-color: #dde2e6; padding: 0.6em 0.4em;">{total_shipping}</td> </tr> And ended up with this: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Message from {shop_name}</title> </head> <body> <table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;"> <tbody> <tr> <td align="left"><a title="{shop_name}" href="{shop_url}"><img style="border: none;" src="{shop_logo}" alt="{shop_name}" /></a></td> </tr> <tr> <td> </td> </tr> <tr> <td align="left">Hi <strong style="color: {color};">{firstname} {lastname}</strong>,<br /><br />Thank you for shopping with <strong>{shop_name}</strong>!</td> </tr> <tr> <td> </td> </tr> <tr> <td style="background-color: {color}; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Order details</td> </tr> <tr> <td> </td> </tr> <tr> <td align="left">Order: <strong><span style="color: {color};">{order_name}</span> placed on {date}</strong> <br />Payment: <strong>{payment}</strong></td> </tr> <tr> <td> </td> </tr> <tr> <td align="left"> <table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;"><!-- Title --> <tbody> <tr style="background-color: #b9babe; text-align: center;"> <th style="width: 15%; padding: 0.6em 0;">Reference</th> <th style="width: 30%; padding: 0.6em 0;">Product</th> <th style="width: 20%; padding: 0.6em 0;">Unit price</th> <th style="width: 15%; padding: 0.6em 0;">Quantity</th> <th style="width: 20%; padding: 0.6em 0;">Total price</th> </tr> <tr> <td colspan="5"> {products} </td> </tr> <tr> <td colspan="5">{discounts}</td> </tr> <tr style="text-align: right; font-weight: bold;"> <td> </td> <td style="background-color: #f1aecf; padding: 0.6em 0.4em;" colspan="3">Total</td> <td style="background-color: #f1aecf; padding: 0.6em 0.4em;">{total_paid}</td> </tr> </tbody> </table> </td> </tr> <tr> <td> </td> </tr> <tr> <td style="background-color: {color}; color: #fff; font-size: 12px; font-weight: bold; padding: 0.5em 1em;" align="left">Shipping</td> </tr> <tr> <td> </td> </tr> <tr> <td align="left">Carrier: <strong>{carrier}</strong></td> </tr> <tr> <td> </td> </tr> <tr> <td> <table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #374953;"> <tbody> <tr style="background-color: #b9babe; text-transform: uppercase;"><th style="text-align: left; padding: 0.3em 1em;">Delivery address</th><th style="text-align: left; padding: 0.3em 1em;">Billing address</th></tr> <tr> <td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{delivery_block_html}</td> <td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{invoice_block_html}</td> </tr> </tbody> </table> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="left">You can review your order and download your invoice from the <a style="color: {color}; font-weight: bold; text-decoration: none;" href="{history_url}">"Order history"</a> section of your customer account by clicking <a style="color: {color}; font-weight: bold; text-decoration: none;" href="{my_account_url}">"My account"</a> on our shop.<br /><br /></td> </tr> <tr> <td align="left">If you have a guest account, you can follow your order via the <a style="color: {color}; font-weight: bold; text-decoration: none;" href="{guest_tracking_url}">"Guest Tracking"</a> section on our shop.</td> </tr> <tr> <td> </td> </tr> <tr> <td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: {color}; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td> </tr> </tbody> </table> </body> </html> I also don't like "Total Paid" so I changed that to just say "Total" : <td style="background-color: #f1aecf; padding: 0.6em 0.4em;" colspan="3">Total</td>
×
×
  • Create New...