Posted Today, 01:58 PM
serge, on 18 May 2016 - 09:03 AM, said:
Yes please it will be REALLY useful! and also a guide how to do this would be really really useful. Thank you
Answer:
I checked my file(s), I was wrong I made it but in an other shopping cart system, since I play with about 5 systems, what really I did was something close in blesta but no same as you asked, so here bellow untested code/instructions specifically for your need:
in file /plugins/order/views/templates/wizard/checkout.pdt
After this block:
// Set non-merchant gateways
foreach ($this->Html->ifSet($nonmerchant_gateways, array()) as $gateway) {
?>
replace this block:
<div class="radio">
<label>
<?php
$this->Form->fieldRadio("gateway", $this->Html->ifSet($gateway->id), ($this->Html->ifSet($vars->gateway) == $this->Html->ifSet($gateway->id)), array('class' => "gateway"));
$this->Html->_($gateway->name);
?>
</label>
</div>
by this block:
<?php
// from above foreach loop, by default blesta will list here all enabled gateway(s) on by one, so we add some conditions:
// here the blesta package group(s) id for witch you want to hide a given gateway that is enabled in blesta interface
if ($package_group->id == "4" OR $package_group->id == "10" ) {
// the gateway(s) to hide when above package group id are concerned
if ($gateway->id == "2" OR $gateway->id == "3") {
// case: nothing to display
} else {
// case: gateway can be displayed:
?>
<div class="radio">
<label>
<?php
$this->Form->fieldRadio("gateway", $this->Html->ifSet($gateway->id), ($this->Html->ifSet($vars->gateway) == $this->Html->ifSet($gateway->id)), array('class' => "gateway"));
$this->Html->_($gateway->name);
?>
</label>
</div>
<?php
}
}
?>
So in last above block you have to fill your own package group id, and gateway id, you can find theses id from blesta interface when you edit package group or gateway, next just just find the id in the URL at the ending or close to.
But i want some other service will use ONLY bitcoin and not paypal.
How is that possible to do ?
this can be done by adding a rule/code within a checkout file, I have done it, it's based on the blesta service group(s) condition, let me know if you need detail and I will post in the forum contribute section
It's because your in a new environment, it's like me I can't play a Xbox console not because of the games but because of the controller, if I was on it 24/7 trying and trying I would probably like it (lies) but yeah. I find Blesta easier than the competitors because it's step by step you need a order form, a group to group packages, and of course the packages , and all under one tab "Packages".