Jump to content

virtualadz

Members
  • Posts

    489
  • Joined

  • Last visited

Everything posted by virtualadz

  1. but hey how i give line breaks, it looke ugly without them, i hope you saw the output of it as well. line breaks can be added in this same email file there are codes which . "/n" . and there itself comes the line break, is there a way i can too do it. this is the full code of that file <?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 (c) 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.<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.<br><br>Email 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.');?>
  2. hey i have found a solution giving the HEADER title it shows the title . can you help in one more thing. i posted a topic here named php email customize , i want help on that , can you please
  3. hey everyone i want to customize php email (not much just make text bold and add line breaks) . i added <b> and <br> but the file simply ignored it: look in this code for <b><br><ul><li> and such tags. when i make this file, the output which come is shown below. start looking in the code from Cheque must be ....Input <?php 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.<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.<br><br>Email us the following details after making the payment<ul><li>Bank Name<li>Cheque Number<li>Amount<li>Date Issued</ul>Please make the payment within 7 days of order or else your order will be declared void');?> Output is there a way someone can tell me how do i customize this email.
  4. i try to find my self, but can you give some idea or hint, where it might be, i will give you whatever codes you require. try to see if you can do something. one more thing, as i said, the title for every page is default, it is set by me in the admin control area, so that means that this <?php echo TITLE; ?> or something like that is coming from my admin files. should i look there
  5. ya breadcrump holds the page title i had given you the code before (at the bottom of this page). in that the category name was made page header not page title.(hope you saw my site) what i want is page title, i want page title for every page, but since category string dont allow to make page titles. but i do know that every page has this thing in it, this code in the bold. navbar_title, so can you do something to make the page title look in to navbar of all pages and then select the page titlethis is my privacy.php age
  6. in index.php there is this code<?php echo TITLE; ?>this code shows the default text title "Bhura Tea"have a look at this file, breadcrump.php , i dont understand much of it, but by seeing it i assume that there are title words in it so may be by editing this we can do something, just like i said in my previous reply how category name was changed by editing breadcrump.php text. have a lookbreadcrumb.php<?php/* $Id: breadcrumb.php,v 1.3 2003/02/11 00:04:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License*/ class breadcrumb {var $_trail;function last() {$trail_size = sizeof($this->_trail);return $this->_trail[$trail_size-1]['title'] ;}function breadcrumb() {$this->reset();} function reset() { $this->_trail = array(); } function add($title, $link = '') { $this->_trail[] = array('title' => $title, 'link' => $link); } function trail($separator = ' - ') { $trail_string = ''; for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) { if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) { $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>'; } else { $trail_string .= $this->_trail[$i]['title']; } if (($i+1) < $n) $trail_string .= $separator; } return $trail_string; } }?>
  7. as i had said before i dont want to enter details manually. the default page title "Bhura Tea" , please visit http://store.bhuratea.com , and check it. there you then navigate to the product "Darjeeling Tea" . now you will see in a bar above Home >> Darjeeling Teai want to set this darjeeling tea to be the title of that page asBhura Tea | Darjeeling Tea (this will be page title based on the navbar), now you are suggestion to manually add navbar to each page it is not possible (as many pages are there) . let me explain you one more thing, when you visit my site, and navigate through all four products you will find that the heading title of each product page is different, but before that there was also a default text as "Products" now i did not enter their values manually, instead used the category names to be the heading titles. i did this by editing these files by these codes:go to includes/classes/breadcrumb.php and look for class breadcrumb {var $_trail;function breadcrumb() {$this->reset();}Change to:class breadcrumb {var $_trail;function last() {$trail_size = sizeof($this->_trail);return $this->_trail[$trail_size-1]['title'] ;}function breadcrumb() {$this->reset();}now go to Directory: includes/languages/english/index.phpand Around Line 19:define('HEADING_TITLE', 'Let\'s See What We Have Here');Alter to:define('HEADING_TITLE', $breadcrumb->last());Around Line 39:define('HEADING_TITLE', 'Categories');Alter to:define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');hope it is clear
  8. ok just some guy thanks for your advice. one more thing in my oscommerce online shop there is only a default title for every page. i want different titles for each page. but i dont want to enter manual values. have a look at this codedefine('NAVBAR_TITLE', 'Conditions of Use'); in every page there is this code that shows where i am currently in my siteexample: Home >> Conditions of Useso i want to set the title of the page on the text of this code('NAVBAR_TITLE', 'Conditions of Use'); here the text is "Conditions of Use" so i want to set the title depending upon individual navbar titles. how can i do that. can you please write a code. there is a file breadcrumb.php . hope it is clear, please help
  9. the permission is set like this Permission: 4 4 4 each 4 is inside a check box (just like the check box enable smilies when we give fast reply for topicsso i should try to change it to the 744 and others if it doesnot work, ok let me try.
  10. the permission set is 444 and and under read there is 1. user 2. group 3. world checked. tell me what to do, should i uncheck it from world, please explain
  11. i use cpanel's built in editorbut look other files which i edit via cpanel are saved, except configure.php file.
  12. sorry my mistake i added this line in cofigure.php filedefine('HTTP_LINK', 'http://domain.com'); // this will become your new linkbut that's not the matter the configure.php file changes to the same as it was before editing it, even if i save it, so it is not the code that causes the problem but i think bcoz it does not get saved it shows that error. i dont know why doesn't it save . do you think that i have to edit another file. i am confused
  13. as said by nakor i added this code to configure.php $breadcrumb->add(HEADER_TITLE_TOP, HTTP_LINK);and then in application_top.php i replaced HTTP_SERVER with HTTP_LINKbut one strange thing happenedwhen i open my configure.php file after editing the code $breadcrumb->add(HEADER_TITLE_TOP, HTTP_LINK); is not to be found there, the file becomes the same before editing. this doesnot get inside my brain, i had saved it properly, what should i do now?
  14. sorry but i dont have anything in quotes, lookrequire(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_LINK); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
  15. the link still doesnot change instead it shows http://www.domain.com/HTTP_LINK i dont understand why the HTTP_LINK is showing up, i edited both configure.php & application_top.php but this error still remains there
  16. let me come back to my question you had asked for my configure.php file please see it and tell me why error comes <?php/* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License*/// Define the webserver and path parameters// * DIR_FS_* = Filesystem directories (local/physical)// * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://store.bhuratea.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://bhuratea.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'store.bhuratea.com'); define('HTTPS_COOKIE_DOMAIN', 'bhuratea.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/');
  17. "the url of my oscommerce template from store.bhuratea.com , i have mauch data feeeded, is it possible to change it's url without losing data. "i mean to say here that current url of my shop is store.bhuratea.com now suppose i want to change it to good.bhuratea.com , is it possible, also am i going to loose any data that i have currently
  18. i dont think so, banner allows as i had change it's link to my site. ok well i ask you questions:my site address: store.bhuratea.comhomepage address: bhuratea.comyou visit my homepage and tell that is it possible that i can include whatever i have in bhuratea.com include it in store.bhuratea.com, is it possible, there are javascript files and and menus can i add them to store.bhuratea.com . i will just place the code in files .second can i edit: the url of my oscommerce template from store.bhuratea.com , i have mauch data feeeded, is it possible to change it's url without losing data.
  19. hey everything went wrong, i edited as you said, but now the link comes as: http://store.mydomain.com/NEWHTTP_LINK what should i do
  20. i edited the files but what happened is that after saving configure.php it comes to the same data as before editing, now i am going to change it to NEWHTTP . please visit www.store.bhuratea.com , and also www.bhuratea.com , i want to link only the logo image in store.bhuratea.com to bhuratea.com.
  21. this is the code, but if i change it will it cause problems define('HTTP_SERVER', 'http://store.mydomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://mydomain.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'store.mydomian.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');
  22. i want to change a link in php please see the code and tell me what to do: i want to change link for the text in bold: please also see its' linking filedefine('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');define('HEADER_TITLE_MY_ACCOUNT', 'My Account');define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');define('HEADER_TITLE_CHECKOUT', 'Checkout');define('HEADER_TITLE_TOP', 'Home');define('HEADER_TITLE_CATALOG', 'Online Shop');define('HEADER_TITLE_LOGOFF', 'Sign Out');define('HEADER_TITLE_LOGIN', 'Sign In');this is it's linking file, see the bold text here, now i want to change the link to www.anydomain.com how should i do it. as you can see there is also a breadcrumb.php file i have shown it in the last as code:// include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); <?php/* $Id: breadcrumb.php,v 1.3 2003/02/11 00:04:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License*/ class breadcrumb { var $_trail; function breadcrumb() { $this->reset(); } function reset() { $this->_trail = array(); } function add($title, $link = '') { $this->_trail[] = array('title' => $title, 'link' => $link); } function trail($separator = ' - ') { $trail_string = ''; for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) { if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) { $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>'; } else { $trail_string .= $this->_trail[$i]['title']; } if (($i+1) < $n) $trail_string .= $separator; } return $trail_string; } }?>
  23. hey everyone , i have just installed os commerce and am new using it. please visit the site http://shop.bhuratea.com , to get an idea of what i mean. on the left side of the site below the logo you will find two boxes named Categories & Manufacturers is there a way that i can rename those two text. Dont get condfused that i want to edit the products or categories, rather i want to edit those two texts from Categories & Manufacturers to Products & Quick Links respectively. the manufacturers text which i am talking is above the drop down menu. Any help will be greatGourav
  24. do you have full rights over the server.
×
×
  • Create New...