Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

About robertwhitis

  • Birthday 06/09/1984

Profile Information

  1. robertwhitis

    Credit Class & Gift Vouchers (CCGV) for 2.3.1

    For those that need a gv_balance.php file, I suggest you edit /catalog/includes/filenames.php and add a define for FILENAME_GV_BALANCE, gv_balance.php first. Here is the code I used: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?> - Gift Vouchers</h1> <?php if ($messageStack->size('account') > 0) { echo $messageStack->output('account'); } ?> <div class="contentContainer"> <b>Gift Voucher Balance</b> <div class="contentText"> <?php //CCGV BEGIN if (tep_session_is_registered('customer_id')) { $gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $gv_result = tep_db_fetch_array($gv_query); ?> <div class="contentText"> <ul class="accountLinkList"> <li><span class="ui-icon ui-icon-star accountLinkListEntry"></span><?php echo 'Gift Voucher Balance: '; ?> <?php echo $currencies->format($gv_result['amount']); ?></li> </ul> <ul class="accountLinkList"> <li><span class="ui-icon ui-icon-mail-closed accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_GV_SEND, '', 'SSL') . '">' . 'Share Gift Voucher' . '</a>'; ?></li> </ul> <ul class="accountLinkList"> <li><span class="ui-icon ui-icon-help accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'SSL') . '">' . 'Gift Voucher FAQ' . '</a>'; ?></li> </ul> </div> <?php } // CCGV END ?> </div> </div> <div style="clear: both;"></div> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Don't hang me out to dry for putting each "li" it's own "ul"...for some reason, it was indenting each "li" further and further, didn't feel like spending any time figuring out why, so there's a little extra spacing between each "li" - no biggie. Robert
  2. robertwhitis

    Credit Class & Gift Vouchers (CCGV) for 2.3.1

    I have just noticed that if you go to the GV FAQ page, and click on "check balance" - or go to the account page and click check balance, the filename linked to does not exist. Also, in the case of the link on the account page, the link is created using a constant which isn't defined (checked filenames.php modify instructions to verify). So, basically the file, /catalog/gv_balance.php was left off the addon altogether. If the author has this file, it'd be great to post an updated version that fixes these things. Also, on the send store credit page, it doesn't display how much store credit you have. So if you want to share your store credit by passing it on to someone else, it'd make sense to display how much you have to share on that page, just a thought. Off to create my own gv_balance.php file. Robert
  3. Also, in the /admin/slider.php file, you need to edit the action URL for the delete forms as well (or you'll be logged out when you try to delete an image) as follows: echo '<form action="'.tep_href_link('slider.php').'" method="post"><input type="hidden" name="deleted" value="true"><input type="hidden" name="id" value="'. $row["id"] . '"><input type="submit" value="Delete"></form><br />';
  4. The fix that germ listed is necessary, however, also in the file /admin/slider.php, you need to use tep_href_link for slider.php in the form action element as follows: <form action="<?php echo tep_href_link('slider.php'); ?>" method="post" enctype="multipart/form-data">
  5. Thanks germ, that seems to have affected it somewhat, however, it is still logging me out when I attempt an image upload.
  6. I'm running v2.3.3. I downloaded this contribution: http://addons.oscommerce.com/info/8727 I've followed all of the instructions properly. Okay, so here is where it all falls apart. I'm browsing the admin section, and decide to visit the "Sliders" admin area under "Configuration"... When I click on "Sliders", I am logged out, and a new session ID is generated (login.php?osCAdminID=<new session id here>) When I log back in, I land on the "Sliders" admin panel (with same session ID shown on login page). If I then try to upload a slider, I'm logged out, and a new session ID is generated (shown on the login page). So there you have it - when I try to navigate to the slider settings page, I'm logged out, and when I try to upload an image, I'm logged out. I have no other issues with this happening anywhere else on the store or any other session issues. My store is running perfectly fine. I installed this addon, and this issue only arises when accessing or using the particular admin panel for the addon. Any help would be appreciated! Cordially, Robert Whitis
  7. robertwhitis

    Credit Class & Gift Vouchers (CCGV) for 2.3.1

    As it turns out, the reason for shipping being skipped is pretty elementary - if you have no products in the cart that are not virtual (e.g. also, check that if a product is not virtual that it has a weight specified) - it will, logically, skip shipping. It was skipping shipping even with physical products in the cart for me, until I looked at the product and realized it had no shipping weight assigned. Once I assigned a shipping weight to the product in my cart, the shipping page showed up just fine. Now I am working on the end of file error in checkout_confirmation, and I have just noticed that none of the payment methods installed are showing up on the checkout_payment page, so I'm going to take a wild stab and say that the lack of payment information being provided is the reason for the failure of the checkout_confirmation page. More updates to come, hopefully.
  8. robertwhitis

    Credit Class & Gift Vouchers (CCGV) for 2.3.1

    I'm on 2.3.3. @@omat: I'm also experiencing this issue of the checkout_shipping step being skipped, whether there is a GV/Coupon in the cart or not, just all of a sudden, no shipping page, and if you try to go there directly, you are redirected to checkout_payment. If anyone has a solution for this problem, it would be appreciated! @@MountainMan: I'm also experiencing this issue with the language files not picking up everything, but I simply replaced the calls that weren't working with hard coded text. The two instances you mentioned are the only two instances I have seen. Also, in the current state, if I go to checkout (it auto skips shipping w/o selecting a method), if I click continue, checkout_confirmation gives me an unexpected end of file PHP error. I've used a lot of osCommerce and Zen Cart modules in my time, I've followed the directions perfectly, and made sense of most of the mis-information in the directions, but I'm stumped at the moment. If I figure out answers to this shipping skip / end of file error, I'll post my findings.
  9. robertwhitis

    [Contribution] STS v4

    Hello, I am working on a project for a store that has been online for many years that is using version 2.2-MS2, not 2.2-MS2 milestone 2. I wanted to recreate their installation on my local machine using xampp, which is using the latest version of PHP. I did a fresh install of 2.2-MS2, installed the latest version of STS, and then performed a few updates to fix problems with deprecated functions. I installed STS by copying / pasting / overwriting files, using the "Files for MS2" folder of the STS download. Then, I performed a few fixes to clean up error messages I was receiving because I am using the latest version of PHP and 2.2-MS2 uses deprecated functions. I updated the eregi() deprecated problems via: http://forums.oscommerce.com/topic/341025-function-eregi-is-deprecated/ I turned off deprecated error reporting via: http://forums.oscommerce.com/topic/343898-deprecated-function-session-is-registered-is-deprecated/ I addressed a fatal error message via: http://forums.oscommerce.com/topic/166123-fatal-error-cannot-re-assign-this/ After doing all of this, I went into the admin area, selected modules, selected STS, and clicked the install button for the Default entry. Nothing happened. I then selected Index, Popup image, and Product info, and clicked install for each of them, which worked perfectly fine. For some reason, clicking install for the Default entry is not working. I do not receive any error messages, the page simply refreshes and nothing happens, but as I said, clicking install for Index, Popup image, and Product info all installed just fine, and I'm able to edit them with no errors. I went back and removed the ~E_DEPRECATED portion from both application_top.php files to turn back on deprecated error reporting, and doing so, clicking the install button resulted in a "Cannot modify header information - headers already sent by (output started at C:\xampplite\htdocs\oscommerce\catalog\admin\includes\functions\sessions.php:75) in C:\xampplite\htdocs\oscommerce\catalog\admin\includes\functions\general.php on line 18" error message, and when I add the ~E_DEPRECATED portion back to the two application_top.php files to turn off deprecated error reporting, clicking install results in no error messages, the page simply refreshes and nothing happens. Help!