Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 orderstatus email message
Author « Topic »  

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/15/2023 :  04:00:48  
In Email Message Admin-orderstatusemail in subfolder store, I have set {%reviewlinks%}, however, my client received an order status email without review links

My main English store used static URL and subfolder store used SEO friendly URL
I guess that the issue maybe relate to the setting of .htaccess

1. Main Englsih store htaccess setting:

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

<files .htaccess>
order allow,deny
deny from all
</files>
Options -Indexes

AddDefaultCharset UTF-8
AddCharset UTF-8 .htm .html .php .css .js .woff
Options +FollowSymLinks

RewriteEngine on
RewriteBase /
ErrorDocument 404 /404.php
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [OR,NC]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,L]

2. Subfolder Chinese store htaccess setting:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
ErrorDocument 404 /taiwan/404-taiwan.php
RewriteCond %{HTTP_HOST} ^(www\.3dlens\.com)?$
RewriteRule ^(.*)$ https://3dlens.com/taiwan/$1 [R=301,L]

RewriteRule ^category/([^/.]*)/?$ /taiwan/categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^products/([^/.]*)/?$ /taiwan/products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^manufacturer/?$ /taiwan/categories.php?man=all [QSA,nc,L,B]
RewriteRule ^manufacturer/([^/.]*)/?$ /taiwan/products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ taiwan/proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>

Thanks
Jim

Edited by - jimhuang on 10/16/2023 02:37:56

Vince
Administrator

42692 Posts

Posted - 10/16/2023 :  11:52:05  
Hi Jim
I don't think this would be to do with the .htaccess settings but if this is a multi-language store, are you sure you have the "%reviewlinks%" parameter in the status email for both languages?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/16/2023 :  17:37:23  
Hi Vince

This is not a multi-language store.
The Chinese store has separate database.

{%reviewlinks%} has set in orderstatus email at Chinese store.
[img]https://3dlens.com/reviewlinks.png[/img]

I make a test:
[img]https://3dlens.com/reviewlinksemail.png[/img]

Jim

Edited by - jimhuang on 10/16/2023 18:16:22

dbdave
ECT Moderator

USA
10385 Posts

Posted - 10/16/2023 :  19:52:33  
If the product is no longer available, or not in the database (a custom product entered on the order, in the admin) then there would be no review link sent.
Is it possible this is the case?

David

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/16/2023 :  20:37:18  
Hi David

Thank you!
Yes, you are right.

I edited to real product and make a test again, however the review link is https://3dlens.com/8%E5%90%8BLCD%E5%81%8F%E5%85%89%E7%89%87?review=true
This is a 404 page!

The link is wrong, there is missing /taiwan subfolder.
It should be https://3dlens.com/taiwan/8%E5%90%8BLCD%E5%81%8F%E5%85%89%E7%89%87?review=true

Thanks
Jim
v7.63

dbdave
ECT Moderator

USA
10385 Posts

Posted - 10/16/2023 :  21:42:48  
Can you check the "Main Settings" in the admin to see if the store URL has the taiwan subfolder?

Thanks,
David

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/16/2023 :  22:02:24  
Yes, both Store URL and HTTPS Store URL have a same setting: https://3dlens.com/taiwan/


Jim

Vince
Administrator

42692 Posts

Posted - 10/18/2023 :  11:26:18  
Hi Jim
I think I see what may be causing the problem. To test to see if this is the issue, could you try opening the file incfunctions.php and search for this...

function stripUrlPath($url){

Then on the line after that add this...

return $url;

So the whole function should look like...

function stripUrlPath($url){
return $url;
$urlParts = parse_url($url);
$newUrl = $urlParts['scheme'] . "://" . $urlParts['host'] . "/";
return $newUrl;
}

Then please let me know if it helps.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/18/2023 :  16:51:39  
Hi Vince

It is not working.

In admin, it displays
Fatal error: Uncaught Error: Call to undefined function trim_() in /home/dlens/public_html/taiwan/vsadmin/inc/incloginfunctions.php:581 Stack trace: #0 /home/dlens/public_html/taiwan/vsadmin/admin.php(15): include() #1 {main} thrown in /home/dlens/public_html/taiwan/vsadmin/inc/incloginfunctions.php on line 581

In store homepage, it displays
Fatal error: Uncaught Error: Call to undefined function getaltlang() in /home/dlens/public_html/taiwan/vsadmin/inc/inccrosssell.php:181 Stack trace: #0 /home/dlens/public_html/taiwan/index.php(163): include() #1 {main} thrown in /home/dlens/public_html/taiwan/vsadmin/inc/inccrosssell.php on line 181

Vince
Administrator

42692 Posts

Posted - 10/19/2023 :  06:37:10  
Hi Jim
It looks like you edited an old copy of the incfunctions.php file and copied that to the server.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 10/19/2023 :  07:28:59  
Hi Vince

It's working.
Thanks so much!

Jim

  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000