
Originally Posted by
apogeerockets
i am running 1.3.9h and cannot get it to work.
it's not super important to our shop, but will be useful, so if i figure anything out i'll report back.
alright, i got it figured out.
to get the "insert" thing to work, you have to change a couple of things, but it's easy.
on line 226 of admin/gv_admin_redemption_edit.php change
to
PHP Code:
case 'insertnew':
and change line 277 from
PHP Code:
$contents[] = array('align' => 'center', 'text' =>'<a href="'.zen_href_link(FILENAME_GV_ADMIN_REDEMPTION_EDIT,'action=insert' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''),'NONSSL').'">'.zen_image_button('button_insert.gif','Insert ' . TEXT_GIFT_VOUCHER) .'</a>' );
to
PHP Code:
$contents[] = array('align' => 'center', 'text' =>'<a href="'.zen_href_link(FILENAME_GV_ADMIN_REDEMPTION_EDIT,'action=insertnew' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''),'NONSSL').'">'.zen_image_button('button_insert.gif','Insert ' . TEXT_GIFT_VOUCHER) .'</a>' );
basically, it changes out the "insert" action to the "insertnew" action. for some reason "insert" is causing the problems.