Troy.Roberts 15 Posted February 16, 2018 @wakabayashi Are you taking any cues from the All in One Rewards module? It's currently the most popular rewards module for prestashop. Share this post Link to post Share on other sites
Troy.Roberts 15 Posted February 16, 2018 @datakick I use Warehouse (the shammmeeeee lol) and i would prefer to hook the module to hook it to displayProductButtons instead of displayRightColumnProduct. What's the best way to do that? Share this post Link to post Share on other sites
wakabayashi 502 Posted February 16, 2018 Here is a new thread for my planned module: https://forum.thirtybees.com/topic/1505/planned-free-module-loyalty-points Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 @datakick I am trying to modify the module sendreviewrequest to work with your module here, however my listen isnt working, I was hoping you could help. This is what I'm using now, that worked for the productcomments module, but it's not working for yours.. ``` public function hookHeader() { if(Tools::getValue('idproduct')) { if (Module::isEnabled('productcomments')) { $html = ' '; } elseif (Module::isEnabled('revws')) { $html = ' '; } return $html; } } ``` Is there a small piece of js I can use to replace the above part? As you can see, right now, I'm passing the url to the product with a '#' at the end. Share this post Link to post Share on other sites
datakick 1,273 Posted February 17, 2018 @SLiCK_303 you can try this javascript snippet: $(document).ready(function() { if (window.location.hash.indexOf('post_review') > -1) { window.revws({ type: 'TRIGGER_CREATE_REVIEW', productId: id_product }) } }) Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 So change the product url to have '#post_review' after it as well, instead of just '#'? Share this post Link to post Share on other sites
datakick 1,273 Posted February 17, 2018 @slick_303 yes. Alternatively, you can direct user to this url https://www.domain.com/en/module/revws/MyReviews?review-product=<productId> Review dialog will be opened automatically, and you don't need to make any changes to hookHeader at all. Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 The javascript snippet didn't seem to do it for me, any other suggestions? It looks like this now... ``` public function hookHeader() { if(Tools::getValue('idproduct')) { if (Module::isEnabled('productcomments')) { $html = ' '; } elseif (Module::isEnabled('revws')) { $html = ' '; } return $html; } } ``` Share this post Link to post Share on other sites
datakick 1,273 Posted February 17, 2018 @SLiCK_303 any js error in console? Also, have you tried the other approach, to direct your visitor to the My Reviews page? Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 I dont want to direct them to the My Reviews page. The email I have sent out has a link to each product, which I then send them to the products page, with a '#post_review' after the url. Then I want my script snippet to take them directly to the post review popup. I didn't see any js errors... Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 If you have no further js suggestion, I may just take all the pics and links out of the email I send ( :cry: ) and send them to the My Reviews page. I'd rather not do it that way though.... Share this post Link to post Share on other sites
datakick 1,273 Posted February 17, 2018 On product page review js is loaded asynchronously, and that might be the reason why it does not fire. Try this one, that should work if (window.location.hash.indexOf('post_review') > -1) { var action = { type: 'TRIGGER_CREATE_REVIEW', productId: id_product }; window.revws ? window.revws(action) : window.revwsData.initActions = [ action ]; } Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 that worked, thanks! Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 17, 2018 Now my only issue with this module is this. When you goto My Reviews, or even look at a product, and you're allll the way to the top of the page, the websites header cuts off the review popup. I dont know if thats a theme issue, or a problem with the module..... Share this post Link to post Share on other sites
datakick 1,273 Posted February 19, 2018 new version 1.0.4 has been released that fixes this z-index bug Share this post Link to post Share on other sites
SLiCK_303 247 Posted February 19, 2018 Thanks for the new version! Share this post Link to post Share on other sites
wakabayashi 502 Posted February 19, 2018 @datakick thx a lot. Just one short question about your mailstream module. Do you have any idea, when it will be published? I don't wanna make pressure... I just wanna plan, when we go live with your review module. I would like to combine it with the mailstream module... Share this post Link to post Share on other sites
datakick 1,273 Posted February 19, 2018 @wakabayashi it's still under development. Unfortunately I haven't had much time to work on this lately as I'm very busy with freelance project right now. As I can't devote as much time as I would like, the progress is very slowly. The first version could be released in (maybe) 1 week. But no promises. Share this post Link to post Share on other sites
wakabayashi 502 Posted February 19, 2018 @datakick dont worry, I understand of course. Thats great news! :) Share this post Link to post Share on other sites
Troy.Roberts 15 Posted February 19, 2018 @datakick What mechanism does the module use to send e-mails? Mine doesn't seem to be sending e-mails, i currently use smtp for mailalerts And any way to hook it below the add to cart button? Share this post Link to post Share on other sites
datakick 1,273 Posted February 19, 2018 @troy-roberts it uses standard prestashop Mail::Send(...), so it will use whatever transport you have set up. In case it fails to send email there should be an entry in log with some informations, look into Advanced Parameters > Logs. It's usually due to missing email translation. Share this post Link to post Share on other sites
Troy.Roberts 15 Posted February 19, 2018 @datakick Oke doke, will look into it. Any chance for some other hooks to be implemented. I use warehouse and the right column hook isn't the best look for the reviews. Share this post Link to post Share on other sites
datakick 1,273 Posted February 19, 2018 @Troy-Roberts sure, should be easy enough Share this post Link to post Share on other sites
Chandra 44 Posted February 20, 2018 @datakick said in [Free Module]Revws - Product Reviews: new version 1.0.4 has been released that fixes this z-index bug Updated to this version and clicking review link on product page or reviews page does nothing now. Backoffice configuration works. Is updating merely unzipping and replacing with the new module folder, the old version folder? Thanks. Edit: reverted to the earlier version and it works correctly. Edit2: thanks @datakick for assisting on this, apparently I was using the source from github and not the module fro the store itself Share this post Link to post Share on other sites
datakick 1,273 Posted March 13, 2018 I've released version 1.0.5 added support for krona module ability to choose where you want to render review average (product extra / product buttons / nowhere) render review placeholder in product block if no review exits - you can use this to align block height for product with and without reviews some refactoring to make module migration easier Share this post Link to post Share on other sites