DennisHermannsen Posted June 11, 2014 Share Posted June 11, 2014 Hi, We're selling game servers. For CS:GO, we want the client to pay $1 per slot if Datacenter 1 has been chosen, and $0.5 if Datacenter 2 is selected. Datacenter and Slots are to different configurable options - is it possible? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 11, 2014 Share Posted June 11, 2014 maybe you can use the configurable options to achieve this job 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted June 12, 2014 Author Share Posted June 12, 2014 The question is just: "How?" I don't really see any documentation on it, and I don't really think it's possible with WHMCS. But I really don't know, that's why I asked on the forums. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 12, 2014 Share Posted June 12, 2014 is it essential that Datacenter and Slots are different config options? if you could combine them into one, then it would work. i.e one config option using dropdown... Datacenter 1 - 1 Slot Datacenter 1 - 2 Slots Datacenter 1 - 4 Slots Datacenter 1 - 8 Slots Datacenter 2 - 1 Slot Datacenter 2 - 2 Slots Datacenter 2 - 4 Slots Datacenter 2 - 8 Slots the alternatives could include splitting in to four config options... perhaps with the DCs as checkboxes, with a slider beneath each (or qty box if you prefer)... i'm wondering if you could have two sliders for the slots (one for each DC) but disable one based on the DC selection - that's going to be a jquery solution... if it wasn't 3am, i'd look into that option further... but the dropdown idea would be the easiest (unless you had a lot of slot options). 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted June 12, 2014 Author Share Posted June 12, 2014 Hi Brian, Thanks for your reply. Even though your first idea is the easiest one, it isn't really something that I can go with... I want it to be easy and manageable for the client to order the server, and a hugh dropdown list is also something that will take long time to create (we offer a 5% discount if the client order quarterly and 15% if the client orders semi-annually). We're using TCAdmin's module for TCAdmin v2, and we can select which configurable options that the module should consider as the 'datacenter string' and 'slot string', if that makes any sense. Because of that, we can't have to checkboxes for the datacenter and a slider under each one :-/ 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 13, 2014 Share Posted June 13, 2014 Hi Dennis, this won't necessarily be an elegant solution, but there is the option of making them 2 separate products, e.g CS:GO (DC1) and CS:GO (DC2) - as separate products, each would then only need one config option for slots, each priced accordingly. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted June 13, 2014 Author Share Posted June 13, 2014 Hi Brian, Problem is that we already have 2 seperate products for each product (CW and FFA servers - which is not the most elegant solution), and we would have to create 2 additional products for each server (resulting in DC1 + CW, DC1 + FFA, DC2 + CW, and DC2 + FFA). The jQuery solution is probably the best, but also the most difficult to make. I should probably learn a bit about it and make some customizations to the order template. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 13, 2014 Share Posted June 13, 2014 Hi Dennis, i'm assuming that you're using a custom template for your site? if not, another option would be to make each datacenter it's own product group... so they choose DC1, then get shown the games available in that datacenter. I did try to look at your site to get an idea of what it looks like, but I assume that it's currently down - if you want to PM a screenshot or link to me, feel free. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted June 13, 2014 Author Share Posted June 13, 2014 (edited) The website should be up and running. Did you access https://primaservers.com? The site is in Danish, but we've translated some of the content to English. It would be really nice if it was possible to have one configurable option depend on another configurable option. I've added this as a feature request, in case somebody else can see the meaning of having this: https://requests.whmcs.com/responses/configurable-option-depends-on-another-configurable-option Edited June 13, 2014 by DennisMidjord 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 14, 2014 Share Posted June 14, 2014 aah, that explains it - I was looking for the wrong Danish website! i'll look further into this tomorrow - i've got a few ideas having seen the site, but it's really a jquery solution... and I need a clear head for that! one quick question - you're charging 20,00DKK extra for the Danish server... ideally, do you want to not charge for the datacenter, but just change the slots slider price depending on which DC is chosen? e.g $1 for Danish, $0.5 for France? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted June 14, 2014 Author Share Posted June 14, 2014 Yes, we want the slot price to be a little higher whenever the Danish datacenter has been selected. Yesterday when I was thinking about the whole jquery thing, I might have found a minor problem. In the TCAdmin module, you can only have 1 configurable option/custom field that will act as slots. I cannot check more than one. Does that make any sense? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 15, 2014 Share Posted June 15, 2014 I was going to suggest having two slots sliders, one each for Danish / French, and then either hiding or disabling one of them based on the value of the datacenter dropdown... but if you're only allowed one, then that idea wouldn't work... also thought about manipulating the order summary box to alter the pricing based on the datacenter choice. to be honest, if this were my site, then I would make them separate products and modify the "Global Offensive" page to have two links per box (one for Danish, your for French DC) - however you look at this problem, I think that it's going to be easier to modify the site template than it would to create a jquery link between the configuration options. another thing to consider when using sliders - you don't necessarily need to have them increase in steps of 1 (e.g 1,2,3,4 etc) - you can change the steps for different sliders (e.g 2,4,6,8 or 4,8,12,16 etc) by modifying the configureproduct.tpl template. I wrote an article about how to do that a couple of months ago... http://forum.whmcs.com/showthread.php?87803-Order-Form-Slider-in-Increments 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.