BrettVorster VIP
Total posts: 14
24 Jul 2014 10:29

Hi Guys,

Okay I need some help becuase I'm just plain confused... and on the plus side it will help your knowledgebase. So my question:

I have Hikashop, we sell a monthly web service. There are a few options and one is more complex with the user being able to add additional items to the main product - which then add to the end total. These are monthly subs - so even the custom option is dynamic in that it must update - the price total must change with adding and removing items.

While there is only one like that, the other 2 are just plain "Flat Rate" items that are charged on a monthly basis. So now... How can I set this up on emerald? Could you walk me through the process?

So far I have added a group called: web service 1, now I'm looking at restrictions and I'm not so sure that applies (I'm not restricting content or functionality on the site) Then I'm looking at actions and the drop down is empty... so please let me know what process to follow?

Last Modified: 20 Jan 2015

Tags Hikashop


Sergey
Total posts: 13,748
24 Jul 2014 14:13

BrettVorster I have Hikashop, we sell a monthly web service. There are a few options and one is more complex with the user being able to add additional items to the main product - which then add to the end total. These are monthly subs - so even the custom option is dynamic in that it must update - the price total must change with adding and removing items.

So basicaly you want users to be a subscribers in order to be able to add products to hikashop? Correct? Can you describe it in other words. It is not completely clear to me.

BrettVorster Then I'm looking at actions and the drop down is empty... so please let me know what process to follow?

You have to install action separately from download section.


BrettVorster VIP
Total posts: 14
28 Jul 2014 06:54

Hi Sergey,

Okay so I found the missing plugins etc on the site and installed them - now I have the action for hika, the payment gateway etc...

So here is how it works.

Product/ service 1: customer likes what they see and purchases the subscription - in hikashop I set the price for example $30/pm the customer adds it to the cart they go trhough to checkout. I have payment gateway in both Hika and Emerald - I've created the sunscription for the product or service in emerald frontend. so user now completes the purchase. Are they paying through Hika or Emerald? If its a monthly service will emerald send them an email at month end to notify to pay for subscription for next month?

Product/ service 2: a customisable option. The user can add more items to the subscription, these items are in the hika product as characteristics & variants. For example they buy a game and want to have more user licenses - they can add licenses - to the subscription, so the value must be dynamically generated from the hika product options... In some cases it will be a basic flat rate price in others it will be more or less depending on how the buyer configures their setup. How would I make that happen in emerald?

Perhaps we can chat online over skype of PM so I can show you the devsite to explain in more detail?


Sergey
Total posts: 13,748
28 Jul 2014 07:54

BrettVorster Are they paying through Hika or Emerald?

Any. But generaly this integration is done so users can pay through Hikashop.

BrettVorster If its a monthly service will emerald send them an email at month end to notify to pay for subscription for next month?

It will acts acording to plan settings. yes it will send expiration notification. Of course if you configure cron.

BrettVorster Product/ service 2: a customisable option. ... How would I make that happen in emerald?

This is more complicated. Hickashop does not allow to enter manual price. But you may be can use product properties for that. But what it means for emerald? MUA? How different Emerald will behave based on difference of number of licenses?


Sergey
Total posts: 13,748
29 Jul 2014 01:59

BrettVorster Now about this cron job - how do I do this?

Please read Emerald Quick Start.

BrettVorster Selling custom hosting server space online. User can configure different configs - Ie more RAM, HDD< CPU etc etc - these confis affect price... How do I make it happen?

This you have to ask hikashop developer. I have no idea. But no matter what would be the price of the product user will get a correcponding subscription.

BrettVorster Custom server cannot have fixed price, yes can have flat rate (Starting from) with items added to make it more expensive... but needs to update so for example "Client A" custom server = 200 / "Client B" custom server = 220 (he bought more ram)

Note you cannot create product properties that will affect the plan. For example if you purchase product A with 200 GB space you get plan A and if you add another 100 Gb you get plan B. That is not possible. You have to create separate product Like Product И with 300 GB of space.


pepperstreet VIP
Total posts: 3,837
29 Jul 2014 10:57

Interesting topic and use case... I am following.

Some thoughts on selling subscriptions and/or products with options.

A.) I have to admit, I have no experience with the Hikashop integration, as far as I understand it is not possible to use product with options... because the integration uses only 1 specific emerald plan per product, right? If the dynamic price is the crucial issue here... what about "transferring" the final price to an Emerald plan which has a free/donation price? Could this be utilized and filled by the integration plugin?

B.) Apart from HikaShop integration, I can imagine an Emerald only solution. But this would require some new features. I have created a related topic: Plans - hierarchy - plans as options or products?


Sergey
Total posts: 13,748
30 Jul 2014 00:45

pepperstreet because the integration uses only 1 specific emerald plan per product, right?

Actualy not. You can add as many actions to the plan as you want. So it may actualy create many-to-many relation. When you purchase product you get few subscriptions.

pepperstreet If the dynamic price is the crucial issue here... what about "transferring" the final price to an Emerald plan which has a free/donation price?

This is absolutel;y not important the price of the plan. We only create plan for user if product is purchased and it is not needed to know the price of the product. Dynamic price have to be for product only.

pepperstreet B.) Apart from HikaShop integration, I can imagine an Emerald only solution. But this would require some new features. I have created a related topic: Plans - hierarchy - plans as options or products?

Will answer there.


BrettVorster VIP
Total posts: 14
30 Jul 2014 18:03

Hmmmm... I dont really understand, so let me ask in another way. Would it be possible for the Emerald Subscription plan to draw its value (Amount) from the final total of a hikashop product with options? So although Client A and Client B are on the same plan it has different values determined by the end product value derived by hikashop after the client has customised their item?

And... if not - would you be able to do some customisation work for me so that it could? - Or know anyone who might be able to?


Sergey
Total posts: 13,748
31 Jul 2014 11:59

You want your users to purchase subscriptions in Emerald or in Hickashop? I suspect second. Then why do you need to affect Emerald price at all. The needed plan will be granted for the price people purchased in Hikashop.


BrettVorster VIP
Total posts: 14
31 Jul 2014 13:15

OMG... what? thats freaking great news! So how do I set this - just leave the price field empty?


Sergey
Total posts: 13,748
31 Jul 2014 13:32

OK.

  1. In emerald plan actions add hikashop action where you select a product. If user purchase this product, this plan will be granted automaticaly upon purchase.
  2. Do not forget to check that Emerald hikachop plugin is enabled
  3. To be sure users cannot purchase through Emerald but only throu hikashop, create plans list template override with redirect to hikashop products list. So whenever anyone try to see list of plans, he endup in list of hikashop products.

    So jsut create /templates/[name]/html/com_emerld/emlist/default.php delte everything and place there only

    <?php JFactory::getApplication()->redirect(' http://link/to/hika/shop ');
    

Sergey
Total posts: 13,748
31 Jul 2014 13:34

BrettVorster just leave the price field empty?

You can set any price in Emerald not important for purchase. But may be important for statistics. Just put there aproximate amount or minimum amount.


Sergey
Total posts: 13,748
31 Jul 2014 13:38

pepperstreet

BrettVorster So although Client A and Client B are on the same plan it has different values determined by the end product value derived by hikashop after the client has customised their item?

So, different purchases grant the SAME plan and the SAME site access? Doesn,t make sense to me. How would you distinguish between those users and the purchased options/services?

I think it is not even matter of restrictions. Both products give the same access the only difefrence is the value of the server. And this may be even processed manually. And plan only grant access to managment board. This is for instance how things might work.


pepperstreet VIP
Total posts: 3,837
31 Jul 2014 15:16

Sergey I think it is not even matter of restrictions. Both products give the same access the only difefrence is the value of the server. And this may be even processed manually. And plan only grant access to managment board. This is for instance how things might work.

o.k. I missed that point. I have thought of "more automation" and "dependent restrictions and price" i.e.:

Product BASE -> Plan 1  (simple access and price)  
    OPTION 1 -> Plan 2  (optional access and higher price)  
    OPTION 2 -> Plan 3  (optional access and higher price)  

That's why I had the idea for cross-plans and added price values. I mean, to by-pass hikashop altogether.


Sergey
Total posts: 13,748
01 Aug 2014 09:22

pepperstreet I mean, to by-pass hikashop altogether.

Hikashop also allow to but product bulk through cart. This is what is impossible in Emerald.


Toolie VIP
Total posts: 5
17 Aug 2014 07:18

Sergey

  • To be sure users cannot purchase through Emerald but only through Hikashop, create a plans list template override with redirect to the Hikashop products list. So whenever anyone tries to see list of plans, he ends up in list of Hikashop products.

So just create /templates/[name]/html/com_emerald/emlist/default.php delete everything and place there only

``` <?php JFactory::getApplication()-&gt;redirect(' http://link/to/hika/shop ');
```

If I understand correctly how to set up a template override, from my research it looks like the path I would use is this one, is this right?

/templates/[name]/html/com_emerald/views/emlist/tmpl/default.php

To be clear, the image below shows the link (in yellow) that I would like to redirect to my Hikashop menu item with the membership plans list.

Is this the link that would be replaced by creating the template override and putting the following into the file?

``` <?phpJFactory::getApplication()->redirect('http://link/to/hika/shop'); ?>

```

Toolie


Sergey
Total posts: 13,748
17 Aug 2014 09:09

Toolie If I understand correctly how to set up a template override, from my research it looks like the path I would use is this one, is this right?

/templates/[name]/html/com_emerald/views/emlist/tmpl/default.php

No. It is.

/templates/[name]/html/com_emerald/emlist/default.php

You do not create views and tmpl folders.


Sergey
Total posts: 13,748
17 Aug 2014 09:12

Toolie To be clear, the image below shows the link (in yellow) that I would like to redirect to my Hikashop menu item with the membership plans list.

Toolie Is this the link that would be replaced by creating the template override and putting the following into the file?

Yes. That is the link.


Toolie VIP
Total posts: 5
17 Aug 2014 17:20

That worked perfectly Sergey, thank you!!

Toolie


Sergey
Total posts: 13,748
20 Jan 2015 09:18

Greate!

Powered by Cobalt