Jomsocial Integration plugin

  • Posts: 7
  • Thank you received: 0
9 years 8 months ago #192130

-- HikaShop version -- : Business 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : every browser
-- Error-message(debug-mod must be tuned on) -- : Strict Standards: Only variables should be assigned by reference in /var/www/clients/client1/web9/web/plugins/community/hikashop/hikashop.php on line 23

Strict Standards: Only variables should be assigned by reference in /var/www/clients/client1/web9/web/plugins/community/hikashop/hikashop.php on line 24

It seems that this plugin will only display on a profile page if 'Core Application' is setup to 'No'. Even then, first it requires accessing the Jomsocial Customization page before would show on the profile page.
This plugin application also is not available to chose from the list of Jomsocial applications Also, this plugin would not show anywhere if 'Crore Application' is setup to 'Yes',.

Please Log in or Create an account to join the conversation.

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 8 months ago #192142

Hi,

Which version of JomSocial are you using ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 8 months ago #192189

the latest version 3.2.1.6

Please Log in or Create an account to join the conversation.

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 8 months ago #192238

Hi,

Edit the plugin and modify the line 24 from

$user =& CFactory::getActiveProfile();
To
$user = CFactory::getActiveProfile();
It will remove the strict standard warning.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 8 months ago #192286

I removed & ampersand also from line 23 and 29 to get rid all of strict standard messages.
However, what about a control of this plugin to display on a jomsocial profile page?

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
9 years 8 months ago #192308

Hi,

The "core application" option is something we added in the plugin as it was recommended to be like that on the developer documentation of JomSocial: www.jomsocial.com/company/docs/development/plugin-tutorials
I've honestly never tried to use JomSocial more than just to test that the integration plugin was displaying so I actually don't know what that option does and how JomSocial handles it.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 8 months ago #192434

Core Application 'Yes' option forces to display always a plugin on a profile page. When is set to 'No' then a plugin shows on the list of applications to choose from to display on that page.
In our case we want to make sure that is up to our users what they want to display on their profile page.

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
9 years 8 months ago #192475

Note that the plugin will only display on the user profile if he looks at it himself. Other users won't see his orders if that's why you're afraid of.
I don't know how to modify the plugin to allow for the user to choose what to do with the display. The plugin documentation of JomSocial doesn't talk about that.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 8 months ago #192573

I appreciate your honesty. I guess I will look it up myself for a solution. We actually have several applications with similar integration with Jomsocial and they work as they should.

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
9 years 8 months ago #192578

Hi,

If you can provide such jomsocial plugin so that we can look at what they did in their plugin that might help us.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 7 months ago #192692

Actually, jomsocial comes with multiple applications that can be added/removed from user's profile.
I attached plugins that come from another cart component that we previously tested.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
9 years 7 months ago #192764

Hi,

The only thing I see is another parameter of the plugin. I'm not sure how it could help but why not.
Here is a new version of the plugin you can install with that option added. Let me know if that helps

File Attachment:

File Name: hikashop.zip
File Size:2 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
9 years 7 months ago #192823

This version works correctly.

Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
9 years 6 months ago #197076

-- HikaShop version -- : 2.3.5 Business
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome 41.0.2272.101 m
-- Jomsocial version --: 4.0.2

1. I have a similar issue although I am using the Hikashop Jomsocial Plugin within Jomsocial 4.0.2. How can I change the tab title from displaying "Hikashop JomSocial Plugin" to "My Orders" I have tried looking in plugins > community > hikashop > hikashop.php (and hikashop.xml) but cannot see any way to change it. I have attached a screenshot to show how it is displaying.

2. Also is there any way to duplicate this plugin so that I am able to embed Addresses, My carts and My wishlists into Jomsocial 4.0.2?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #197089

Hi,

1. I think that you have to edit the plugin name, zip the files and install it again on your website.

2. To duplicate the plugin, you have to duplicate the files, rename them, rename the classes name, path in the xml file, etc and then you will be able to install it as another plugin.

The following user(s) said Thank You: ShinKou

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
9 years 6 months ago #197196

Thanks very much. It worked by uninstalling the original Hikashop Jomsocial plugin, editing the file hikashop.xml

<name>Hikashop Jomsocial Plugin</name>

to

<name>My Orders</name>

zipped the files and re-installed, now it shows perfectly.

I did try to rename the files hikashop_orders.php and hikashop_orders.xml, changed hikashop.xml file

<name>My Orders</name>

<files>
<file plugin=hikashop_orders">hikashop_orders.php</file>
</files>

Which did install okay but I can't see the plugin displayed on the front end, so I must be missing something. Unfortunately I do not know php well enough to duplicate the plugin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum