Troy.Roberts Posted February 16, 2018 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.
Troy.Roberts Posted February 16, 2018 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?
wakabayashi Posted February 16, 2018 Posted February 16, 2018 Here is a new thread for my planned module: https://forum.thirtybees.com/topic/1505/planned-free-module-loyalty-points
SLiCK_303 Posted February 17, 2018 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.
datakick Posted February 17, 2018 Author 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 }) } })
SLiCK_303 Posted February 17, 2018 Posted February 17, 2018 So change the product url to have '#post_review' after it as well, instead of just '#'?
datakick Posted February 17, 2018 Author 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.
SLiCK_303 Posted February 17, 2018 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; } } ```
datakick Posted February 17, 2018 Author 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?
SLiCK_303 Posted February 17, 2018 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...
SLiCK_303 Posted February 17, 2018 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....
datakick Posted February 17, 2018 Author 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 ]; }
SLiCK_303 Posted February 17, 2018 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.....
datakick Posted February 19, 2018 Author Posted February 19, 2018 new version 1.0.4 has been released that fixes this z-index bug
wakabayashi Posted February 19, 2018 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...
datakick Posted February 19, 2018 Author 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.
wakabayashi Posted February 19, 2018 Posted February 19, 2018 @datakick dont worry, I understand of course. Thats great news! :)
Troy.Roberts Posted February 19, 2018 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?
datakick Posted February 19, 2018 Author 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.
Troy.Roberts Posted February 19, 2018 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.
datakick Posted February 19, 2018 Author Posted February 19, 2018 @Troy-Roberts sure, should be easy enough
Chandra Posted February 20, 2018 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
datakick Posted March 13, 2018 Author 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now