Zen Cart Logo

Gift Certificate Help Please

Sticky

Views: 172,563

Results 301 to 309 of 309
1 Nov 2019, 1:25 PM
#301
webangel avatar

webangel

New Zenner

Join Date:
Oct 2019
Location:
London, UK
Posts:
22
Plugin Contributions:
0

Gift Certificate Help Please

I have followed your instructions from top page, tested this all worked except customer (me) received the email and it did not contain a redemption code. I had released the GC. I checked the GC queue sent and there was no information there with redemption code. Is there some other way to get this redemption code? I am not familiar with PHP. (only html & css!) I do not have a program to edit php.

*I have read through several, (not all) pages and not seen this question. *

1 Nov 2019, 3:03 PM
#302
webangel avatar

webangel

New Zenner

Join Date:
Oct 2019
Location:
London, UK
Posts:
22
Plugin Contributions:
0

Re: Gift Certificate Help Please

Also, is there a way to add an expiry date if the Certificate is not used in X number of days?

18 Dec 2023, 4:48 PM
#303
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Gift Certificate Help Please

Running ZC version 1.5.7c

Most times a gift card balance isn't used immediately and the customer looses or deletes the email containing the redemption code!

?? Question:
Is there any way (for an admin) to enter a gift card dollar amount directly into a customers account? Is there a Plugin??

19 Dec 2023, 6:26 PM
#304
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Gift Certificate Help Please

zapme1:

Running ZC version 1.5.7c

Most times a gift card balance isn't used immediately and the customer looses or deletes the email containing the redemption code!

?? Question:
Is there any way (for an admin) to enter a gift card dollar amount directly into a customers account? Is there a Plugin??

<?php
if (!empty($_POST['credit-submit'])) {
        // update coupon_gv_customer table
        $customer_id = $_POST['customers_id'];
        $credit = 0;
        $credit_check = $db->Execute('SELECT customer_id, amount FROM ' . TABLE_COUPON_GV_CUSTOMER . ' WHERE customer_id =  "'. $customer_id . '"');
              if($credit_check->RecordCount() < 1) {
                  $sql_data_array = array('customer_id' => $customer_id, 'amount' => $_POST['amount']);
        zen_db_perform(TABLE_COUPON_GV_CUSTOMER, $sql_data_array);
              } else {
                      echo $credit_check->fields['amount'];
                      $credit = $_POST['amount'] + $credit_check->fields['amount'];
                      $credit_update = $db->Execute('UPDATE ' . TABLE_COUPON_GV_CUSTOMER . ' SET amount = "' . $credit . '" WHERE customer_id = "' . $customer_id . '"');
              } 
?>

<form name="credit" method="post">      
            <div align="center"><strong>Issue a Credit</div><div align="center" id="customers_id">Order #: <?php echo zen_draw_pull_down_menu('customers_id', $credit_array);?><div align="center">Do not give credit for tax or delivery charges<br>$<input id="amount" type="text" name="amount" maxlength="5" placeholder="XX.XX" style="width: 50px;"/><br><input type="submit" name="credit-submit" value="Issue Credit"></div>
</form>

I use this on our website. My credit array is extensive though. You could change that to a simple input text with the customer id. This places a gift certificate directly into their account without it having to come from anywhere. Down side is you better trust anyone on your admin page because it doesn't restrict and doesn't allow you to monitor it other than watching what orders have the gift certificate.

22 Dec 2023, 5:01 PM
#305
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Gift Certificate Help Please

southshorepizza:

<?php if (!empty($_POST['credit-submit'])) { // update coupon_gv_customer table $customer_id = $_POST['customers_id']; $credit = 0; $credit_check = $db->Execute('SELECT customer_id, amount FROM ' . TABLE_COUPON_GV_CUSTOMER . ' WHERE customer_id = "'. $customer_id . '"'); if($credit_check->RecordCount() < 1) { $sql_data_array = array('customer_id' => $customer_id, 'amount' => $_POST['amount']); zen_db_perform(TABLE_COUPON_GV_CUSTOMER, $sql_data_array); } else { echo $credit_check->fields['amount']; $credit = $_POST['amount'] + $credit_check->fields['amount']; $credit_update = $db->Execute('UPDATE ' . TABLE_COUPON_GV_CUSTOMER . ' SET amount = "' . $credit . '" WHERE customer_id = "' . $customer_id . '"'); } ?> <form name="credit" method="post"> <div align="center"><strong>Issue a Credit</div><div align="center" id="customers_id">Order #: <?php echo zen_draw_pull_down_menu('customers_id', $credit_array);?><div align="center">Do not give credit for tax or delivery charges<br>$<input id="amount" type="text" name="amount" maxlength="5" placeholder="XX.XX" style="width: 50px;"/><br><input type="submit" name="credit-submit" value="Issue Credit"></div> </form> ``` > > I use this on our website. My credit array is extensive though. You could change that to a simple input text with the customer id. This places a gift certificate directly into their account without it having to come from anywhere. Down side is you better trust anyone on your admin page because it doesn't restrict and doesn't allow you to monitor it other than watching what orders have the gift certificate.

Thanks for the reply southshorepizza! Maybe I can give this a try. I was hoping for a ready-made MOD.... LOL

Where did you put this code?

22 Dec 2023, 9:04 PM
#306
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Gift Certificate Help Please

I worked it into admin/index_dashboard.php on V1.5.8. I don’t think V1.5.7 has that file though if I remember correctly. If you don’t have that file you can put in into admin/index.php.

Are you able to modify what I have posted to attach to customer file or do you need help with that also so it is more plug and play. 😅

24 Dec 2023, 9:41 PM
#307
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Gift Certificate Help Please

southshorepizza:

I worked it into admin/index_dashboard.php on V1.5.8. I don’t think V1.5.7 has that file though if I remember correctly. If you don’t have that file you can put in into admin/index.php.

Are you able to modify what I have posted to attach to customer file or do you need help with that also so it is more plug and play. ������

I do appreciate your help!
I'm away until just before New Years, so I will give it a try when I get back.

I think I can modify what you gave me here, but I may pick your brain if I run into any obstacles (if you don't mind...)

Happy Holidays & thanks once again! :smile:

30 Dec 2023, 6:43 PM
#308
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Gift Certificate Help Please

southshorepizza:

I worked it into admin/index_dashboard.php on V1.5.8. I don’t think V1.5.7 has that file though if I remember correctly. If you don’t have that file you can put in into admin/index.php.

Are you able to modify what I have posted to attach to customer file or do you need help with that also so it is more plug and play. ������

Well, I wasn't very successful! :(
I can't seem to get the customer list in my dropdown!
I'm needing to get a list of "first & last names" in the dropdown..... (maybe customer ID as well)

Would you be able to give me a bit of help with this?
Much appreciated!

12 Jan 2024, 6:16 PM
#309
zapme1 avatar

zapme1

Zen Follower

Join Date:
Jan 2011
Location:
Ohio
Posts:
114
Plugin Contributions:
0

Re: Gift Certificate Help Please

Yea, ok, thanks anyway....