Page 1 of 1

[SOLVED] Submitting review

Posted: Fri May 09, 2025 1:43 pm
by antmagn
Hello,
I've seen similar old posts asking for this solution but I found only for old oc versions. I want to send an email to a customer who had already receive an item to leave a review on the product page, and want to send a direct link that will take him/her to the product review submission form.... for example "https://tonias-handmade.com/Perfumes/Ba ... ume#review" or "#addreview" something like that...is this possible?
Thank you in advance

Version 3.0.3.8
default theme
PHP: 7.3.13

Re: Sumbmiting review

Posted: Fri May 09, 2025 1:54 pm
by by mona
Have you checked the marketplace? I believe there are many available.
Try searching using google for example (not recommended just as an example) https://www.opencart.com/index.php?rout ... n_id=27045

Re: Sumbmiting review

Posted: Fri May 09, 2025 2:07 pm
by antmagn
by mona wrote:
Fri May 09, 2025 1:54 pm
Have you checked the marketplace? I believe there are many available.
Try searching using google for example (not recommended just as an example) https://www.opencart.com/index.php?rout ... n_id=27045
Thank you Mona, I do not want the procedure, I just want to direct the customer to the review page tab of the specific product if possible.

Re: Sumbmiting review

Posted: Fri May 09, 2025 6:18 pm
by paulfeakins
antmagn wrote:
Fri May 09, 2025 2:07 pm
Thank you Mona, I do not want the procedure, I just want to direct the customer to the review page tab of the specific product if possible.
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

Re: Sumbmiting review

Posted: Fri May 09, 2025 7:46 pm
by antmagn
Well I found it, kind off, If anyone is interested, I pasted this script (with the help of developer mode and Gemini ;D )

Code: Select all

<script defer>
document.addEventListener('DOMContentLoaded', function() {
  if (window.location.hash === '#tab-review') {
    // Find the corresponding tab link and simulate a click to ensure
    // the tab is visually active and its content area is shown.
    const reviewsNavLink = document.querySelector('a[href="#tab-review"][data-toggle="tab"]');
    if (reviewsNavLink) {
      reviewsNavLink.dispatchEvent(new MouseEvent('click', {
        bubbles: true,
        cancelable: true,
        view: window
      }));
    }
  }
});
</script>
.... at product.twig and you now can refer to review tab page by adding #tab-review at the end of the link.

Re: Sumbmiting review

Posted: Fri May 09, 2025 8:21 pm
by Cue4cheap
antmagn wrote:
Fri May 09, 2025 7:46 pm
Well I found it, kind off, If anyone is interested, I pasted this script (with the help of developer mode and Gemini ;D )
The part I see with this is you might get tired of the need to craft each email to each customer but if this works for you that is great.

Mike

Re: Sumbmiting review

Posted: Fri May 09, 2025 10:36 pm
by by mona
antmagn wrote:
Fri May 09, 2025 7:46 pm
with the help of developer mode and Gemini ;D
The human beings who write the code are the people that helped you, all Gemini did was "steal" it and package it as their own - they do not deserve the credit.

Nevertheless, glad you found a solution.
Please mark the topic to include [SOLVED] in the title.

Re: Sumbmiting review

Posted: Sat May 10, 2025 3:15 am
by antmagn
by mona wrote:
Fri May 09, 2025 10:36 pm
antmagn wrote:
Fri May 09, 2025 7:46 pm
with the help of developer mode and Gemini ;D
The human beings who write the code are the people that helped you, all Gemini did was "steal" it and package it as their own - they do not deserve the credit.

Nevertheless, glad you found a solution.
Please mark the topic to include [SOLVED] in the title.
You are absolutely right 👍

I will mark it as sold thank you.