Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

card type surcharge


nafri

Recommended Posts

i gota new vanilla install of oscommerce..nothing changed to it.. i am testting this contribution.http://www.oscommerce.com/community/contributions,3888/category,all/search,payment+type+surcharge.

 

when i place an order it is being shown twice in the admin aide and in customer account (shop front end)..as shown below.

 

surchargevc4.th.jpg

 

Most of the changes this contrib makes are simlpe and straightforward , but it make this one change in modules/order total/ot_total.php, which alows surchage to be added to over all total. not sure if the problem lies here

 

// DEVSOFTVN - 9/14/2005

$surcharge_total = ($order->info['surcharge']/100)*$order->info['total'];

$this->output[] = array('title' => MODULE_ORDER_TOTAL_CARD_SURCHARGE. '('.$order->info['surcharge'].'%)' . ':',

'text' => '<b>' . $currencies->format( $surcharge_total, true, $order->info['currency'], $order->info['currency_value']) . '</b>',

 

'value' => $surcharge_total);

//==========================

 

$this->output[] = array('title' => $this->title . ':',

'text' => '<b>' . $currencies->format($order->info['total']+$surcharge_total, true, $order->info['currency'], $order->info['currency_value']) . '</b>',

'value' => $order->info['total']+$surcharge_total);

}

 

 

not sure where the fault is occuring. would appreciate any help anyone can offer.

 

many thanks

 

nafri

Edited by nafri
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...