Zen Cart Logo
Forums / General Questions / New Signup Discount Coupon - by country

New Signup Discount Coupon - by country

Locked

Views: 1,552

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
27 Jun 2009, 4:34 PM
#1
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

New Signup Discount Coupon - by country

Hi

I have created a discount coupon to give a 10% discount on signup.

I have restricted discount coupon this to all new customers from France only - I did this when creating the coupon in admin - gift certificates/coupons - coupon admin.

I then selected this coupon for signup coupon in admin - configuration - GV coupons

BUT all customers from wherever in the world get details of this signup coupon in their welcome email!

How do I stop all other customers (non France) from receiving details of this signup coupon in their welcome emails. I had hoped that restricting it to just France when creating the coupon would have automatically only added this offer to cusomers signing up from France (those using specific 'France' drop down country name).

Am I missing something (as usual) or is this not possible?

Many thanks.

Rob

28 Jun 2009, 2:50 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: New Signup Discount Coupon - by country

This would need to be customized to check the restriction for the zone as that is not built into Zen Cart on the Welcome Discount Coupon ...

It can, however, be customized to do this extra check ...

Have you got your coder hat on? :smartalec:

28 Jun 2009, 5:34 PM
#3
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: New Signup Discount Coupon - by country

I do indeed have my coder hat on, just need a little help from my friend...........

Rob

29 Jun 2009, 1:25 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: New Signup Discount Coupon - by country

Look in the module:
/includes/modules/create_account.php

The zone info is set around line 329:

    $_SESSION['customer_first_name'] = $firstname;
    $_SESSION['customer_default_address_id'] = $address_id;
    $_SESSION['customer_country_id'] = $country;
    $_SESSION['customer_zone_id'] = $zone_id;
    $_SESSION['customers_authorization'] = $customers_authorization;

The coupon is sent around line 361:

    if (NEW_SIGNUP_DISCOUNT_COUPON != '' and NEW_SIGNUP_DISCOUNT_COUPON != '0') {

you need to add the additional criteria for the zone at this point ...

29 Jun 2009, 5:47 PM
#5
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: New Signup Discount Coupon - by country

Linda McGrath

You are a tease (in the nicest sense of the word of course). I have not got that big a coder's hat. I thought you might give me more code......... lol.

I will need to try to understand what to do.

Thanks for the pointer though.

Rob

29 Jun 2009, 10:58 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: New Signup Discount Coupon - by country

I will have to break down and fool with the code to give you specific details on the changes for this ... :cool:

30 Jun 2009, 8:18 PM
#7
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: New Signup Discount Coupon - by country

Hi Linda

That would be above and beyond and gratefully received - thank you.

Rob

30 Jul 2009, 10:28 PM
#8
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: New Signup Discount Coupon - by country

Hello Linda

Have you managed to have time to look at this at all. No problems if not as this level of support is indeed above and beyond - just thought I would ask though. :)

Thank you

Rob

31 Jul 2009, 4:36 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: New Signup Discount Coupon - by country

Well ... umm ... no ... :blink:

But it is on the list of things to do ... :cool:

31 Jul 2009, 7:14 PM
#10
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: New Signup Discount Coupon - by country

LOL

Yeah I have one of those lists too.

No probs and thanks.

Rob