How it works
The shop automatically sends an email to a statically configured recipient address when a specific page is clicked or a particular state of the shop is reached or not reached.The email cannot be sent to dynamic recipients, for example not to a shop customer, because the recipient address has to be stored statically in the shop configuration
shop.config.Integration
Step 1: Activation
No activation on the part of WEBSALE is required for this function.Step 2: Adjust the shop configuration
In your shop configurationshop.config, create a GenericEmails section if it does not yet exist, along with a +Entry subsection. The +Entry subsections can be repeated up to 20 times for different emails. Configure the following parameters:
Step 3: Adjust the shop templates
Now adjust the desired shop templates in order to control the sending of the email. To do this, use the tagWS-SendGenericEmail(). In the argument of the tag, enter the string that you specified in step 2 as the value of the parameter ID.
Example 1, search result page. The email is sent when the buyer has performed a search and has reached the search result page.
SuccessSearch is sent when the buyer has found something, mail 2 with the ID EmptySearch when the search was unsuccessful. This is the combination of reaching the page and different states. The prerequisite is that two sections with the corresponding IDs have been created in the shop configuration shop.config.
SuccessSearch can be: “A customer has visited the shop’s search page, and hits were found for their search.”
The content of mail 2 with the ID EmptySearch can be: “A customer has visited the shop’s search page, but their search returned no hits.”
Example 4, empty category. On the product overview page (ws_category.htm), the email is sent when the category contains no products.
~DC-FPCatName~ and the category index ~DC-FPCatIndex~ is empty; it does not contain any products.”
Reference: WS-SendGenericEmail()
Step 4: Create the email template
Create a template and save it under the same name that is specified in theGenericEmails section as the value of the parameter Template, in your template directory, for example benutzer/templates/translation.
The content of the template depends on how the delivery is being controlled.
Once you have completed all steps, the function is fully integrated and can be tested and put into use.