Jump to content

Voland

Members
  • Content count

    152
  • Joined

  • Last visited

Everything posted by Voland

  1. Voland

    ### POINTS AND REWARDS MODULE V1.00 ###

    That's exactly the thing. If you have more then one payment modules enabled then once the customer gets to the checkout_payment.php those payment options are not selected by default; therefore if they have enough Points to cover Total and chose to use the Points they get passed to checkout_confirmation.php no problem. But if one of those payments is CC and it is selected (either manually or for any reason automatically) and no CC info is entered then they get the CC error message. That is also obviosly the case if you have only CC as a single payment option enabled, becasue then there is no radio button and as far as the system is concerend it is selected by default. I was trying to figure out where it is that the single payment option is made selected by default but I can't so far. However I have mannaged to bring the radio button to the single payment option but again it comes up already selected. Still working on it to come up with some sort of acceptable fix. It's wilderness for me out there as I am not at all a programmer. :o
  2. Voland

    ### POINTS AND REWARDS MODULE V1.00 ###

    Would like to return back to Tina's issue, quoted bellow. Indeed when using a single CC payment option or when the CC radio button is checked the CC error mesage is received even though Points very well cover the Total. Was wondering if you (Tina) or anyone else found a fix :). Arkady.
  3. Voland

    Wishlist 3.0 Support Thread

    Good to know lol. I dont feel all alone. Should I upload this fix in the Contributions section? Or will you do it on your next update? :) Onece again Thanks so much.
  4. Voland

    Wishlist 3.0 Support Thread

    AH! Beautiful! Works liek a charm. Thank you! Can you explain mildly what the problem was? Is it native to my site or will all the people with 3.5d experience this?
  5. Voland

    Wishlist 3.0 Support Thread

    Nope same behaivior. Click the Add to Cart button > redirect to index.php > and nothing in cart. And I also fixed the extra <form> thing. Indeed I had an extra unclosed form in my header, good you noticed :). http://www.mindphantom.com/shop/wishlist_p...php?public_id=3
  6. Voland

    Wishlist 3.0 Support Thread

    <?php /* $Id: wishlist.php,v 3.0 2005/04/20 Dennis Blake osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST); if(!isset($_GET['public_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } $public_id = $_GET['public_id']; /******************************************************************* ****************** QUERY CUSTOMER INFO FROM ID ********************* *******************************************************************/ $customer_query = tep_db_query("select customers_firstname from " . TABLE_CUSTOMERS . " where customers_id = '" . $public_id . "'"); $customer = tep_db_fetch_array($customer_query); /******************************************************************* ****************** ADD PRODUCT TO SHOPPING CART ******************** *******************************************************************/ if (isset($HTTP_POST_VARS['add_wishprod'])) { if(isset($HTTP_POST_VARS['add_prod_x'])) { foreach ($HTTP_POST_VARS['add_wishprod'] as $value) { $product_id = tep_get_prid($value); $cart->add_cart($product_id, $cart->get_quantity(tep_get_uprid($product_id, $HTTP_POST_VARS['id'][$value]))+1, $HTTP_POST_VARS['id'][$value]); } tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } $breadcrumb->add(NAVBAR_TITLE_WISHLIST, tep_href_link(FILENAME_WISHLIST, '', 'SSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"> <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table> </td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('wishlist_form', tep_href_link(FILENAME_WISHLIST_PUBLIC)); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo $customer['customers_firstname'] . HEADING_TITLE2; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_wishlist.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('wishlist') > 0) { ?> <tr> <td><?php echo $messageStack->output('wishlist'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } /******************************************************************* ****** QUERY THE DATABASE FOR THE CUSTOMERS WISHLIST PRODUCTS ****** *******************************************************************/ $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " where customers_id = '" . $public_id . "'"; $wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS); $wishlist_query = tep_db_query($wishlist_split->sql_query); ?> <!-- customer_wishlist //--> <?php if (tep_db_num_rows($wishlist_query)) { if ($wishlist_split > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) { ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $wishlist_split->display_count(TEXT_DISPLAY_NUMBER_OF_WISHLIST); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $wishlist_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> </td> </tr> <?php } ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="3" class="productListing"> <tr> <td class="productListing-heading"><?php echo BOX_TEXT_IMAGE; ?></td> <td class="productListing-heading"><?php echo BOX_TEXT_PRODUCT; ?></td> <td class="productListing-heading"><?php echo BOX_TEXT_PRICE; ?></td> <td class="productListing-heading" align="center"><?php echo BOX_TEXT_SELECT; ?></td> </tr> <?php /******************************************************************* ***** LOOP THROUGH EACH PRODUCT ID TO DISPLAY IN THE WISHLIST ****** *******************************************************************/ $i = 0; while ($wishlist = tep_db_fetch_array($wishlist_query)) { $wishlist_id = tep_get_prid($wishlist['products_id']); $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_status, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where pd.products_id = '" . $wishlist_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_name"); $products = tep_db_fetch_array($products_query); if (($i/2) == floor($i/2)) { $class = "productListing-even"; } else { $class = "productListing-odd"; } ?> <tr class="<?php echo $class; ?>"> <td valign="top" class="productListing-data" align="left"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $wishlist['products_id'], 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?></a></td> <td valign="top" class="productListing-data" align="left" class="main"><b><a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $wishlist['products_id'], 'NONSSL'); ?>"><?php echo $products['products_name']; ?></a></b> <?php /******************************************************************* ******** THIS IS THE WISHLIST CODE FOR PRODUCT ATTRIBUTES ********* *******************************************************************/ $attributes_addon_price = 0; // Now get and populate product attributes $wishlist_products_attributes_query = tep_db_query("select products_options_id as po, products_options_value_id as pov from " . TABLE_WISHLIST_ATTRIBUTES . " where customers_id='" . $public_id . "' and products_id = '" . $wishlist['products_id'] . "'"); while ($wishlist_products_attributes = tep_db_fetch_array($wishlist_products_attributes_query)) { // We now populate $id[] hidden form field with product attributes echo tep_draw_hidden_field('id['.$wishlist['products_id'].']['.$wishlist_products_attributes['po'].']', $wishlist_products_attributes['pov']); // And Output the appropriate attribute name $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . $wishlist_id . "' and pa.options_id = '" . $wishlist_products_attributes['po'] . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $wishlist_products_attributes['pov'] . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); if ($attributes_values['price_prefix'] == '+') { $attributes_addon_price += $attributes_values['options_values_price']; } else if ($attributes_values['price_prefix'] == '-') { $attributes_addon_price -= $attributes_values['options_values_price']; } echo '<br /><small><i> ' . $attributes_values['products_options_name'] . ': ' . $attributes_values['products_options_values_name'] . '</i></small>'; } // end while attributes for product if (tep_not_null($products['specials_new_products_price'])) { $products_price = '<s>' . $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($products['specials_new_products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])); } /******************************************************************* ******* CHECK TO SEE IF PRODUCT HAS BEEN ADDED TO THEIR CART ******* *******************************************************************/ if($cart->in_cart($wishlist[products_id])) { echo '<br /><font color="#FF0000"><b>' . TEXT_ITEM_IN_CART . '</b></font>'; } /******************************************************************* ********** CHECK TO SEE IF PRODUCT IS NO LONGER AVAILABLE ********** *******************************************************************/ if($products['products_status'] == 0) { echo '<br /><font color="#FF0000"><b>' . TEXT_ITEM_NOT_AVAILABLE . '</b></font>'; } $i++; ?> </td> <td valign="top" class="productListing-data"><?php echo $products_price; ?></td> <td valign="top" class="productListing-data" align="center"> <?php /******************************************************************* * PREVENT THE ITEM FROM BEING ADDED TO CART IF NO LONGER AVAILABLE * *******************************************************************/ if($products['products_status'] != 0) { echo tep_draw_checkbox_field('add_wishprod[]',$wishlist[products_id]); } ?> </td> </tr> <?php } ?> </table> </td> </tr> <tr> <td align="right"><br /><?php echo tep_image_submit('button_in_cart.gif', 'Add to Cart', 'name="add_prod" value="add_prod"'); ?></td> </tr> <?php if ($wishlist_split > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) { ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $wishlist_split->display_count(TEXT_DISPLAY_NUMBER_OF_WISHLIST); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $wishlist_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> </td> </tr> <?php } ?> </table></form> <? } else { // Nothing in the customers wishlist ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo BOX_TEXT_NO_ITEMS;?></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </form> <?php } ?> <!-- customer_wishlist_eof //--> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br /> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  7. Voland

    Wishlist 3.0 Support Thread

    There isn't such code in my wishlist_public.php.
  8. Voland

    Wishlist 3.0 Support Thread

    Do you mean the one in my header? Yeah I was trying to implement that quck find box on my own and tehr eis a good chance I messed up somwhere. I'll go dig into it right now. Can you clerify for me what you mean by "never closed" please? You mean the </form> tag?
  9. Voland

    Wishlist 3.0 Support Thread

    Well Im not sure. I'm not trying to argue :). Just having a hard time understanding, since I'm not really a programmer. From what I understand tep_href_link(FILENAME_DEFAULT) sends the customer back to teh home page of the site. Thathappens rigt after they click on the Add to Cart button in teh public wishlist and nothing gets added to the cart. When I removed that line I still get to see who's public wishlist im on and after clicking the add to cart I'm being redirected to teh shoping cart where i can see teh items added. Take a look for yourself :) http://www.mindphantom.com/shop/wishlist_p...php?public_id=3 Arkady
  10. Voland

    Wishlist 3.0 Support Thread

    DO you mean the file edits? Yes I edited all teh files as per instructions. They were very clear by the way (esxcelent work :) ). And then obviosly uploaded all the new files
  11. Voland

    Wishlist 3.0 Support Thread

    OK, makes sence, although then why do we send the person to tep_href_link(FILENAME_DEFAULT)?
  12. Voland

    Wishlist 3.0 Support Thread

    Ok some progress ... I removed the line in question.. and viola! The problem dissapeared. However I am still not comfortable becasue I still dont know what that line was there for in teh first place. Although it seems that it is just a simple IF statement to check for the 'public_id' string in the URL. But why would you wanna send the customer somewhere while they are adding products to cart? If anyone has the ability to clarify my confusion. Id really appreciate it. Arkady
  13. Voland

    Wishlist 3.0 Support Thread

    Hello again :) Ok I have isolated the behaivior to the follwing line in wihlist_public.php which is the third PHP statement in the document from the top (Line 13 in my file) if(!isset($_GET['public_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } Does this mean that if the person who is veiwing the public wisjlist not logged in, they cannot add to cart? Is that the intended behavior? If so then isn't it better to send them to login.php? Although I hope that's not the case :). What is that line there for anyway? Anyone please, some input :'(
  14. Voland

    Wishlist 3.0 Support Thread

    . ... Guys I am still having the problem I described earlier. Does any one have any ideas how to resolve it. I am at a dead-end here.
  15. Voland

    Wishlist 3.0 Support Thread

    Hello again. I have sucesefully installed the contribution. The instructions were superb! Thank you. I started testing and the problem I'm having is this: After emailing the wishlist from wishlist.php and accessing the wishlist_public.php - unable to add to cart from it. After the checkbox(es) is(are) checked and the Add to Cart button is clicked I get redireted to index.php and nothing gets added to cart. I have look thorugh the code of wishlist_public.php ... but my php skills are way to weak to spot wher the problem is. Can someone help please Arkady
  16. Voland

    Wishlist 3.0 Support Thread

    Ah! Nevermind previouse post. Was a little too qucik with the questions. Now everything seems clear :). Accept my oppologies.
  17. Voland

    Wishlist 3.0 Support Thread

    Hello all. I am considering installing this great contribution. I have a quick question. I didn't see an admin folder in the arhive ... is there not an admin part for this mod? I was under impresion that somwehere along the line someone added the admin functionality to teh contribution. Also, is Wishlist 3.5d from 25 Oct 2005 a FULL package? Best regards, Arkady
  18. Voland

    RMA Returns error for 2.2 MS2

    Im sorry to bump this up, but can someone answer my questions please.
  19. Voland

    [CONTRIBUTION] CCGV (trad)

    I was concerned about that particular issue as well. Since I have the Order editor COntrib ... the Vouchers and Discount coupons ammounts are added into the Order editor's Discount section, and in order for it to calculate properly the discount ammount has to be negative, otherwise it adds instead of subtracting. So can you point out the file and peice of code where I can add the "-" sign before the Vouchers ammount if I wish? I dont suppose that will mess too much with the overall CCGV logic, will it? Thanks, Arkady
  20. Voland

    [CONTRIBUTION] CCGV (trad)

    Ditto. Also wanted to confirm previos praise ragarding the instructions - very easy, logical and straight to the point. Donno why foclks claim that CCGV is the hardest to install :thumbsup:
  21. Voland

    [CONTRIBUTION] CCGV (trad)

    Question for Vger and/or anyone who has "RMA Returns system" Contribution, the one initiated by David Howarth (http://www.oscommerce.com/community/contributions,1136/). The system is alegedly made to work with CCGV. I am wondering if it takes into account teh current CCGV(trad), or the original one? DOesn any one have experience with the issue? I ask here because the official RMA Returns system thread is not very active ... I posted yesterday and yet to get a reply :(
  22. Voland

    [CONTRIBUTION] CCGV (trad)

    As was said before :) .. change your Order Total (Admin>Modules>Order Total) ... so that both Gift Vouchers and Discount Coupons come BEFORE Total. But keep Discount Coupons before Gift Vouchers.
  23. Voland

    RMA Returns error for 2.2 MS2

    Hello all, I have few quick questions. First is this the official forum for the RMA Returns system (the thread name confuses me :) ). Also does the latest version from 4 Jan 2006 include the RMA Packing Slip Addition from 19 Aug 2005? And about the CCGV. The one I have installed is the current CCGV(trad) by Vger (http://www.oscommerce.com/community/contributions,4135/category,all/search,ccgv). Is that the CCGV version taken into consideration by the RMA Returns system? Thanks to every one for their time and effort for this vital contribution :) Arkady
  24. Voland

    ### POINTS AND REWARDS MODULE V1.00 ###

    I am not sure what you mean. I mean I have followed the instructions down to the line while manually modifying files. The instructions go liek this: ADMIN STEP = 1. open admin/orders.php This will add a quick pending points conformation check box. To be used when confirming order or updating order status. This option will only show up when there are pending points for that order and only if Auto Credit Pending Points is set to "false". Find... (start at aprox. line 54) $customer_notified = '1'; } ... and add after..... ######## Points/Rewards Module V1.60 BOF ################## code ######## Points/Rewards Module V1.60 EOF ################## So I found that peice of code: tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; ######## Points/Rewards Module V1.60 BOF ################## code ######## Points/Rewards Module V1.60 EOF ##################[/i] tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; Line 127 - case 'deleteconfirm': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); tep_remove_order($oID, $HTTP_POST_VARS['restock']); tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')))); break; } } So what does it mean when you say that teh CASE stement was ended before it was suposed to? WHat is the indicator of where and how it ends? The thing is that for now I belive that I have fixed the problem by removing the last end-bracket from the Points/Rewards block. But I am afraid that might be only a quick fix and might give trouble down the road. Id also really like Deep-Silver's input on my whole T_CASE error Parse error situation :). Thank you all. Arkady
×