Support

  1. verdelino
  2. General
  3. Wednesday, June 10 2015, 03:12 PM
Hi,

I was hoping you could help me with something.

I have a website and I am using Easy Profile - very satisfied :)

I also need a webshop. I tried several ones, and now I somehow made J2Store work, but now I realized there is no bridge with Easy Profile -- user registers and gives all kinds of information like first name, last name, address.... and when he wants to buy something, he must enter all information all over again.

So my question is, if there is some webshop that works with Easy Profile, that has bridge?

Thank you
Accepted Answer
admin Accepted Answer
Admin
Hi, here some tip.

- Download, install and enable our Skeleton Plugin (you can download this at the end of this page: https://www.easy-profile.com/docs/44-triggers.html )
- Open file /plugins/jsn/skeleton/skeleton.php
- Remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- write function like this
triggerProfileUpdate($user,&$data,$changed,$isNew){ 
if(!isNew && count($changed))
{
// Retrieve data from Easy Profile
$address=$data['alias_of_address_field'];
$company=$data['alias_of_company_field'];
$zipcode=$data['alias_of_zipcode_field'];
....


// Code to store data in DB table of J2store (for example value from $address,$company,$zipcode....)
$db=JFactory::getDbo();
$query=$db->getQuery(true);

$query="HERE YOUR QUERY TO PUT DATA INTO SOME J2STORE TABLE";

$db->setQuery($query);
$db->execute();
}
}

NOTE: we not have experience with J2Store, so we can't help you how to store data from Easy Profile to J2Store.
  1. more than a month ago
  2. General
  3. # Permalink
verdelino Accepted Answer
Hi,

I did what you said, and for some reason, my page won't open if the file skeleton.php is existing.

My code looks like this:

defined('_JEXEC') or die;

class PlgJsnSkeleton extends JPlugin
{




triggerProfileUpdate($user,&$data,$changed,$isNew){
if(!isNew && count($changed))
{
// Retrieve data from Easy Profile
$address=$data['alias_of_address_field'];
$company=$data['alias_of_company_field'];
$zipcode=$data['alias_of_zipcode_field'];
....


// Code to store data in DB table of J2store (for example value from $address,$company,$zipcode....)
$db=JFactory::getDbo();
$query=$db->getQuery(true);

$query="HERE YOUR QUERY TO PUT DATA INTO SOME J2STORE TABLE";

$db->setQuery($query);
$db->execute();
}
}




}


IS there some fatal error in the code or is there a possibility that the skeleton plugin is bothering my page?

Thank you
  1. more than a month ago
  2. General
  3. # 1
verdelino Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 2
verdelino Accepted Answer
Hi,

I have looked at the link you sent, and this is something I would really need help with.
Could I ask you to be more specific on what to do (I am not familiar with this programming)?

So I have to create / replace triggers in the code? Could you tell me where is this code and an example of what to do?

Thank you
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
we have seen how to works on the demo site (http://demo.j2store.net/). You can update J2store information after update User Profile with our triggers (docs and demo code at https://www.easy-profile.com/docs/44-triggers.html), but I would not know how to do the reverse (update Easy Profile data from J2store registration) .
  1. more than a month ago
  2. General
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.