Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Invoices show the total, followed by the discount. It never shows the total amount paid.

 

e.g. (copy and paste from an actual order invoice)

 

Sub-Total: $7.20

Shipping: $2.30

Total: $9.50

Discount Coupons:coupon123: -$0.72

 

I can edit this order to move the discount up, but it would be esier to make CCVG do it properly. I'm just not sure how.

Posted

I think this is to do with the "orders_total" table. It contains the 4 entries listed above, with a sort_order of 9 for Discount.

 

I'm guessing it needs another line there somewhere, but not sure if this is a "bug" or something I have missed when installing :(

Posted
I think this is to do with the "orders_total" table. It contains the 4 entries listed above, with a sort_order of 9 for Discount.

 

I'm guessing it needs another line there somewhere, but not sure if this is a "bug" or something I have missed when installing :(

 

I did not deploy CCGV, but developed a coupon system by myself. I changed the code for the part you mentioned.

 

$order->info['subtotal'] ------- products total

 

$order->info['total'] ------- Grand total

 

Just add a line by yourself!

Posted

Bruce,

 

Could you tell me roughly where/when to add it? It all seems quite complicated and I'm not sure where to put it!

 

Thanks for the hint though! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...