Forums / Templates, Stylesheets, Page Layout / Only show gift certificate option on payment page if customer has a gift certificate

Only show gift certificate option on payment page if customer has a gift certificate

Views: 3,636

Results 21 to 26 of 26
21 Jul 2014, 6:33 PM
#21
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Only show gift certificate option on payment page if customer has a gift certificate

Ajeh:

That would be a problem as there isn't a directory:
/includes/classes/modules/order_total

nor a directory:
/includes/classes/modules

Order Total modules are in the directory:
/includes/modules/order_total

You may wish to compare your files on both your computer and server with a clean zip of Zen Cart v1.5, as it looks like you have your files/directories a bit out of wack ... :blink:

The right files are there it seems to be duplicated also in a folder that should not be existing, sorry for the confusion i've now incorporated the edits in the right file and this is what i see on the payment page now (i assume it is for debugging purposes)
When customer has 0 balance: ot_gv Customer Balance: 0
When customer has a balance: ot_gv Customer Balance: 2.0000

21 Jul 2014, 6:37 PM
#22
ajeh avatar

ajeh

Oba-san

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

Re: Only show gift certificate option on payment page if customer has a gift certificate

And when the customer has a 0 balance, does the GV disappear?

And when the customer has a balance does the GV only accept the amount to be spent and not show the input for the GV redeem?

And if so, is this what you were wanting it to do?

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!

21 Jul 2014, 6:44 PM
#23
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Only show gift certificate option on payment page if customer has a gift certificate

Ajeh:

And when the customer has a 0 balance, does the GV disappear?** Yes**

And when the customer has a balance does the GV only accept the amount to be spent and not show the input for the GV redeem? Three's still the field to enter amount

And if so, is this what you were wanting it to do? Mainly the first thing

21 Jul 2014, 6:47 PM
#24
ajeh avatar

ajeh

Oba-san

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

Re: Only show gift certificate option on payment page if customer has a gift certificate

If you comment out the line:

[B]// [/B]echo 'ot_gv Customer Balance: ' . $this->user_has_gv_account($_SESSION['customer_id']) . '<br>';

then you will not see that any more ...

Is this now working the way you want it for customers with and without a balance?

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!

21 Jul 2014, 6:54 PM
#25
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Only show gift certificate option on payment page if customer has a gift certificate

Perfect thanks so much!!

21 Jul 2014, 7:03 PM
#26
ajeh avatar

ajeh

Oba-san

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

Re: Only show gift certificate option on payment page if customer has a gift certificate

Thanks for the update that this is now working the way you need it to ... :smile:

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!