Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/11/2014 in all areas

  1. Cody

    Release 3.3.2

    Version 3.3.2 is now available. You can download it in the Client Area. This is a patch release that corrects issues with 3.3.0. Patching Blesta See Patching Blesta in the User Manual for instructions. Release Notes See Blesta Core - Version 3.3.2. See all Change Logs.
    2 points
  2. Michael

    Release 3.3.2

    Woo! Upgrade went well thanks guys just need 3.4 now haha.
    2 points
  3. Curious why you are trying to call PDO directly? If you're working from Blesta, you can use the Record component for queries.
    2 points
  4. Glad to hear you were able to figure it out. As a general solution, anyone encountering this issue should make sure that each *.php file does not start or end with white-space.
    2 points
  5. What do you mean 'no pricing is in use on the packages'? Every package should have at least one term/period/price/currency set. The error the OP mentioned is caused by failing to submit a valid currency when adding/editing a package. You could view the source of the page and search for "pricing[currency][]", and make sure that there are currency options set as valid 3-character codes. The system pulls these from the `currencies` table in the database. You can update your currencies under [settings] -> [Company] -> [Currencies] -> [Active Currencies]. Make sure the currency you're trying to set on the package is available in that list.
    1 point
  6. 1 point
  7. i have back again . the final solution will be as we have doit in v2.5 , a custom gateway for paypal and the others . the only probleme we have here , is we can't show any message to the client that the curency/amount to pay has been changed to a new amount/currency . but is better than we can't use paspay , stripe , payza ..... ) tomorrow i will share the paypal gateway with the community . EDIT : we can pass a message in the proccess.pdt file
    1 point
  8. Hello, like I promisse (a litle late ) here is what I found out If we do this below we can change the currency for a default one if it dosent support on the Gateway. (now it only needs a Summary->Total function to convert the choosen currency total to the default gateway currency. It will take more time for me to detect and implement the conversion rate) Open: plugins/order/order_form_controller.php line 592 find: if ($currency == null) Change to: $default_currency = "USD"; // put here your default gateway currency to convert if it dosent exists if ($currency == null) on line 606 find: // Fetch merchant gateway for this currency $merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $currency, null, true); Replace with: // Fetch merchant gateway for this currency $merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $currency, null, true); if (!$merchant_gateway) $merchant_gateway = $this->GatewayManager->getInstalledMerchant($this->company_id, $default_currency, null, true); $currency = $default_currency; Find on line 624: $gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $currency); if ($gw) $nonmerchant_gateways[] = $gw; Replace with: $gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $currency); if (!$gw) $gw = $this->GatewayManager->getInstalledNonmerchant($this->company_id, null, $gateway->gateway_id, $default_currency); $currency = $default_currency; if ($gw) $nonmerchant_gateways[] = $gw; I hope that helps But ofcourse with ould be great to have a defaul option to select a "default" currency for each Payment gatway that make the convertion from the client choosent currency and display on the order summary and on the invoice something like: $100 USD (converted to £78.73 for payment gateway support)
    1 point
  9. i'm Sure 100% you have not got our idea . ok , i will give you a case from your site , as i se in your site you have INR (india) currency enabled . if your client select this currency , he can't pay with paypal . that all . another more profound example , let say all your bussines based in India , you have only paypal as a gateway . the clients can't use this gateway (paypal) unless you change the currency in your site to USD or another accepted currency in paypal . NOTE: paypal is allowed in india , but is not supporting INR . Thanks PauloV , i'm glad that my idea was well recieved , i don't know how i can exmplain that to MR Michael , maybe i have a bad english . i have already make a se n how the gateways work in blesta 3 , i have found something different from v2.5 , also i have not see any option that i can alter the gateways functions (or maybe i have a poor skills in php ) , all the accepted currencies are stored in database .
    1 point
×
×
  • Create New...