Post by antmagn » Fri Mar 28, 2025 2:36 am

Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side. I have also added captcha which works fine, but still I get the same result, no response from customer side. As a result I got multiple reviews from the same customer because he things the review has not been submitted, is there a bug?
3.0.3.8 default theme
PHP: 7.3.13
Last edited by antmagn on Sat Mar 29, 2025 2:09 pm, edited 1 time in total.

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by grgr » Fri Mar 28, 2025 7:02 am

I don't believe there are any bugs. Sounds more like a JS error, potentially an error in your theme files. Hard to say without being able to see it.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member
Online

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by OSWorX » Fri Mar 28, 2025 3:19 pm

antmagn wrote:
Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side.
Question: what should the customer get back?
What do you mean with:
nothing is happening from his side

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by antmagn » Fri Mar 28, 2025 4:31 pm

OSWorX wrote:
Fri Mar 28, 2025 3:19 pm
antmagn wrote:
Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening from his side, although I do get notification and pending approval on admin side.

Question: what should the customer get back?
What do you mean with:
nothing is happening from his side
nothing , it's like a dead button but the review gets submitted in admin panel
Can you tell me what file should I check? Thank you

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by antmagn » Fri Mar 28, 2025 4:53 pm

I found that at my product.twig file the javascript code for review button is in comment section...should I uncheck that?

Code: Select all

<script type="text/javascript"><!--
$('#review').delegate('.pagination a', 'click', function(e) {
    e.preventDefault();

    $('#review').fadeOut('slow');

    $('#review').load(this.href);

    $('#review').fadeIn('slow');
});

$('#review').load('index.php?route=product/product/review&product_id={{ product_id }}');

$('#button-review').on('click', function() {
	$.ajax({
		url: 'index.php?route=product/product/write&product_id={{ product_id }}',
		type: 'post',
		dataType: 'json',
		data: $("#form-review").serialize(),
		beforeSend: function() {
			$('#button-review').button('loading');
		},
		complete: function() {
			$('#button-review').button('reset');
		},
		success: function(json) {
			$('.alert-dismissible').remove();

			if (json['error']) {
				$('#review').after('<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');
			}

			if (json['success']) {
				$('#review').after('<div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');

				$('input[name=\'name\']').val('');
				$('textarea[name=\'text\']').val('');
				$('input[name=\'rating\']:checked').prop('checked', false);
			}
		}
	});
});

$(document).ready(function() {
	$('.thumbnails').magnificPopup({
		type:'image',
		delegate: 'a',
		gallery: {
			enabled: true
		}
	});
});
//--></script>

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by JNeuhoff » Fri Mar 28, 2025 5:24 pm

It would really be helpful if you could provide the website URL, because nobody else is able to reproduce this issue. There should be a json['success'] response, with a success message being displayed on the product page.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by antmagn » Fri Mar 28, 2025 5:51 pm

JNeuhoff wrote:
Fri Mar 28, 2025 5:24 pm
It would really be helpful if you could provide the website URL, because nobody else is able to reproduce this issue. There should be a json['success'] response, with a success message being displayed on the product page.
example
https://tonias-handmade.com/Snail-Serum

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by paulfeakins » Fri Mar 28, 2025 7:31 pm

antmagn wrote:
Fri Mar 28, 2025 2:36 am
Hello everyone, I have a problem with reviews, when a customer enters a review, nothing is happening
Why not post a link to your site so we can try it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by antmagn » Fri Mar 28, 2025 7:45 pm

I did in the last post, I'm sorry if it was not clear, it's www.tonias-handmade.com

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by nonnedelectari » Fri Mar 28, 2025 10:26 pm

Code: Select all

Fatal error: Uncaught Error: Call to undefined method ControllerExtensionModuleApimodule::getApiAccessKey() in /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php:3786 Stack trace: #0 /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php(3607): ControllerExtensionModuleApimodule->getPushLimit(1302) #1 /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php(93): ControllerExtensionModuleApimodule->sendNotifications(Array) #2 /home/toniasha/domains/tonias-handmade.com/storage/modification/system/engine/action.php(79): ControllerExtensionModuleApimodule->afterAddReview('catalog/review/...', Array, NULL) #3 /home/toniasha/domains/tonias-handmade.com/public_html/system/engine/event.php(62): Action->execute(Object(Registry), Array) #4 /home/toniasha/domains/tonias-handmade.com/storage/modification/system/engine/loader.php(255): Event->trigger('model/catalog/r...', Array) #5 /ho in /home/toniasha/domains/tonias-handmade.com/public_html/catalog/controller/extension/module/apimodule.php on line 3786
is returned by ajax post call to https://tonias-handmade.com/index.php?r ... duct_id=66
So an extension is causing this.

use your web developer tools.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by antmagn » Fri Mar 28, 2025 10:55 pm

Thank you, I got your review, I receive message, I will try to check the extension, I do not have a huge knowledge though...how did you retrieve this error? With inspect tool?

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by nonnedelectari » Fri Mar 28, 2025 11:23 pm

antmagn wrote:
Fri Mar 28, 2025 10:55 pm
Thank you, I got your review, I receive message, I will try to check the extension, I do not have a huge knowledge though...how did you retrieve this error? With inspect tool?
web developer tools -> network tab -> submit a review -> locate the ajax call -> select it and on the right select preview or response.
Basically a response which the ajax call is not expecting, hence nothing on the client side is executed after the call comes back.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by antmagn » Fri Mar 28, 2025 11:31 pm

I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn :'(

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by nonnedelectari » Sat Mar 29, 2025 12:03 am

antmagn wrote:
Fri Mar 28, 2025 11:31 pm
I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn :'(
Why be sorry? Learning is good.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by JNeuhoff » Sat Mar 29, 2025 12:45 am

antmagn wrote:
Fri Mar 28, 2025 11:31 pm
I went to extensions->events and disable "apimodule_after_addReview" and now I do get a message response...I have lots of "apimodule" events which I do not know if they added by an extension or not...I'm sorry I still learn :'(
The apimodule is likely from a 3rd party extension, probably for a REST API.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by OSWorX » Sat Mar 29, 2025 1:51 am

This topic is a good sample, why this here is so important to read BEFORE posting here: Forum Rules
If followed the guidelines, both "parties" will come to a very quick end without wasting time ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by antmagn » Sat Mar 29, 2025 2:07 am

So I will mark this post as solved...

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm

Post by grgr » Sat Mar 29, 2025 7:19 am

Yes, the API module will most likely have added those events.

So yes, you can mark as solved. You will need to ask the extension developer to fix the extension, nothing any one here can help with.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member
Online

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by antmagn » Sat Mar 29, 2025 10:38 pm

It's the extension from the Pinta mobile app module, I've uninstalled it and the events are gone... I will inform the developer , I did see this complaint from others in comments section of the module...

New member

Posts

Joined
Fri Jul 23, 2021 8:38 pm
Who is online

Users browsing this forum: No registered users and 37 guests