Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Location
    Tijuana, Baja California, Mexico
    Posts
    2
    Plugin Contributions
    0

    Default Linkpoint accept other currencies

    I was looking for this onw but didnt find it so i dug into the autorize.net module since that one does the currency conversion (using the currencies previously created in localization admin area) and i found a particularly working piece of code and adapted it to linkpoint variable names so here is what you have to do:

    Find your linkpoint payment module in:

    HTML Code:
    your_shop_path/includes/modules/payment/linkpoint_api.php
    And around line 408 right after:

    PHP Code:
    foreach(array('subtotal''tax''shipping') as $i) {
          if (isset(
    $myorder[$i]) && $myorder[$i] == 0) unset($myorder[$i]);
        } 
    put this:

    PHP Code:
        global $currencies;
    $myorder['chargetotal'] = number_format($myorder['chargetotal'] * $currencies->get_value('USD'), 2); 
    and you are good to go.
    This is for zen cart v1.5.0
    I hope someone finds this useful

  2. #2
    Join Date
    May 2012
    Location
    Tijuana, Baja California, Mexico
    Posts
    2
    Plugin Contributions
    0

    Default Re: Linkpoint accept other currencies

    mmmm i cant seem to find where to edit my own post
    well the deal is that the formatting wasn't correct this is the way it should go

    PHP Code:
    ($myorder['chargetotal'] * $currencies->get_value('USD'), 4'.'''); 
    i added

    , '.', ''
    zen cart store:
    synergyo2.biz

 

 

Similar Threads

  1. Advice/clarification needed on setting up to accept 2 currencies
    By iddy in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 6 Mar 2011, 12:58 AM
  2. godaddy not accept any other smtp mail server?
    By turbochan in forum Basic Configuration
    Replies: 8
    Last Post: 20 Jan 2011, 05:56 PM
  3. Problems Displaying Other Currencies
    By sirluck in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 22 Nov 2009, 11:15 AM
  4. No email with PayPal in other currencies
    By paul3648 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 9 Aug 2007, 07:32 PM
  5. Can't accept Discover Cards with Linkpoint
    By brimsjewelry in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 May 2006, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg