Jump to content

virtualadz

Members
  • Posts

    489
  • Joined

  • Last visited

Posts posted by virtualadz

  1. hi , i have this menu and want to make it a drop-down one, but dont know how to. i have this code of the menu just save it as html and see the result: is there anyone who can add a drop-down menu to it, i want no modifications to be done as it is going to be converted to php , so all modifications should be in css/ js<style> .menu { color: white; font-family: Tahoma; font-size: 8pt; font-weight: bold; border-right: 1px solid white; text-decoration: none; background-color: #313031; padding: 5px;}.menu:hover { background-color: #5A8EC6;}.toolbar { background-color: #313031; padding: 5px 0px 5px 0px; width: 475px;}</style><div class=toolbar><a class=menu href="menu1.html" title="Tea & Health"> Our Products</a><a class=menu href="menu1.html" title="Tea & Health"> Tea & Health</a><a class=menu href="menu1.html" title="Visit Menu Item 2"> T Zone</a><a class=menu href="menu1.html" title="Tea & Health"> Tea History</a><a class=menu href="menu1.html" title="Tea & Health"> Tools</a><a class=menu href="menu1.html"> Info Center</a><a class=menu href="menu1.html"> About</a></div>

  2. so in page/step 2 just aftersession_start();$_SESSION['step1'] = true;i should have//to prevent directly moving out of the pagesession_start();$_SESSION['step2'] = true;and in page/step 3, i should have//to prevent directly moving out of the pagesession_start();$_SESSION['step2'] = true;

  3. hey i did this both one ship.. and pay.. //to prevent directly moving out of the pagesession_start();$_SESSION['step1'] = true;pulpfiction told to include something at the end of the page, does that mean at the end of the shiiping page i should add://to prevent directly moving out of the pagesession_start();$_SESSION['step2'] = true;and then at the starting of conirmationpage add//to prevent directly moving out of the pagesession_start();$_SESSION['step2'] = true;please clear this also after what ending in payment should i add this , have a lookat't ending </table></form></td><!-- 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'); ?>

  4. starting with i included the code only in shipping and everything clicked (worked well). please tell me have i done anything wrong as i dont want to proceed if it is wrong, no errors come but just to mkae sure, below giving a part of the code as told to include it at the top, no errors so far, should i proceed<?php/* $Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License*/ require('includes/application_top.php'); require('includes/classes/http_client.php');//to prevent directly moving out of the pagesession_start($_SESSION['step1']=true);// if the customer is not logged on, redirect them to the login page

  5. hi this is the code for shipping page, may i know where do i add the sessions<?php/* $Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 hpdl Exp $*/ require('includes/application_top.php'); require('includes/classes/http_client.php');// if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); }// if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); }// if no shipping destination address was selected, use the customers own address as default if (!tep_session_is_registered('sendto')) { tep_session_register('sendto'); $sendto = $customer_default_address_id; } else {// verify the selected shipping address $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'"); $check_address = tep_db_fetch_array($check_address_query); if ($check_address['total'] != '1') { $sendto = $customer_default_address_id; if (tep_session_is_registered('shipping')) tep_session_unregister('shipping'); } } require(DIR_WS_CLASSES . 'order.php'); $order = new order;// register a random ID in the session to check throughout the checkout procedure// against alterations in the shopping cart contents if (!tep_session_is_registered('cartID')) tep_session_register('cartID'); $cartID = $cart->cartID;// if the order contains only virtual products, forward the customer to the billing page as// a shipping address is not needed if ($order->content_type == 'virtual') { if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false; $sendto = false; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } $total_weight = $cart->show_weight(); $total_count = $cart->count_contents();// load all enabled shipping modules require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { $pass = false; switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) { $pass = true; } break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) { $pass = true; } break; case 'both': $pass = true; break; } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { $free_shipping = false; }// process the selected shipping method if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) { if (!tep_session_is_registered('comments')) tep_session_register('comments'); if (tep_not_null($HTTP_POST_VARS['comments'])) { $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); } if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) { if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) { $shipping = $HTTP_POST_VARS['shipping']; list($module, $method) = explode('_', $shipping); if ( is_object($$module) || ($shipping == 'free_free') ) { if ($shipping == 'free_free') { $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE; $quote[0]['methods'][0]['cost'] = '0'; } else { $quote = $shipping_modules->quote($method, $module); } if (isset($quote['error'])) { tep_session_unregister('shipping'); } else { if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) { $shipping = array('id' => $shipping, 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), 'cost' => $quote[0]['methods'][0]['cost']); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } } } else { tep_session_unregister('shipping'); } } } else { $shipping = false; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } }// get all available shipping quotes $quotes = $shipping_modules->quote();// if no shipping method has been selected, automatically select the cheapest method.// if the modules status was changed when none were available, to save on implementing// a javascript force-selection method, also automatically select the cheapest shipping// method if more than one module is now enabled if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest(); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', '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 (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"><link rel="stylesheet" type="text/css" href="stylesheet.css"><script language="javascript"><!--var selected;function selectRowEffect(object, buttonSelect) { if (!selected) { if (document.getElementById) { selected = document.getElementById('defaultSelected'); } else { selected = document.all['defaultSelected']; } } if (selected) selected.className = 'moduleRow'; object.className = 'moduleRowSelected'; selected = object;// one button is not an array if (document.checkout_address.shipping[0]) { document.checkout_address.shipping[buttonSelect].checked=true; } else { document.checkout_address.shipping.checked=true; }}function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver';}function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow';}//--></script></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('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?><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 HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.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> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td> <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr><?php if (tep_count_shipping_modules() > 0) {?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"><?php if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td> <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php } elseif ($free_shipping == false) {?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php } if ($free_shipping == true) {?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b> <?php echo $quotes[$i]['icon']; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)"> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php } else { $radio_buttons = 0; for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php if (isset($quotes[$i]['error'])) {?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {// set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false); if ( ($checked == true) || ($n == 1 && $n2 == 1) ) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; }?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td><?php if ( ($n > 1) || ($n2 > 1) ) {?> <td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td><?php } else {?> <td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td><?php }?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php $radio_buttons++; } }?> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr><?php } }?> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr><?php }?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td> <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> </tr> </table></td> <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td> </tr> </table></td> </tr> <tr> <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_DELIVERY; ?></td> <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_PAYMENT; ?></td> <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td> <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td> </tr> </table></td> </tr> </table></form></td><!-- 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'); ?>

  6. anymore comments and details how to about the session should i place it on every page i.e. shipping page, payment page, order confirmation page. can you please provide more details, it will be more than appreciated

  7. i everyone i have set up a site ( not completely) , i want to have some suggestions and comments, in meantime, i also want to know if anyone can help me in this step to protect the security of my site's checkout page, this site is completely based on php. see the security risk i see.go to www.bhuratea.comclick on my account on the top-right cornerunder sign-in enterusername: virtualadz@yahoo.co.in (test username)password: w3schoolsnow click on checkout on the top-right cornerand type in the adress bar : http://bhuratea.com/checkout_success.phpit wil directly check you out without selecting payment method, shipping method and other details, this isn't much of risk as we will verify all orders and it even doesnot generate any invoice but then is there a way i can make it not to appear until the next step is completed, this may become a headache.hope i am not asking much (even if i am thanking you in advance for your help if any). thanksnote to spammers: please dont go there to have fun, as it wont affect me much, dont waste yours and mine time.

  8. hey i included html and everything worked, but then when i add image this error message comesParse error: parse error, unexpected '.', expecting ')' in /home/bhura4/public_html/includes/languages/english/modules/payment/west.php on line 48please see this code for the imagedefine(. "<img src="http://www.bhuratea.com/images/bhura_logo.gif">" . 'MODULE_PAYMENT_WEST_TEXT_EMAIL_FOOTER', "<u><b>PAYMENT INSTRUCTIONS</u></b>" . "<br>" . '<b>You have two options when using Western Union</b>' . "<br><br>" . '<ul><li>Visit WesternUnion.com' . "<br>" . '<li>Select the Money Transfer Option and follow the on screen directions' . "<br>" . '<li>You can pay with a bank debit card or credit card' . "<br>" . '<li>Western Union will charge you a money transfer fee' . "<br>" . '<li>Send the amount of the total shown above</ul>' . "<br><br>" . '<b>Visit a local Western Union agency</b>' . "<br>" . '<ul><li>Fill out the necesarry Send Money form, ask agent if you need assistance' . "<br>" . '<li>They will require a valid ID' . "<br>" . '<li>You can pay with cash, a bank debit card or credit card' . "<br>" . '<li>Western Union will charge you a money transfer fee' . "<br>" . '<li>Send the amount of the total shown above</ul>' . "<br><br>" . 'Using either method, provide the following Receiver information:' . "<br><br>" . MODULE_PAYMENT_WEST_PAYTO. "<br><br>" . 'Once payment has been sent, please send an email to this address:' . MODULE_PAYMENT_WEST_EMAIL. "<br><br>" . 'Include your first and last name, your order number and the Money Transfer Control Number. Thanks!' );

  9. bcoz html has been shut down in admin by me, the reason being that may of my automatic emails have been auto-prepared (while installing oscommerce) with non html, so now changing them would surely result in changing many files bcoz when i activate html \n does not work and almost all of my emails pre-installed files have \n in them, when activated html supports <b> tag and not even <br> tag, so i dont want any confusions, that's the reason , i asked if there are any spaces and bullet giving tags as well. hope it is clear

  10. hey it is not starting with that line rather it is this complete page<?php/*catalog\includes\languages\english\modules\payment $Id: ikobo.php, v .2beta 2004/07/10 05:39:27 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.comYou may use and distribute this software and change anything you wish accept the banners hyperlink.* * Thank you* Eugene* */ define('MODULE_PAYMENT_WEST_TEXT_TITLE', 'Western Union Money Transfer'); define('MODULE_PAYMENT_WEST_TEXT_DESCRIPTION', '<OL><P ALIGN="center"><U><B>PAYMENT INSTRUCTIONS</B></U></P> <p>(The following information will also be emailed to you after checkout) <br> You have two options when using Western Union <br> </p> <LI><SPAN CLASS="blueboldarial">Visit <a href="http://www.westernunion.com/info/selectCountry.asp" target="_blank">WesternUnion.com</a> </SPAN> </LI> <ul> <li>Select the "Money Transfer" Option and follow the on screen directions </li> <li>You can pay with a bank debit card or credit card</li> <li>Western Union will charge you a money transfer fee </li> <li>Send the amount of the total shown above</li> </ul> <li><SPAN CLASS="blueboldarial">Visit a local Western Union agency</SPAN> (<a href="http://www.westernunion.com/info/selectCountry.asp">find nearest location</a>) <ul> <li>Fill out the necesarry "Send Money" form, ask agent if you need assistance </li> <li>They will require a valid ID</li> <li>You can pay with cash, a bank debit card or credit card </li> <li>Western Union will charge you a money transfer fee</li> <li>Send the amount of the total shown above</li> </ul> </li> <li>Using either method, provide the following "Receiver" information: </li><ul> <li>'. MODULE_PAYMENT_WEST_PAYTO. '</li></ul><p>Once payment has been sent, please send an email to this address: <a href="mailto:'. MODULE_PAYMENT_WEST_EMAIL. '">'. MODULE_PAYMENT_WEST_EMAIL. '</a> Include your first and last name, your order number and the Money Transfer Control Number. Thanks!</B> </p> Please don\'t forget to click the "Confirm Order" button below. </p></OL>' ); define('MODULE_PAYMENT_WEST_TEXT_EMAIL_FOOTER', "PAYMENT INSTRUCTIONS" . "\n\n" . 'You have two options when using Western Union' . "\n\n" . '1. Visit WesternUnion.com' . "\n" . 'Select the Money Transfer Option and follow the on screen directions' . "\n" . 'You can pay with a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Visit a local Western Union agency' . "\n" . 'Fill out the necesarry Send Money form, ask agent if you need assistance' . "\n" . 'They will require a valid ID' . "\n" . 'You can pay with cash, a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Using either method, provide the following Receiver information:' . "\n\n" . ' . MODULE_PAYMENT_WEST_PAYTO. ' . "\n\n" . 'Once payment has been sent, please send an email to this address:' ' . MODULE_PAYMENT_WEST_EMAIL. ' . "\n\n" . 'Include your first and last name, your order number and the Money Transfer Control Number. Thanks!' ); ?>

  11. this below code is what i tried to define but this error shows when doing anything with that code, i have given bottom starting from define with line 48 as shown in error, can anyone help.Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/bhura4/public_html/includes/languages/english/modules/payment/west.php on line 48 define('MODULE_PAYMENT_WEST_TEXT_EMAIL_FOOTER', "PAYMENT INSTRUCTIONS" . "\n\n" . 'You have two options when using Western Union' . "\n\n" . '1. Visit WesternUnion.com' . "\n" . 'Select the Money Transfer Option and follow the on screen directions' . "\n" . 'You can pay with a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Visit a local Western Union agency' . "\n" . 'Fill out the necesarry Send Money form, ask agent if you need assistance' . "\n" . 'They will require a valid ID' . "\n" . 'You can pay with cash, a bank debit card or credit card' . "\n" . 'Western Union will charge you a money transfer fee' . "\n" . 'Send the amount of the total shown above' . "\n\n" . 'Using either method, provide the following Receiver information:' . "\n\n" . ' . MODULE_PAYMENT_WEST_PAYTO. ' . "\n\n" . 'Once payment has been sent, please send an email to this address:' ' . MODULE_PAYMENT_WEST_EMAIL. ' . "\n\n" . 'Include your first and last name, your order number and the Money Transfer Control Number. Thanks!' ); ?>

  12. below you will see the full php code to display next and previous order buttons in PHP, i doubt you will understand this. i hope you do. what i want is to replace text Next order and previous order with two images, at the bottom you will see a comment saying "BEGIN NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN" i think there you need to define images instead of text. below here you see this code "PREV_ORDER" no need to change this it can be made images alt text. is ther anyone who can help me. please do reply even if you need explanation/***************** NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN ************************************/Easy steps to install:1.- Add this lines to /catalog/admin/includes/languages/english.php before the last ?> tag //BEGIN NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN define('PREV_ORDER', '<b><<Previous Order</b>'); define('NEXT_ORDER', '<b>Next Order>></b>'); //END NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN2. Add this lines to /catalog/admin/includes/functions/general.php before the last ?> tag//BEGIN NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN function get_order_id($orderid,$mode='next'){ if ($mode=='prev') $op = '<'; elseif ($mode=='next') $op = '>'; if($op == '<' or $op == '>') $nextprev_resource = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id $op '" . (int)$orderid . "' order by orders_id"); if($mode == 'prev'){ while($nextprev_values = tep_db_fetch_array($nextprev_resource)){ $nextprev_value = $nextprev_values; } }else if($mode == 'next') $nextprev_value = tep_db_fetch_array($nextprev_resource); if(!empty($nextprev_value[orders_id])) return $nextprev_value[orders_id]; else return false; }//END NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN3. Open /catalog/admin/orders.phpAdd this lines:<!-- BEGIN NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN //--> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php if( $nextid = get_order_id($oID,'prev')) { echo '<a href="' .tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $nextid . '&action=edit') . '">' . PREV_ORDER . '</a>'; } ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> <td class="pageHeading" align="right"><?php if( $previd = get_order_id($oID)) echo '<a href="' .tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $previd . '&action=edit') . '">' . NEXT_ORDER . '</a>'; ?></td> </tr> </table></td> </tr><!-- END NEXT AND PREVIOUS ORDERS DISPLAY IN ADMIN //-->Just after:<?php if (($action == 'edit') && ($order_exists == true)) { $order = new order($oID);?>4- Open your web browser and go to the admin section for select one order then edit you can see next_order and previous_order links top right and left(if more than one orders in admin).that's it :)

  13. hi i want to use a background image in css table in td, please see i want to include it in the code below, here you background defined as color however i want to change it to a imageTD.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: bold; background: #bbc3d3; color: #FFFFFF;

  14. hi, i tried every thing giving \n wihtout space, with space within quotation, twice \n\n but nothing worked just see the code below, and tell what to do<?php/* $Id: moneyorder.php,v 1.6 2003/01/24 21:36:04 thomasamoulton Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License*/ define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Cheque/Direct Deposit'); define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', '<b>Make Payable To</b>: ' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br><br><b>Send Cheque To:</b><br>' . nl2br(STORE_NAME_ADDRESS) . '<br><br>' . 'Cheque must be payable at Silchar, Assam.<br><br><b>Deposit Cheque:</b><br>Bank: UTI Bank<br>A/c. No.: 271010200001137<br><br>Your order will not ship until we receive the payment.'); define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Make Payable To:". MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nSend To:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Cheque must be payable at Silchar, Assam.\n\n<b>Deposit Cheque:</b>\nBank: UTI Bank\nA/c. No.: 271010200001137\n\nYour order will not ship until we receive the. payment.\n\nEmail us the following details after making the payment<ul><li>Bank Name<li>Cheque Number<li>Amount<li>Date Issued</ul>Please make sure your payment is with us within 7 daysor your order will be cancelled.');?>

  15. will only \n work. should i include it this way without a space before it. or should i give a space before and after it:Deposit Cheque:\nBank: UTI Bank\nA/c. No.: 271010200001137\n\nYour order will not one more thing \n sometimes is not included as it is used for giving apostrophewhat\salso can i make the text bold

×
×
  • Create New...