Show Posts

Topics - hus2020

Pages: [1]
Support / Modify the Order Total Formula
« on: April 11, 2018, 09:56:30 PM »
Hi All,

I need to edit the way AbanteCart calculates the total. In my case, I want it to be like this:

Order Total = (Sub Total + Taxes - Account Balance ) + Shipping Fees

By default, the calculation is like this:

Order Total = (Sub Total + Taxes + Shipping Fees - Account Balance )

The first thing I played with was the Order Total Extension where is adjusted the calculation order, however, the shipping fees is always deducted from the account balance which I dont want to.

Can anyone guide which files and what do I edit? I don't mind hardcoding the formula as this is my only use case.

Thank you.

Dear Support,

The menu items such as Login, Account, Cart, Checkout etc. goes missing when my browser zoom is set to above 100%. Please advice what is the reason of such occurrence. Thank you.

Note : Refer image attached

Development Help Needed / Shipping Cost Excluded from Account Balance
« on: April 26, 2017, 03:03:45 AM »
Hi guys,

When I buy using account balance, it deducts from subtotal+taxes+shipping. How do I change the formula so it only deducts from subtotal+taxes only. Using calculation order from Order Total extension is not working. The formula seems to be hard-coded.

Customization help / Modify Calculation Sort Order for Account Balance
« on: April 21, 2017, 06:38:17 AM »
I would like to customize the deduction of account balance. By default, account balance is always deducted from the final total; i.e. SubTotal + Taxes + Shipping.
I want the account balance to be deducted from SubTotal only.
I want the calculation to be like this for example:
Sub Total : 100
Account balance : 50 (based on available balance)
Tax : Lets sat 10% VAT at (100-50) which is 10% from 50 = 5
Shipping : Lets take flat shipping of 10.
This way the final total is : 50 + 5 + 10 = 65

Just to share by default, this is how Abantecart applies account balance
Sub total : 100
Taxes : 10% VAT from 100 = 10
Shipping : 10
Account balance : 50 (based on available balance)
This way the final total is : 100+10+10-50 = 70

How can I achieve the calculation I intend to? Please guide.

In the final checkout phase, there is an order summary displayed in top right. By default, it displays the quantity, and the per unit  price of the product. Instead of such, I want to display the total price = per unit price x no of quantity.

For example below, I am ordering 3x Apron with per unit price at 20, so the total must show 60 and not 20.
For Vest, I am ordering 2x, per unit cost is 32, so the total must show 64 and not 32.

How do I do this change. Please anyone guide me. Thank you.

Support / Vertical Padding between Featured Products List
« on: March 09, 2017, 09:51:51 PM »
Hi, great job abantecart team making this wonderful platform.

I have a quick question, I have quite number of featured product on my main page. The issue is the title/product name of the product is confusing to read as its hard to know its above or below the product. To prevent this confusion, I want to add vertical padding between the list so its much clearer to distinguish the products. Image below indicates where I want to add extra gap/padding. Pls advice how can I do so. Thank you.

General Support / Deduct Account Balance on Sub-Total and not Full Total
« on: February 24, 2017, 03:58:33 AM »
Hi guys,

I noticed the file /storefront/model/total/balance.php has some bug. The sort_order is defaulted and hard coded to 999 which makes the back end setting Extensions > Order Total to not work. In back-end if I change calculation order to 2, the balance is still deducted from Order Total and not Sub Total. Can anyone advice what changes are needed to the code below so that the calculation order that is set is respected in checkout.

Code: [Select]

  AbanteCart, Ideal OpenSource Ecommerce Solution

  Copyright © 2011-2016 Belavier Commerce LLC

  This source file is subject to Open Software License (OSL 3.0)
  License details is bundled with this package in the file LICENSE.txt.
  It is also available at this URL:

   Do not edit or add to this file if you wish to upgrade AbanteCart to newer
   versions in the future. If you wish to customize AbanteCart for your
   needs please refer to for more information.
if (! defined 'DIR_CORE' )) {
header 'Location: static_pages/' );
ModelTotalBalance extends Model {
public function getTotal(&$total_data, &$total, &$taxes, &$cust_data) {

if ($this->config->get('balance_status')) {
$total_data[] = array(
'id'         => 'balance',
'title'      => $this->language->get('text_balance_checkout'),
'text'       => '-'.$this->currency->format($cust_data['used_balance']),
'value'      => - $this->session->data['used_balance'],
'sort_order' => 999,
'total_type' => 'balance'
$total -= $cust_data['used_balance'];

« on: February 13, 2017, 09:51:26 PM »
Hi Abantecart Team,

Thank you so much for the wonderful product. I need a small help.  By default the logout button is under Account>Logout. This is confusing users and they often cannot understand where to find the logout. What I want to do instead is, to bring the logout button out from there and place it beside Checkout. The visual representation is as attached.
Please advice how this change can be done. Thank you.

General Support / Handling Fee on Order Total not Sub-Total
« on: February 07, 2017, 02:54:16 AM »
Hi Guys,

I need a quick help. I have added a handling fees (5%) if customer chooses to pay online using payment gateway instead of the traditional manual bank transfer procedure.

The problem I face is, whenever I create an order and go to checkout, the handling fees is calculated 5% from the sub-total (value before taxes, coupon discount etc).

What I want is that the handling fees of 5% to be calculated at the final  sum, i.e. (Subtotal + All Taxes - Discount) * 5% handling fees

Attached is the storefront image depicting the problem that I face, and also the backend order total sort list. Pls advice. Thank you.

Hi Guys,

AbanteCart cart has been great so far in all aspects. I just need one thing done which I cant figure out how. My customers will have account balance (store credit) in each ones account. But, I want to restrict the usage of the balance to be always 50% of the total cart value. Let see few scenarios below:

Scenario 1 :
Customer Account Balance is : 500
Customer buys 3 products where total is 200 (inclusive all taxes and shipping)
In payment when he checkout : He will be able to pay a max of 100 (50%) using account balance and the remaining 100 using credit card only.

Scenario 2 :
Customer Account Balance is : 50
Customer buys 3 products where total is 200 (inclusive all taxes and shipping)
In payment when he checkout : He will be able to pay a max of 50 (since that's the only balance left) using account balance and the remaining 150 using credit card only.

Scenario 3 :
Customer Account Balance is : 0
Customer buys 3 products where total is 200 (inclusive all taxes and shipping)
In payment when he checkout : He wont be able to use account balance as it is zero and pay the full amount 200 using credit card only.

I am willing to pay certain amount if someone can help me in this. Thank you.

Customization help / Add Storename+Address to Storefront Invoice Template
« on: January 23, 2017, 05:57:49 AM »
Hi Guys,

I would like to tweak the storefront invoice template and email invoice template that my customers see. Actually the regulation in Malaysia is to have the name of the company and the address for tax filing purposes.

There are 3 changes I would like to do:
1) Add my store name, store address and store contact no in the same invoice template, just above the order id.
2) Change the header text 'Order Details' to 'Tax Invoice'
3) Do the same changes as no (1) inside the order confirmation email which is sent to customer.

The 2 screenshot below depicts what I want to achieve.

General Support / Expiry Date to Store Credit
« on: January 23, 2017, 04:19:27 AM »
Hi, I love the store credit option feature built right into AbanteCart Cart. I just want to add a small rule where the credit has an expiry date, lets say after 2 years, un-utilized balance becomes zero. Can this be done with small script change?

Support / Create Password Hash + Salt (importing existing customers)
« on: January 23, 2017, 04:11:16 AM »
Hi Guys,

First of all AbanteCart Cart is just awesome. I'm working on my store now and am stuck at one junction. Basically my store is for existing pre-created customer and there is no new registration allowed.

Now I have the full excel csv of my customer list ready, but I cant figure out how to pre create the password hash + salt and import them together with other customer info.

Basically what I want to do is create a random first time password for each customer, hash it and import it into the system.

I have around 500 customers so creating each and everyone manually is not feasible and practical.

Can anyone quide a smarter way for this. Thank you.

Template Support / Center Align Customer Login DIV
« on: January 22, 2017, 10:32:08 AM »
Hi I have modified my template a little as so to disable registration of customers as I want to only selectively register customer via backend.

I have managed to hide registration div by commenting <div class="col-sm-6 newcustomer"> from /storefront/view/default/template/pages/account/login.tpl

After doing so, now I want to bring the returning (existing) customer login box to center of page, as currently its aligned to right. Can anyone guide how to do so?

I have attached screenshot to show exactly what I mean.

Thank you.

Template Support / Edit the Top Menu bar text "Login or register"
« on: January 22, 2017, 10:20:43 AM »
Hi guys,

I have installed AbanteCart cart and currently running on default template.

I would like to edit the text on top right hand corner which is a link to register/login page. By default it displays "Login or register" and I want to change it to "Login"

Can anyone guide which is the file to edit? I have manged to get the code snippet (refer below) using Chrome Inspect tool, but I just cannot find which file hosts this code snippet.

<ul class="nav navbar-nav main_menu" id="customer_menu_top">
      <li><a..href="hxxp://;token=csscscs">Login or register</a></li>

Pages: [1]

Powered by SMFPacks Social Login Mod