If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / ZX Order Review [Support Thread]

ZX Order Review [Support Thread]

Started by balihr on 31 Mar 2021, 10:40 AM · Views: 5,655

Results 1 to 20 of 24
31 Mar 2021, 10:40 AM
#1
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

ZX Order Review [Support Thread]

Product reviews are incredibly important nowadays and people love reading reviews left by other users before they decide to purchase an item online. Sadly, Zen Cart's review system is quite bad and relies on customers' (extremely) good will to write a review - one needs to log in, find the product they purchased and then write a review which by default can't be shorter than 50 characters. If they purchased multiple products, they need to find each and every item they want to review and write that short novel. And no, the website will not request a review - the customer is expected to remember to do it on their own. As a result, almost nobody writes reviews...

This plugin tries to make things as simple as possible. First, you decide how many days need to pass after an order is placed, and you decide which order statuses qualify for the email to be sent (ie. Delivered) and let the plugin do it's magic. An automated task is set in cPanel (cron job) which runs every day and checks which orders qualify for the reminder. An email is then sent to the customer with a few words and a direct link to your site, specifically to a new page where they can rate and review all items in their order, all in one go, without the need to login.

Once the customer reviews what they want, admin receives a notification email (if enabled in admin) and is able to approve the review(s) just as usual.

The plugin also allows you to specify a list of products that will never be asked to review - just in case you have any such products.

Download: https://www.zen-cart.com/downloads.php?do=file&id=2307
or from my website.

My site - Pro ZC Help
My portfolio | My plugins

3 Apr 2021, 3:33 PM
#2
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

Where is the admin page that gives me the manual ability to choose who and when I email?

3 Apr 2021, 3:41 PM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

charmlt:

Where is the admin page that gives me the manual ability to choose who and when I email?

There isn't. The whole point of the module is to make it fully automated, so it doesn't have an admin page for you to hand-pick the recipients. If someone places an order and the order qualifies for a review (status and days), an email is sent asking for a review. That's it, end of story.

My site - Pro ZC Help
My portfolio | My plugins

4 Apr 2021, 7:36 PM
#4
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

This sounds great! I like the idea of a page with multiple items to review on it. I have a modified template and recently for some reason it no longer lets customers review as there must be something blocking it. I was wondering if there was a way with this module to manually access an url to view the layout for testing purposes? E.g from a test account to view how it looks. I tried accessing by putting 'order_review' at the end of website url but it navigates to website home page, so I guess it just works via cron and session id.

4 Apr 2021, 7:47 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

HeathenMagic:

This sounds great! I like the idea of a page with multiple items to review on it. I have a modified template and recently for some reason it no longer lets customers review as there must be something blocking it. I was wondering if there was a way with this module to manually access an url to view the layout for testing purposes? E.g from a test account to view how it looks. I tried accessing by putting 'order_review' at the end of website url but it navigates to website home page, so I guess it just works via cron and session id.

No, you can't access the order_review page directly. If you could, that would mean anyone could access it without authorization. The plugin generates a unique 32 character token which is basically a key to access that page. The token is generated at the time of placing the order and is stored in order_review database table. What you could do is place a test order, then use phpMyAdmin and go to order_review table and copy the token associated with your order ID, and then access the review page like YOU_DOMAIN/index.php?main_page=order_review&token=YOUR_TOKEN
Keep in mind that won't change the "notified" column so you'd still receive an automated email when/if your order qualifies, and of course, if you've configured your cron job.

My site - Pro ZC Help
My portfolio | My plugins

4 Apr 2021, 8:06 PM
#6
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

balihr:

No, you can't access the order_review page directly. If you could, that would mean anyone could access it without authorization. The plugin generates a unique 32 character token which is basically a key to access that page. The token is generated at the time of placing the order and is stored in order_review database table. What you could do is place a test order, then use phpMyAdmin and go to order_review table and copy the token associated with your order ID, and then access the review page like YOU_DOMAIN/index.php?main_page=order_review&token=YOUR_TOKEN
Keep in mind that won't change the "notified" column so you'd still receive an automated email when/if your order qualifies, and of course, if you've configured your cron job.

Thanks for your reply. Yes I thought perhaps it is that way, but appreciate the heads up regarding the token for test purposes. I might try that.

I am not sure if the present issue with my stock zencart review page may be the same with your module. I have some modules and CSS Loader you see. Apparently it has something to do with the following:-

"error: "Missing the ajax controller”" when pressing write_review_submit button.
But I can give your module a go and see how it goes, thanks again :-)

9 Jun 2021, 11:57 PM
#7
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

Hi Leonard,

Great plugin mate - love the way you think beyond the square!! So I can see that in defines the wording of the email can be customised which is great, I assume %s in the text inserts the shop name from configuration/MyStore - I also assume the email header image is the site logo image at includes/templates/my_template/images/logo ?

Doing this manually up till now meant putting a sold out item back into stock as zero qty to allow a review to be written (reviews cannot be written if item is out of stock - an issue when you have a lot of one off unique items) - in the case of this plugin if the item has subsequently become sold out can a review still be left?

cheers,
Mike

10 Jun 2021, 1:09 AM
#8
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

Hi Leonard, me again! - so pardon my ignorance but what does this setting in admin/configuration mean?
'Order Status - Comma-separated list of Order Status IDs required to send the reminder.' .... are these the payment processing, payment confirmation, shipping confirmation etc - is there a need to change setting from 3 to anything different?

cheers, Mike

10 Jun 2021, 4:34 AM
#9
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

shags38:

Hi Leonard,

Great plugin mate - love the way you think beyond the square!! So I can see that in defines the wording of the email can be customised which is great, I assume %s in the text inserts the shop name from configuration/MyStore - I also assume the email header image is the site logo image at includes/templates/my_template/images/logo ?
It's using the standard email template (just like the checkout email, welcome email etc) so you decide which logo is used. That's usually in includes/languages/english/email_extras.php (EMAIL_LOGO_FILENAME)

Doing this manually up till now meant putting a sold out item back into stock as zero qty to allow a review to be written (reviews cannot be written if item is out of stock - an issue when you have a lot of one off unique items) - in the case of this plugin if the item has subsequently become sold out can a review still be left?
This plugin doesn't care if an item is sold out or not - customer is still invited to review it and can leave a review. However, you'll need to make other changes to your site if you want to show reviews for disabled items. But, if I'm not mistaken, out of stock items will display reviews just fine, it's only disabled items that don't.

shags38:

Hi Leonard, me again! - so pardon my ignorance but what does this setting in admin/configuration mean?
'Order Status - Comma-separated list of Order Status IDs required to send the reminder.' .... are these the payment processing, payment confirmation, shipping confirmation etc - is there a need to change setting from 3 to anything different?
It's what you have under admin->Localization->Orders Status. It means you can define all the statuses that will qualify an order for a review. You don't want to ask for a product review if the customer still hasn't received it - you might end up with a rating of 1 and a comment like "still haven't received it, how can I review it". Now, the list is because you might have multiple statuses that would qualify, ie "Delivered", "Collected" and "Delivered by Courier" - different statuses that basically all mean the same thing.
So, to summarize - the review reminder email will not be sent until both conditions are met - days after order was placed AND order must have on of the statuses listed. Hope it makes sense. If not, just ask. :smile:

My site - Pro ZC Help
My portfolio | My plugins

10 Jun 2021, 1:27 PM
#10
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

Just cross-replying since this answer might make more sense in this thread...

shags38:

One quick question - if a customer purchased 5 or more products can they simply review 1 or 2 and it still work? - up until now I have been sending emails to customers with links to each of the products write-a-review page but make comment that the customer could do as few or as many as they felt like with no obligation to do all of them if they they didn't want to (the daunting task syndrome).

Yes, the customer receives an email with an invitation to review products they purchased - it's a link to a new page on your site where they will be able to see all products from that one order and they'll be able to review/rate all at once, or just the products they want to review. So, if a customer purchased 5 products, he/she can review one, two or all five, it's up to them. And the link stays valid for them to revisit later if they decide to review the rest afterwards.

My site - Pro ZC Help
My portfolio | My plugins

15 Sep 2023, 2:34 AM
#11
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

Newbie question here.

Is there a way to check on the emails being sent? like to eventually know if it is working.

15 Sep 2023, 4:15 AM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: ZX Order Review [Support Thread]

nicksab:

Newbie question here.

Is there a way to check on the emails being sent? like to eventually know if it is working.
Turn on email-archiving via*** Configuration :: Emails***. You'll need to use your webhost's phpMyAdmin to see if you don't have the Email Archive Manager plugin installed (although I'm not certain that the current version of that plugin is compatible with zc158+).

17 Sep 2023, 4:30 AM
#13
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

lat9:

Turn on email-archiving via*** Configuration :: Emails***. You'll need to use your webhost's phpMyAdmin to see if you don't have the Email Archive Manager plugin installed (although I'm not certain that the current version of that plugin is compatible with zc158+).

I am on 1.5.7d with Email Archive plugin and archiving is turned on. I can see the order confirmation, account....emails being sent but I don t see the emails requesting product reviews.

Maybe i did something wrong in the installation and/or cron job since there is no reviews email being sent

so what i should have asked is:

How can I checked and/or tested that is working?

17 Sep 2023, 7:51 AM
#14
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

Did the cron job run AFTER you enabled the Email Archive Manager?
Are you sure you have orders that meet the requirements at the time when the cron job is executed? In admin->Configuration->ZX Order Review, you have to have the plugin enabled, Wait Period set and Order Status set. So, let's say your Wait Period is 5 days, and your Order Status is 3 (Delivered). Do you have orders placed more than 5 days ago that are currently in "Delivered" status?
Also, keep in mind if you have A LOT of old orders in the same status, it might be a good idea to create a new order status (ie. Delivered-) and then manually update all orders older than a month to the new status so you don't get thousands of qualifying orders because your orders go all the way back to 2015...

Once the above is confirmed and out of the way, you can run the cron job manually. Simply enter the URL in your address bar (yourdomain.com/order_review_XXXXXXXX.php) and run it. You'll get a blank page because there's no output, but check the Email Archive Manager to see if any emails were sent, and also check your logs directory to see if there were any errors.

My site - Pro ZC Help
My portfolio | My plugins

18 Sep 2023, 1:07 AM
#15
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

balihr:

Did the cron job run AFTER you enabled the Email Archive Manager?
Are you sure you have orders that meet the requirements at the time when the cron job is executed? In admin->Configuration->ZX Order Review, you have to have the plugin enabled, Wait Period set and Order Status set. So, let's say your Wait Period is 5 days, and your Order Status is 3 (Delivered). Do you have orders placed more than 5 days ago that are currently in "Delivered" status?
Also, keep in mind if you have A LOT of old orders in the same status, it might be a good idea to create a new order status (ie. Delivered-) and then manually update all orders older than a month to the new status so you don't get thousands of qualifying orders because your orders go all the way back to 2015...

Once the above is confirmed and out of the way, you can run the cron job manually. Simply enter the URL in your address bar (yourdomain.com/order_review_XXXXXXXX.php) and run it. You'll get a blank page because there's no output, but check the Email Archive Manager to see if any emails were sent, and also check your logs directory to see if there were any errors.

I installed the optional widget in the admin and it shows that 12 customer were contacted in the last 30 days.

My wait period is set to 7 and order status to 3.

In my cpanel cron job setting, i used thesetting from the docs

wget --quiet -O 'https://YOUR_DOMAIN/order_review_4inznzi5vbagd.php' >/dev/null 2>&1

I run > yourdomain.com/order_review_XXXXXXXX.php directly in the browser and got a 404 page. Now i have 12 emails (for 6 customers ) in the archive that were sent but half of it are duplicates somehow

So it looks like it is coming from my cron job settings.

What do the "XXXXXXXX" stand for in the URL

Are my cron setting mentioned above correct?

thank you for the help

18 Sep 2023, 1:40 AM
#16
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

here are my cron job setting on Godaddy cpanel:

Attachment 20389

Thank you

18 Sep 2023, 7:57 AM
#17
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

nicksab:

I run directly in the browser and got a 404 page. Now i have 12 emails (for 6 customers ) in the archive that were sent but half of it are duplicates somehow
If you got a 404, that means you didn't run the correct URL. The XXXXX stands for the random characters that you should have added to the order_review.php as per the docs. Looking at your cron job screenshot, the url would be yourdomain.com/order_review_4inznzi5vbagd.php

So it looks like it is coming from my cron job settings.

What do the "XXXXXXXX" stand for in the URL

Are my cron setting mentioned above correct?

thank you for the help
Is there any specific reason why the cron job is set to run only on Sunday? I prefer having it run every day, but this is up to you.

nicksab:

Now i have 12 emails (for 6 customers ) in the archive that were sent but half of it are duplicates somehow
Let me get back to this... The plugin is specifically designed NOT to send duplicate emails, so if an email is sent out, it's flagged and will not get sent again unless you change it in the database manually. If a duplicate email was sent, this means the whole process is failing somewhere and the flag is not being set after an email is sent (database->order_review->notified). Are there any error logs in the logs folder related to the plugin?

My site - Pro ZC Help
My portfolio | My plugins

19 Sep 2023, 2:33 AM
#18
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

balihr:

If you got a 404, that means you didn't run the correct URL. The XXXXX stands for the random characters that you should have added to the order_review.php as per the docs. Looking at your cron job screenshot, the url would be yourdomain.com/order_review_4inznzi5vbagd.php
woops i guess i missed that Note part in the docs part. Sorry. Thats probably why the cron job is not running either
Is there any specific reason why the cron job is set to run only on Sunday? I prefer having it run every day, but this is up to you. No specific reason for that. I may follow your advice and run it daily so less emails are sent at one time.

Let me get back to this... The plugin is specifically designed NOT to send duplicate emails, so if an email is sent out, it's flagged and will not get sent again unless you change it in the database manually. If a duplicate email was sent, this means the whole process is failing somewhere and the flag is not being set after an email is sent (database->order_review->notified). Are there any error logs in the logs folder related to the plugin?

No logs anywhere. Only the duplicate emails in the Email Archive module

24 Dec 2023, 10:18 PM
#19
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZX Order Review [Support Thread]

After fixing my cron job issue, this module is a big plus for my site.

However, some of my customers are using guest-checkout and don t get included in the order review email.

I understand that it would go against the concept of guest checkout but is it possible to have them included in the batch email? just for the purpose of order/product reviewing.

Thank you

8 Jan 2024, 8:01 AM
#20
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: ZX Order Review [Support Thread]

Sorry for the late reply, I was on vacation.

Guest checkout is excluded from the order review emails because I personally expect NOT to be contacted about anything other than the essential communication when I choose to checkout as guest. I know it's "just" to review the order, but you could create a very long list of "justs" if you wanted to...

Anyway, if you insist on including Guest orders to this list, you can modify your includes/classes/observers/auto.zx_order_review.php and comment lines 21 and 30:

//if(!zen_in_guest_checkout()) {
	$orders_id = $p2;
	$customers_email = $p1['customers_email_address'];
	$token = RandomToken();
	$sql = "INSERT INTO " . TABLE_ORDER_REVIEW . " (orders_id, customers_email, token) VALUES (:ordersID, :customersEmail, :token)";
	$sql = $db->bindVars($sql, ':ordersID', $orders_id, 'integer');
	$sql = $db->bindVars($sql, ':customersEmail', $customers_email, 'string');
	$sql = $db->bindVars($sql, ':token', $token, 'string');
	$db->Execute($sql);
//}

My site - Pro ZC Help
My portfolio | My plugins