X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   At long last - edit Gift Certificate numbers and values from your admin panel (https://forum.x-cart.com/showthread.php?t=48288)

MAPerformance Admin 12-02-2014 06:19 AM

Re: At long last - edit Gift Certificate numbers and values from your admin panel
 
I actually ran into an issue I didn't notice after the initial installation. When you click the link ot edit the GC code/amounts, it jumps you to page one. If the GC you're editing is not on page one, when you click the page number link to go to that page, it turns off the editing function. You need to copy/paste the URL string "&page=8" (or whatever page you need) onto the end of the URL (e.g. "/admin/giftcerts.php?mode=edit_values&page=8". Is there a way to fix this so the page string stays on the URL?

mcanitano 12-03-2014 06:32 AM

Re: At long last - edit Gift Certificate numbers and values from your admin panel
 
Quote:

Originally Posted by MAPerformance Admin
I actually ran into an issue I didn't notice after the initial installation. When you click the link ot edit the GC code/amounts, it jumps you to page one. If the GC you're editing is not on page one, when you click the page number link to go to that page, it turns off the editing function. You need to copy/paste the URL string "&page=8" (or whatever page you need) onto the end of the URL (e.g. "/admin/giftcerts.php?mode=edit_values&page=8". Is there a way to fix this so the page string stays on the URL?



In the {if}{else} on gc_admin.tpl, we changed our HREF to:
Code:

<a href="giftcerts.php?page={$navigation_page}">
and
Code:

<a href="giftcerts.php?mode=edit_values&page={$navigation_page}">

MAPerformance Admin 12-03-2014 07:03 AM

Re: At long last - edit Gift Certificate numbers and values from your admin panel
 
Worked like a charm, thanks!


All times are GMT -8. The time now is 06:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.