Jump to content

mandrin

Members
  • Posts

    138
  • Joined

  • Last visited

Everything posted by mandrin

  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>
  13. Sorry about that I will post that in a bit, but I forgot something else. If your client chooses guest checkout, and then checks "guest-tracking" , then the screen that is presented will also show order details with 2 items we don't want. Namely "Weight" and "Shipping Cost". You need to edit the following file: /themes/yourtheme/order-detail.tpl The latest versions of Prestahop uses Smarty, so you can easily comment out lines by using " {* " (Curly Bracket Star) at the start of the line/lines, and " *} " (Star Curly Bracket) at the end of the line/lines. Thus if you want to comment out: " I like Prestashop " , it would then look like this: " {*I like Prestashop*} And if you want to comment out multiple lines: " I like Prestashop It is a great shopping cart It is very popular" It would then look like this: {*I like Prestashop It is a great shopping cart It is very popular*} So then, I commented out lines: 383 and 384 Like so: <th class="first_item">{l s='Date'}</th> <th class="item">{l s='Carrier'}</th> {*<th class="item">{l s='Weight'}</th>*} {*<th class="item">{l s='Shipping cost'}</th>*} <th class="last_item">{l s='Tracking number'}</th> And commented out this whole section from lines 399 to 410 Like so: {*<td> <div class="mobile_table_title visible-phone">{l s='Weight'}</div> <div class="mobile_table_content"> {if $line.weight > 0}{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}{else}-{/if} </div> </td> <td> <div class="mobile_table_title visible-phone">{l s='Shipping cost'}</div> <div class="mobile_table_content"> {if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}{else}{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}{/if} </div> </td>*} As always, backup the files for which you are going to be changing the code. I just rename the original file and put "original" at the end. "order-detail.tpl" becomes "order-detailoriginal.tpl" and then I upload the edited file.
  14. The simplest is to go to: /themes/yourtheme/shopping-cart.tpl Depending on your theme, about line 252 Find: <td class="price" id="total_shipping">{l s='Free Shipping!'}</td> and change to: <td class="price" id="total_shipping">{l s='N/A'}</td>
  15. Used a service called Cart2Cart and moved all products and related product info such as images and attributes, perfectly. Also moved other important data. This service worked flawlessly and helped me move almost 500 products from PS 1.2.5 to PS 1.5.6.
  16. Yes. I used a service called Cart2Cart. It's really amazing and transferred all my froducts, images, combinations, attributes, manufacturers and various other backend stuff, PERFECTLY. This has saved me SO much time.
  17. Just go to Admin Back Office / Shipping / Carriers And look down the column called "ID" and you will see the ID number before the carriers name This is the ID number you put in "id==" in the above solution.
  18. Figured out the solution to this. The carrier ID syntax has obviously changed since 1.2.5 I am running PS 1.5.6 I edited: /theme/order-carrier.tpl Lline: 182 Like so: <div class="delivery_option_price"> {if $option.total_price_with_tax && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))} {if $use_taxes == 1} {if $priceDisplay == 1} {convertPrice price=$option.total_price_without_tax} {l s='(tax excl.)'} {else} {convertPrice price=$option.total_price_with_tax} {l s='(tax incl.)'} {/if} {/if} {else} {if $carrier.instance->id == 14 OR $carrier.instance->id == 15}{l s='Shipping costs to be confirmed.'}{else}{l s='Free!'}{/if} {/if} </div>
  19. I don't know if this will help you, but I am posting my solution everywhere on these forums where I see people pulling their hair out for such a simple solution to a massive problem... I MUST have my customers choosing product attributes before they click the "ADD TO CART" button. Yes I know you can set in admin to hide the "ADD TO CART" button if there are product attributes, but when viewing product lists, non-attributed products will have an "ADD TO CART" button and attributed products will have nothing at all. This is confusing as hell to clients and looks horribly messy. They will not know to click the product image to take them to the product screen, and will leave the store. So what I did was - when viewing product lists, I swopped the "ADD TO CART" button for the "VIEW" button. The text and functionality work. Running PS 1.5.6 I edited "product-list.tpl" on lines 49-52 Like so: <a class="button exclusive view_button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}"><i class="icon-eye-2 icon-1x icon-mar-lr2"></i><span>{l s='View'}</span></a> {*<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*} {else} {*//<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*}
  20. I don't know if this will help you, but I am posting my solution everywhere on these forums where I see people pulling their hair out for such a simple solution to a massive problem... I MUST have my customers choosing product attributes before they click the "ADD TO CART" button. Yes I know you can set in admin to hide the "ADD TO CART" button if there are product attributes, but when viewing product lists, non-attributed products will have an "ADD TO CART" button and attributed products will have nothing at all. This is confusing as hell to clients and looks horribly messy. They will not know to click the product image to take them to the product screen, and will leave the store. So what I did was - when viewing product lists, I swopped the "ADD TO CART" button for the "VIEW" button. The text and functionality work. Running PS 1.5.6 I edited "product-list.tpl" on lines 49-52 Like so: <a class="button exclusive view_button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}"><i class="icon-eye-2 icon-1x icon-mar-lr2"></i><span>{l s='View'}</span></a> {*<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*} {else} {*//<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*}
  21. Yay, fixed it. All I had to do was - in the themes product-list.tpl file - was comment out the two "ADD TO CART" lines and copy and past the "VIEW" line on top of them. Like so: {capture name="pro_a_cart"} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button exclusive view_button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}"><i class="icon-eye-2 icon-1x icon-mar-lr2"></i><span>{l s='View'}</span></a> {*<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*} {else} {*//<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a>*} {/if} {else} <a class="button exclusive view_button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}"><i class="icon-eye-2 icon-1x icon-mar-lr2"></i><span>{l s='View'}</span></a> {/if} {/if} {/capture}
  22. It's definitely something in the product-list.tpl that I need to change: {capture name="pro_a_cart"} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a> {else} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to Cart'}"><i class="icon-basket icon-1x icon-mar-lr2"></i><span>{l s='Add to Cart'}</span></a> {/if} {else} <a class="button exclusive view_button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}"><i class="icon-eye-2 icon-1x icon-mar-lr2"></i><span>{l s='View'}</span></a> {/if} {/if} {/capture}
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More