Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

How to remove discount sub and change margins??
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: How to remove discount sub and change margins??

How to remove discount sub and change margins?? 12 years, 3 months ago #31820

Hi,

I have tried to figure this out but I can´t find a way to remove the "discount subtotal" coming from the {items} tag..
I also don´t know how to change the default margin between each product line in the {items} tag.

I have attached a picture showing in detail what I mean.

I hope someone can help me with this.


Brgds
Attachments:
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 3 months ago #31873

  • pama
  • OFFLINE
  • Posts: 489
Hello. As for "discount row": that is shown when there is some order discount or fee.
Ir can be disabled completly my modifying VM Invouce source code (I can write here procedure if you want).

However, it is very strange the discount is there in first place, because the subtoal doesn't include that discount.
Did you modify the order someway? Remember to click on "refresh & recalculate" after you edit order. What version of VirtueMart are you using?

As for margin between rows: They are caused by empty <div> where are product attributes shown. That can be resolved by going to General Config->Technical Config->Remove Empty Tags and enter "div".
ARTIO Support Team
Last Edit: 12 years, 3 months ago by pama.
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 3 months ago #31890

Thanks pama,

Yea, I don´t use the discounts in VM the way you normally do. In my webshop "prices without discount" = "normal market price" and "final sales price" = "price minus discount".

This is also why I don´t want to show discounts subtotal on the invoice. I do want to show coupon discounts, though, so its only the "normal price discount subtotal" - line that I want to remove. I can see that coupon discounts is shown on its own line, so that shouldn´t be a problem.

It would be great if you can show me how to modify the source code in order to remove/disable the price-discount subtotal.

Brgds
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 3 months ago #31894

  • pama
  • OFFLINE
  • Posts: 489
Open file administrator/components/com_vmivnoice/helpers/invoicehtml.php

find line cca 1243 and comment two lines from:

if ($couponLine && !$this->params->get('coupon_extended')){ //add "simple" coupon line
$footerLines[] = $couponLine;

to

// if ($couponLine && !$this->params->get('coupon_extended')){ //add "simple" coupon line
// $footerLines[] = $couponLine;

However, it may be possible in next release this file will be rewritten, so you will have to make this modification again.

EDIT: However, this can be dangerous if combining with "payment fee/discount", because this is written into same database field.
(See Invoice Items Configuration -> Payment Discount/Fee Source). You can migrate to VirtueMart 2 which is more variable related to prices.
ARTIO Support Team
Last Edit: 12 years, 3 months ago by pama.
The topic has been locked.
  • Page:
  • 1
User Login Empty