View Full Version : Autoassign of an availability goup
la_stella_celeste
10-08-07, 03:10 PM
I have seen some posts related to this issue, but what we would like is to have someone be autoassigned into an availability group when they create an account IF they come to the storefront from our other website. They would still be seeing all the products from our store, but they would also need to see some additional products that most other customers can't see. Can this be done?
thanks!
Auto assigning to an availability group can be done with the Emporium Plus Tool Kit. The problem is, how are you going to know they came from your other website? There is no tracking mechanism as they click around your store to tell the code where they came from. They are not likely to create an account without browsing around your store first. So after the first screen you would have lost that referring url.
la_stella_celeste
10-08-07, 07:31 PM
The other webpage will show some of the products and tell them that if they want to be able to see the products and prices in the store, they would have to create an account first. These would be people who are accessing the other webpage specifically because they've seen us at a trade show, not people who have happened on our webpage and want to browse around to decide if they want to create an account or not. The people in the new availability group would see all the products in the store, but would also see some products that the general public can't see.
Could I create a separate 'create account' page that contains the code from the toolkit to add them to the availability group? The separate 'create account' page would be accessed by a link from the other webpage. They won't even see the store until after they've created the account.
thanks
Robin
In that scenario, you should be able to do it. You would add something to the url to tell Merchant that they arrived via your other site, eg
https://www.yourdomain.com/mm5/merchant.mvc?Store_Code=XX&Screen=ACNT&Ref=Yes
Then in the create account page include a hidden input like
<input type="hidden" name="Ref" value="&mvte:global:Ref;">
Then in the storefront (page they land on after creating a new account) you would check for that and the ICST action before assigning to the group. Something like:
<mvt:if expr="g.Action AND g.Action EQ 'ICST' AND g.Ref EQ 'Yes'">
<mvt:item name="toolkit" param="agrpinsert|avail|Wholesale" />
</mvt:if>
This would assign them to the Wholesale group if they came to your store from the other store. Now if they decided to browse your store before creating an account, this would not work. The key is passing the Ref variable to the new account form. I used Yes as an example. You would probably make that cryptic, like FOJSP77
la_stella_celeste
10-09-07, 06:02 PM
Thanks - I appreciate the info. We will try it that way.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.