Jump to content

ESS

Members
  • Posts

    18
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    ESS reacted to serge in Different Payment Gateway On Package.   
    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.
  2. Like
    ESS reacted to serge in Different Payment Gateway On Package.   
    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
  3. Like
    ESS reacted to Michael in Change "my Company" On Login.   
    Settings > System > Companies > Edit: > change name
  4. Like
    ESS got a reaction from Paul in Im Becoming Crazy Setupping Blesta.   
    yes it worked thanks to you and all
  5. Like
    ESS got a reaction from Michael in Im Becoming Crazy Setupping Blesta.   
    You right , after you understand how all works it's easy.
  6. Like
    ESS reacted to Michael in Im Becoming Crazy Setupping Blesta.   
    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".
  7. Like
    ESS got a reaction from Michael in Im Becoming Crazy Setupping Blesta.   
    Ok after a intense fight with blesta and after i follow tutorial i finally understand how to setup package with the form i like
     

  8. Like
    ESS got a reaction from Michael in Im Becoming Crazy Setupping Blesta.   
    Oh thanks you!!!
     
     
    Hello thank you to ! yes i will try to configure all now thanks i will follow tutorial , my version is the last... thanks
×
×
  • Create New...