Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

datakick

[Free Module]Revws - Product Reviews

Recommended Posts

@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

@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

@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 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

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

@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

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. 0_1518892494362_Capture.PNG

I didn't see any js errors...

Share this post


Link to post
Share on other sites

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

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

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. 0_1518893819160_Capture.PNG

0_1518894141124_Capture.PNG

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 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

@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

@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

@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.

0_1519045321419_ed2a952f-7bb6-40cb-9e70-c2be468052f1-image.png

Share this post


Link to post
Share on other sites

@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 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now