Hi,
What you are asking is a custom modification (not the second one, which is a bug... but the first one). But i am going to provide you a solution to solve your first inquiry as well.
Lets solve the 2. problem first, which looks like a bug of DarkMart.
Open this PHP file:
/templates/flexible_darkmart/html/com_virtuemat/productdetails/default.php
and look for this line:
$("#productPrice'.$this->product->virtuemart_product_id.' div.PricediscountAmount span.PricediscountAmount").append("<span class='.'FlexiblePercentage'.'> ('.$percentage.'%)</span>");
and replace it with this:
$("#productPrice'.$this->product->virtuemart_product_id.' div.PricediscountAmount").append("<span class='.'FlexiblePercentage'.'> ('.$percentage.'%)</span>");
THE CHANGE: remove the
span.PricediscountAmount
your 2nd problem will go away.
Your 1st inquiry is little complex.
Again, within the same PHP file:
/templates/flexible_darkmart/html/com_virtuemat/productdetails/default.php
and within the same line
$("#productPrice'.$this->product->virtuemart_product_id.' div.PricediscountAmount span.PricediscountAmount").append("<span class='.'FlexiblePercentage'.'> ('.$percentage.'%)</span>");
but this time replace it with this:
$("#productPrice'.$this->product->virtuemart_product_id.' div.PricediscountAmount").parent().append("<span class='.'FlexiblePercentage'.'> ('.$percentage.'%)</span>");
THE CHANGE: add
.parent() - instead of copy-pasting from here, i suggest you to make the modification by adding the .parent()
(do the same code changes in the category browse page as well -
/templates/flexible_darkmart/html/com_virtuemat/categort/default.php, I mean; remove
span.PricediscountAmount and add
.parent())
now open this CSS file:
/templates/flexible_darkmart/css/virtuemart.css
Add these CSS rule:
.PricediscountAmount {
display:none !important;
}
.FlexiblePercentage {
color: #ff6d6d;
font-size: 12px;
}
And you will get this look:
Attachment ScreenShot2013-10-17at4.52.48AM.png not found
Regards,
Support & Development