My client would like the events slugs (permalink) to be removed from the admin and customers emails, because she duplicates posts so it doesn't lead to the right events. Anyway, she doesn't want these links to appear and it looks like they are generated by STEC.
Hello,
My client would like the events slugs (permalink) to be removed from the admin and customers emails, because she duplicates posts so it doesn't lead to the right events. Anyway, she doesn't want these links to appear and it looks like they are generated by STEC.
Is it possible to remove them please ?
Thank you for the help !
Attached files: permalink.jpg
Hi,
Sorry there's difference between slug and permalink.
To remove permalinks from emails go to Dashboard -> STEC -> General -> Email Notifications tab and edit each template.
Remove {{permalink}} placeholder from each template.
To remove the slug field from the admin you will have to edit file
lines 13 and 14
Either comment them or delete them.
Stachethemes Developer
Thank Zhivko for the fast answer.
But my problem concerns the product summary in the emails customers receive when they book an event. It appears in the cart and the checkout also.
I know Woocommerce sends these infos but it looks like the Event Calendar generates them, am I wrong ?
See attached for a better picture.
Attached files: Capture d’écran 2023-03-03 à 14.23.23.jpg
Capture d’écran 2023-03-01 à 11.23.37.jpg
I see. I misunderstood your question.
To remove the permalink you will have to override the checkout function.
Place the code below in your theme or child-theme functions.php file:
Stachethemes Developer
Hello Zhivko,
Thank you but it doesn't work, the permalinks are still in the emails customers receive.
Maybe because I don't use tickets ?
My events are just products from Woocommerce. The permalinks look like [mywebsite.fr]/event/[name of the woocommerce product]
Apologies, I thought it was for tickets.
For products use this code:
Stachethemes Developer
I pasted the code in my theme's function.php and it still doesn't work.
The permalink still appears in the client's email... any idea ?
There is a small error in the code here:
This part:
should be on new line like this:
Can you correct this mistake and check again if the permalink is there?
Stachethemes Developer
Yes it works !
Thank you Zhivko !