Forums / Upgrading from 1.3.x to 1.3.9 / Coupon not showing correct value

Coupon not showing correct value

Locked

Views: 9,103

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
9 Jan 2007, 2:54 PM
#1
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Coupon not showing correct value

Hi team,

I have just finished an upgrade to my zencart from 1.3.5 to 1.3.7.
When I looked at my coupon values, I noticed that the value is expressed perhaps in US dollars, while my shop is displayed in AUS dollars. Here is an example for a what is supposed to be a AUS $5.00 coupon. My default curency is set to AUS:

Coupon Name :: Welcome to Ineke's Fashions
Coupon Amount :: $6.55
Start Date :: 07/01/2006
End Date :: 17/03/2006
Uses per Coupon :: Unlimited
Uses per Customer :: 1
Valid Product List :: NONE
Valid Categories List :: NONE
Date Created :: 10/01/2007
Date Modified :: 10/01/2007

Coupon Zone Restriction: :: 0

Thanks,

Goshawk

Time is but an illusion, there is only "now"!

9 Jan 2007, 3:00 PM
#2
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

Well this is interesting too, I just went back to look at my default currencies, and though AUS was selected as default, the US dollar was still displaying a $1.00 value, and the AUS $ had a higher value.

I reset the AUS to the default value, and now after updating my currencies, I cannot update them anymore. Now they all display $0.00, although I received a succesfull update from xe.com?????

So the above seems to be related to a currency problem, and not to the Coupon.

Time is but an illusion, there is only "now"!

9 Jan 2007, 3:05 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon not showing correct value

Make sure that you then set AUD to have a 1.00 value

Then check the new feature in the Configuration ... My Store ...

Currency Conversion Ratio
When auto-updating currencies, what "uplift" ratio should be used to calculate the exchange rate used by your store?
ie: the bank rate is obtained from the currency-exchange servers; how much extra do you want to charge in order to make up the difference between the bank rate and the consumer rate?

Default: 1.05
This will cause the published bank rate to be multiplied by 1.05 to set the currency rates in your store.

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Jan 2007, 3:07 PM
#4
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

I deleted all but the default currencie, and did an update, after which the AUS returned a value of $0.00.
I reinstalled the USD, and did another update, after which both returned a $0.00 value.
I have now only installed the AUS, but would need to have a fix soon, so I can reinstal the other currencies.

Goshawk

Time is but an illusion, there is only "now"!

9 Jan 2007, 3:08 PM
#5
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

Ajeh:

Make sure that you then set AUD to have a 1.00 value

Then check the new feature in the Configuration ... My Store ...

Thanks for your quick reply AJEY, I did set the value of the AUD to 1.00 before I updated again, but after the update both returned a 0.00 value.

I am puzzled.

Goshawk

Time is but an illusion, there is only "now"!

9 Jan 2007, 3:11 PM
#6
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

Just tried it again to be sure, and here is a fault that was returned by zencart:

Error cURL communication ERROR: Received error code 403 from proxy
Warning Warning: The primary exchange rate server (oanda) failed for Australian Dollar (AUD) - trying the secondary exchange rate server.
Error cURL communication ERROR: Received error code 403 from proxy
Success The exchange rate for Australian Dollar (AUD) was updated successfully via xe.

My proxy is set as per recommendations for GoDaddy, and my currency is padded by 5% (set to 1.05)

Goshawk

Time is but an illusion, there is only "now"!

9 Jan 2007, 4:50 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Coupon not showing correct value

Error 403 means "forbidden" ... as in .. you're being denied access to the attempted address.
It's possible that the exchange-rate servers are rejecting multiple repeated queries from the single proxy godaddy server.
It's possible that the so-called "success" message is displayed simply because there wasn't an HTML error, and isn't based on finding an actual currency value.

Workaround: set the exchange rate to 1.00000 manually for your default currency.
Then manually set the other rates as needed.
You can use your browser and go to xe.com or oanda.com as a reference point for the other rates if you like.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jan 2007, 11:55 PM
#8
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

Never in the past have I received this error, and my settings have not changed.
I am still able to make the same call without any problems from my old store.

Time is but an illusion, there is only "now"!

11 Jan 2007, 1:25 PM
#9
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Coupon not showing correct value

I have reinstalled my ZenCart, as an upgrade to my excisting store, and everything is ok now. Thanks Team.

Time is but an illusion, there is only "now"!