REFUND FUNCTION - STORE CREDIT - EMAIL SENT TO CUSTOMER 'Dokan Send Coupon To Customer' > Wrong slug url
Sophie-2e opened this issue · 6 comments
Bug Description
Following up on Dokan Customer Support Ticket #40346, opened since December 2023:
In Dokan Send Refund Request to Vendor email template, there is an issue with the slug url, as I got the same error in all languages. The Url link is not working because there is double // and because the email template is not catching the translation of the slug in the url, while it works like a charm in the customer dashboard.
Currently, the link is : website.url/my-account**//**view-rma-request/XX/
while it should be : website.url/my-account/view-rma-request/XX/
And in another language such as dutch it is: website.url/nl/mijn-account**//view-rma-request/**XX/
while it should be : website.url/nl/mijn-account/bekijk-retour-en-terugbetalingsverzoeken/XX/
The slugs has been properly translated in WPML Strings so the issue seems to come from the construction of the url itself in the email template.
Please request the video of the test with Dokan 3.10.3, sent in Dokan support ticket #40346 on Apr 19th 2024. You will see in detail the issues, with tests in various languages.
I also sent various testing videos about the issue with the previous Dokan versions, and with no plugins activated and default theme store front, you can request them to Yeasin as well.
Step To Reproduce
REFUND FUNCTION - STORE CREDIT - EMAIL SENT TO CUSTOMER 'Dokan Send Refund Request to Vendor' > Wrong slug url
Expected Behaviour
Currently, the link is : website.url/my-account**//**view-rma-request/XX/
while it should be : website.url/my-account/view-rma-request/XX/
And in another language such as dutch it is: website.url/nl/mijn-account**//view-rma-request/**XX/
while it should be : website.url/nl/mijn-account/bekijk-retour-en-terugbetalingsverzoeken/XX/
Actual Behaviour
Currently, the link is : website.url/my-account**//**view-rma-request/XX/
while it should be : website.url/my-account/view-rma-request/XX/
And in another language such as dutch it is: website.url/nl/mijn-account**//view-rma-request/**XX/
while it should be : website.url/nl/mijn-account/bekijk-retour-en-terugbetalingsverzoeken/XX/
Additional Information
No response
Environment (please complete the following information)
1. Dokan Version: [all including 3.10.3]
2. Dokan Pro Version: [all including 3.10.3]
3. WooCommerce Version: [all including 8.8.2]
4. Browser [all]
5. Current Theme: [all included Store Front]
Hello @mrabbani and @MdAsifHossainNadim , there is also this issue that has been opened for a while on Github which is related to the email sent to the vendor in the refund process, but it is in this GitHub that I explained the error for the email template sent to Vendor - Dokan Send Refund Request to Vendor - #2114
While this GitHub is in fact about the email sent to the customer for the store coupon refund process, so the template 'Dokan Send Coupon To Customer'.
Got confused with the various url links issues 😅
And both issues still there with Dokan 3.11.0
Any update on this still not fixed with latest Dokan updates?
Hello @mrabbani and @MdAsifHossainNadim, this issue is still happening with Dokan 3.10.4 and Pro 3.10.3 for [STORE CREDIT process -> EMAIL SENT TO CUSTOMER 'Dokan Send Coupon To Customer' > Wrong slug url
IN DEFAULT ENVIRONMENT: no plugin except Woo,Dokan, Store Front theme
- There is still the double // meaning it is:
/my-account//view-rma-requests/13/ instead of being ->
/my-account/view-rma-requests/13/ with only one '/' between my-account and view-rma-requests-13
Proof that there is a deeper issue is that indeed when I change the slug URL in my custom environment such as:
/my-account/view-return-refund-requests/13
The url slug 'view-return-refund-requests' does not adapt in the email "Dokan Send Coupon To Customer"
BUT this same slug DOES ADAPT WELL in the "Dokan Send Refund Request Conversation Notification to Vendor and Customer":
So if the issue was really coming from the customisation of the url slug, it will not work in any of the email template.
Please review this video that shows you the issue and that show you how it works well in the "Dokan Send Refund Request Conversation Notification to Vendor and Customer" but not in the 'Dokan Send Coupon To Customer' email: contact me if you need the video again
This issue is still happening with Dokan 3.10.5 and Pro 3.10.4 for [STORE CREDIT process -> EMAIL SENT TO CUSTOMER 'Dokan Send Coupon To Customer' > Wrong slug url
What is the ETA on the fix @mrabbani @MdAsifHossainNadim?
@MdAsifHossainNadim please have a look on this
@MdAsifHossainNadim would be great to get news on this, still same issue with Dokan 3.12.0