reviewscouk / magento2-reviews Goto Github PK
View Code? Open in Web Editor NEWReviews.co.uk Magento 2 Integration
Reviews.co.uk Magento 2 Integration
Magento supports an async API for sending messages to external services (like reviews.io).
Otherwise, business users (and other external processes that create shipments) currently have to wait to save shipments in order to send orders to reviews.io.
When using Magento Open Source v2.4.4-p2 we are getting the following error messages on product pages;
Exception #0 (Exception): Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/vendor/reviewscouk/reviews/Block/Product/Reviewwidget.php on line 112
reviewscouk/reviews/Block/Product/Reviewwidget.php line 112 if colour is NULL in the admin this line fails. replacing the line with sorts this.
if (strpos($colour ?? '', '#') === false) {
Sometimes customers that return an item will still receive an email notification for a review. I'm wondering if we can hook into the credit memo/refund event in Magento and cancel the scheduled email in those situations.
a) is this on the roadmap, and if not
b) would you accept a pull request that adds this functionality (behind a toggle flag in admin store config)?
I am not using composer to add extensions - do you have the full files I can download so I can upload to my site via FTP and run magento upgrade?
Or point me to the right directopn please
Thanks
Hey,
Widgets, which include HTML, are being escaped and thus don't work.
Thanks,
Warren
Hello,
I have this error when accessing the checkout - Exception #0 (Exception): Notice: Trying to access array offset on value of type null in /Users/steven/Sites/suregreen/vendor/reviewscouk/reviews/Block/Richsnippet.php on line 51
The line in question is below:
'availability' => $this->availability($current_product->getData('quantity_and_stock_status')['is_in_stock']),
We are using a onestepcheckout from Mageplaza - mageplaza/magento-2-one-step-checkout-extension
The version of the extension is "0.0.40".
Is this a conflict between your extension and the mageplaza one?
I have come across this issue when upgrading to magento 2.4.3.
Thank you for your help.
Hi there.
I need to change rich snippet info for Author. I mean the google Rich results test shows that Author's type is not mentioned. Could You please say how to modify it?
In Reviews.io the ability exists to add product feeds. Product GTINs are necessary to connect with services, but the Magento module does not allow GTIN to be outputted in the feed.
Suggestion: in https://github.com/Reviewscouk/magento2-reviews/blob/master/Controller/Index/Feed.php add a GTIN property.
Hi,
I've had this issue a couple of years and never got around to looking into it.
Scenario;
The issue I noticed;
Cause;
When the module sends the data for review it sends the long SKU which is generated from the options selected which is stored in the sales_order_items table.
Solution;
File vendor/reviewscouk/reviews/Observer/SendOrderDetails.php needs a rewrite so that a lookup is done from the product_id to retrieve the original SKU for the simple product so that the review invitation data which match/link to data in the feed.
Your module does not include the ACL configuration so it's not possible to grant access to any users who do not have full administration rights.
Some helpful resources:
https://magento2tutorial.magestore.com/how-to-declare-acl-for-the-configuration-page-of-custom-module-in-magento-2/
https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/create-access-control-list-rule.html
When configurable product SKUs have double-quotes in them (although I realize double-quotes in SKUs are not ideal, that is what exists), then the richSnippet JS breaks. See screenshot below.
I think the most ideal solution would be to replace the double-quotes in the SKU data attribute in \Reviewscouk\Reviews\Block\Richsnippet::getRichSnippet
with "template literals" (backticks). This is already done with the description.
If this is an acceptable solution, I can create a PR. Thanks.
Uncaught SyntaxError: Unexpected token ';' (at sample-url:2347:323)
Since Magento 2.4.7, the Magento_Csp
module is active by default and this way, we're facing the following issue on all pages:
Refused to frame 'https://widget.reviews.io/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors ....
I tried to add the following to a custom csp_whitelist.xml
, but that did not help:
<policy id="frame-ancestor">
<values>
<value id="reviewsio" type="host">https://widget.reviews.io</value>
</values>
</policy>
Any other ideas how this could be fixed?
Hello,
This isn't an issue - more a feature request. Is it possible to pull through the products average review summary (similar to Magento's default reviews) under the product title on the product page (& on the category page ideally) using your module? Currently we're using the reviews.co.uk api to get this information, but having issues with configurable products, so if it was included in your module that would be great!
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.