Transactional email in WordPress - php

I have a two sided marketplace website( WordPress) for rental properties and I was trying to use websites like MailChimp to segment the users and vendors and send different emails to both sides.
However, I can segment just a certain options and it doesn’t really work for marketplaces.
I’ve been advised that I have to create from scratch the emails corresponding to the certain group of users , because there is no email solutions for two sides marketplaces.
For example: an email send to user who is looking for house to rent, sent one day after with suitable properties.
Another example: user who submits listing with room for rent will receive an email 6 hrs later prompting them to consider to purchase the featured add options because of ect….
I’ve been told that these emails are transactional ( because they are triggered by an action in the website) and they need to be coded from scratch using PHP programming ( word press system).
Can you give me any advice on resources and examples of how it is done for the listings hive theme, and a link to developers that can do it
Thanks
I've tried to add more email templates for a certain actions in the website ( when user is registered it receives the welcome email)
I want to add another email 6 hours after the user is registered, but only one email can be sent for each action ( trigger).
Any advice on how to over ride this and be able to add more templates with more trigger functions.

Related

Opencart Send Email to Multiple Groups

I would like to be able to modify Opencart's admin panel where you can select multiple groups instead of just 1 when sending emails to customers.
I don't know where and how to modify the system to do so as I'm still new to this kind of stuff.
The Mail system in OpenCart lets you send emails to specific customer groups. Not all at the time.
You can use this feature to send newsletters, information on specials, or to communicate any type of store information to select groups of customers.
NOTE:)
1:) If You need All Customers Groups You can select All Customers Like following Screenshot.
2:) There is no need to Extra Customize for All Customers Groups.
3:) All customers Email send is One kind of All Customers Groups.
SCREENSHOT:)

Database structure for Web Messaging system (for both registered users and guests)

I'm trying to create a very simple messaging system using PHP and MySQL but I'm having some issues to decide how to structure things here.
A quick list of what I need to achieve.
The system needs to allow both registered users and guests send messages.
The messages will be received by the customer service department (this means that customers can't send messages to other customers).
The messages can come from 1) a contact form available in the Contact page of the website where are asked fist name, last name, email, mobile phone, subject and message; and 2) emails sent by users (then the system will receive the emails via webhook and store them properly).
The customer service department needs to able to reply to any message.
The customer service department can contact any user (registered or not) at any time. This means that they can reply to messages but also can "start" the conversation (example: A message asking to confirm/update details).
I started the design but I'm completely stuck at the moment. Everything is fine when there are only registered users and customer service members: I just need to relate each message to a user_id as sender or receiver. But, when we add guest users, the user_id is useless, because they are not registered (so no user id). This means I will need to store all first name, last name, email and mobile phone for them (creating redundant data in the case of registered users, because I already have that data for them)
The tables will contain a column created_at.
My problem is: guest users won't have a record in the users table, so I cannot just have a user_id field on the messages tables. Also, I need to tell who is sending the message (because our customer service department can send messages to registered/guest users).
Honestly I cannot find a way to achieve this without having columns that will be equal to null in most of the cases.
Any help on this will be appreciated.
Thanks in advance
You will need to have a record added for the guest, as a user account in the database. Set default values, and log his IP address so should he decide to sign up, you will update the guest record with the new user account.
Add an expiry and a cron job to delete any guest accounts which are inactive for x days.
You have encountered an example where the relational model doesn't neatly fit. It's a known issue, with several Stack Overflow posts.
The good news is - there's no "clean" solution in database design. There are a few common models, but they all have varying degrees of unpleasantness.
The bad news - you'll have to make the trade-offs, and live with the consequences.

Track & Report Affiliate User Conversions which happen on a 3rd party site

I want to track user visits & user conversions who come via my Affiliates, however a caveat is that my users will land, register and hence convert on a 3rd party site. I own a Wordpress website and my user registration page is hosted on a 3rd party. My Affiliates will send an email blast to their users with the email containing unique Affiliate link to register on that 3rd party. Successful registration page is also hosted on that 3rd party itself and hence my website never comes into picture during the entire process right from user landing to user conversion.
So essentially following are the basic features that I require:
Ability to manage (create, edit, delete) Affiliates.
Ability to generate required links, creatives and tracking pixels or any code which can help to track user visits and conversions.
Ability to track the number of user impressions and user conversions per Affiliate including how many users from a particular Affiliate landed on the 3rd party registration page and which users (with basic details such as name, country etc.) actually got converted.
Various reports mainly based on Date and Affiliates.
The 3rd part is ready to host some code (such as tracking pixel) from my side.
I have already tried using 'WP Affiliate Manager' plugin in Wordpress, however using its ‘Creatives’ and ‘Tracking Pixels’ can only report the impression/conversion, but not other user details such as Name, Country etc. which would be collected by the 3rd party on the registration page and hence my entire purpose is not fulfilled.
I need to get this done today. Please let me know what could be the quickest solution.
Best Regards!
If you are vCommission affiliate user then go through this link http://developers.hasoffers.com/#/affiliate/controller/Affiliate_AffiliateUser/method/findAll
You will got all user details after 14 days if he does shopping using your affiliate link.

Drupal Rules to block Spam Bots

I'm using Drupal 7 with Drupal Commerce for my e-commerce website.
I'm not a new programmer and I can pick up on skills relatively quickly, but I do not do it for a living, so bear with me if this seems like a stupid question.
I'm having difficulty with spam bots filling out my form "Commerce Checkout". Commerce creates a new customer profile (one each for shipping and billing information).
Shipping and Billing information each have the following fields:
First Name
Last Name
Address 1
Address 2
City
State
Zip Code
Country
It's pretty easy to determine which profiles are created by spam bots and which are real. The bot-created profiles have the same string of data in EACH of the above fields.
I'm trying to create a rule using Rules and Rules Form Support modules to BLOCK the creation of the profile or progression through the checkout process if any two of these fields contain the same data, but I'm running into a wall. How can I set up rules in Drupal 7 to accomplish this (i.e. if Address1/Address2 are the same or FirstName/LastName are the same or FirstName/Address1 are the same....)
If there's another way to accomplish this I am open to suggestions. From what I understand, CAPTCHA and Honeypot are really not options for the checkout-process forms because they will not block the progression to the next step. Unless someone is willing to show me how to incorporate one of those as well, that would be great or possibly even easier...
There are lots of modules which can protect your website like
Spam Detect: https://www.drupal.org/project/spam_detect
Spambot: https://www.drupal.org/project/spambot
Simple Anti-spam: https://www.drupal.org/project/simpleantispam
User Ip Log: https://www.drupal.org/project/uiplog
Restrict Ip: https://www.drupal.org/project/restrict_ip
IP Ranges: https://www.drupal.org/project/ip_ranges
Ban an Ip address: https://www.drupal.org/documentation/modules/ban
and many more.
Use any or any set of such modules to prevent your site from spammers. You can choose which suits you better.
Thanks
Just require login with Commerce Checkout Redirect:
https://www.drupal.org/project/commerce_checkout_redirect
It will require anonymous users to set up an account first before proceeding.
If you still need more security, you should also be able to follow this suggestion to enable CAPTCHA on your user registration form:
https://drupal.stackexchange.com/questions/95979/add-captcha-to-registration-form
That should make it possible to reduce the number of spam submissions through your checkout system.

Can I have a user database synced with SugarCRM and use it mostly for emailing?

I work for a company that has a website with about 700,000 users, it would need a tool that would:
List all users
Email users, create templates, send a newsletter
Show products a user has purchased
If you find a user, show which emails have been sent to the user
Create automated tasks, example: send an email to every user that has a product expiring in 30 days
I'm not sure a CRM can do all theses things, I wanted to try a CRM to figure out how close can I get to having a tool that can do all this. I read that SugarCRM is pretty good, and its free so I'm going to try it out.
What I wanted to know is, using the REST or SOAP api of SugarCRM, can I synchronise all my users with the SugarCRM database ? Or for example each time a user is created on our website, insert it in the database.
And then each time we send an email with our website, use SugarCRM instead to send a mail, and store the data. So that we can view which emails have been sent to specific users.
Thank you
Yes you can do all that but it may require some customisation to suit it exactly to your needs. By 'users' I assume you are referring to Customer 'Accounts' as known on the SugarCRM?
Add custom fields to the Contacts module using Studio. The easiest and quickest way to get your data in will be directly to the database.
The standard fields in Sugar Contacts go in the contacts table. Your custom fields will have "_c" appended to their names and be created in the contacts_cstm table. The two tables are related by contacts.id = contacts_cstm.id_c, which is generally a GUID field (but can be any string value if you need it to be).
Then you need to have a process to add new users in your website into sugar. I suggest polling your user db periodically to look for new records and using the SOAP/REST API (good luck though, it's fairly horrible) to insert them into Sugar.
Other than that your use case is pretty much standard Sugar. For automated tasks which happen whenever an email is sent/received or when a new contact is created, you'll want to look at logic hooks, search for logic_hooks.php in the Sugar documentation.

Categories