News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problem using discount coupon - Not reflect on final price

Started by rheo, July 15, 2013, 07:49:29 AM

Previous topic - Next topic

rheo

I'm using Virtuemart 2.0.12f
Joomla 2.5.7

I have tried using the discount coupon.
When i enter the coupon it shows up in the cart .. and the discount amount is shown

Product Prices result also is the correct amount.

However right at the bottom, the Total price does not reflect the discounted amount...

Any ideas how do i check this code? Which file do i look at?? without upgrading my version..



rheo

Any ideas anyone???

I've found out its all done under calculationh.php however i'm not sure how to edit to add in the coupon discount value to the total price..   


jenkinhill

Suggest you update your VM version, as this was fixed a few versions ago. We are currently at 2.0.20a
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rheo

I had problem updating and its too much of a trouble as I only need the coupon discount to work... I dont need anything else done..

Anyways... I did a hack on the calculationh.php based on the latest Virtuemart version and just replace that file and it works perfectly now...

I downloaded the latest version and used the calculationh.php file .. just edited one line of it and replaced this file..
Changed
+ $this->_cartPrices['salesPriceCoupon'];

To
- $this->_cartPrices['salesPriceCoupon'];


$this->_cartPrices['billTotal'] = $this->_cartPrices['salesPriceShipment'] + $this->_cartPrices['salesPricePayment'] + $this->_cartPrices['withTax'] - $this->_cartPrices['salesPriceCoupon'];


So it subtracts the coupon value from the final price..

jenkinhill

We do not support editing the core code but if you are happy to do it and have not introduced another bug then OK.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rheo

Ic,

okay thanks...

For the upgrading... I have problems because i set my folder permissions 755, and ive tested installing on a test site, the folder permissions prevent me from doing a proper installation.. Its pretty difficult as there are so many files..


jenkinhill

755 for directories and 644 for files is exactly what is recommended for a Joomla site (unless read only, like config files, which would usually be 444). Unless you have a badly set up server that should be the permissions used by default and will not prevent any updates using the Joomla extensions installer..
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rheo

Hi,
Unfortunately I do not control the server, its setup by a hosting company which I pay yearly. But thanks for the information. Will contact the hosting company to check if they can rectify this issue.