Jump to content

virtualadz

Members
  • Posts

    489
  • Joined

  • Last visited

Posts posted by virtualadz

  1. that's a good suggestion. :) so if i divide my faq into these sections, it it this:OrderWhat payment methods do you acceptWhat if I don't like your product/sBillingShippingDo you ship your products in my countryUnder what cases can i return your product/sHow many days does it take for the product to be deliveredIn how many days of order will the item reach the shipping destination I chooseMisc.How do I contact you incase I need any supportDo I get what I pay for1.first is it the right division.2.second. i will have 2/3 options for shipping low, normal, express.but i have a special shipping, returns and payment policy area. so is it rqd. to duplicate it twice.thanks very much, if you have other questions please do send me.

  2. to my original question, is there any question too common i am missing. i need to add atleast 14 qestions' now, for the benefit of my customers and my SE ranking.

  3. this buttons now acts as the submit one i.e. sends me an email. i think this is bcoz of the tep_image_submit functionlet me try with this<?php echo tep_image(DIR_WS_IMAGES . 'button_reset', 'Reset', '75', '25', 'onClick="this.reset();"'); ?>

  4. ok this is it

    // The HTML image wrapper function  function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {    if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {      return false;    }// alt is added to the img tag even if it is null to prevent browsers from outputting// the image filename as default    $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';    if (tep_not_null($alt)) {      $image .= ' title=" ' . tep_output_string($alt) . ' "';    }    if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {      if ($image_size = @getimagesize($src)) {        if (empty($width) && tep_not_null($height)) {          $ratio = $height / $image_size[1];          $width = $image_size[0] * $ratio;        } elseif (tep_not_null($width) && empty($height)) {          $ratio = $width / $image_size[0];          $height = $image_size[1] * $ratio;        } elseif (empty($width) && empty($height)) {          $width = $image_size[0];          $height = $image_size[1];        }      } elseif (IMAGE_REQUIRED == 'false') {        return false;      }    }    if (tep_not_null($width) && tep_not_null($height)) {      $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';    }    if (tep_not_null($parameters)) $image .= ' ' . $parameters;    $image .= '>';    return $image;  }////// The HTML form submit button wrapper function// Outputs a button in the selected language  function tep_image_submit($image, $alt = '', $parameters = '') {    global $language;    $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" style="border-width:0px;border-collapse:collapse;" alt="' . tep_output_string($alt) . '"';    if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';    if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;    $image_submit .= '>';    return $image_submit;  }////// Output a function button in the selected language  function tep_image_button($image, $alt = '', $parameters = '') {    global $language;    return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);  }////// Output a separator either through whitespace, or with an image  function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {    return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);  }////// Output a form  function tep_draw_form($name, $action, $method = 'post', $parameters = '') {    $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';    if (tep_not_null($parameters)) $form .= ' ' . $parameters;    $form .= '>';    return $form;  }

  5. my privacy policy is as long as 3 paras, maybe i can add a link to that, but the privacy policy link is clearly viewable at the bttom of the page. (in bold letters)

  6. <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_WHOLESALE, 'action=send'),'post','id="myForm"'); ?>the method=post, is printed without adding:html output version

    <form name="contact_us" action="http://bhuratea.com/wholesale_inquiry.php?action=send" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0">

    php verison:

    <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_WHOLESALE, 'action=send')); ?>

  7. this is a response to a question asked inhttp://w3schools.invisionzone.com/index.php?showtopic=4718

    ////// Output a form  function tep_draw_form($name, $action, $method = 'post', $parameters = '') {    $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';    if (tep_not_null($parameters)) $form .= ' ' . $parameters;    $form .= '>';    return $form;  }////// Output a form input field  function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {    $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';    if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {      $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';    } elseif (tep_not_null($value)) {      $field .= ' value="' . tep_output_string($value) . '"';    }    if (tep_not_null($parameters)) $field .= ' ' . $parameters;    $field .= '>';    return $field;

  8. hi all,i want to build a faq section for my site, have prepared some ?'s , but still not sure if they are all needed to be. The faq will be divided in 4 parts, Order, Shipping, Billing, Misc.these are the questions that I was able to make sor far. many of u may be having faq's in you sites, so do you feel any changes and more question to be added. thanksDo you ship your products in my countryWhat payment methods do you acceptWhat if I don't like your product/sUnder what cases can i return your product/sHow many days does it take for the product to be deliveredIn how many days of order will the item reach the shipping destination I chooseHow do I contact you incase I need any supportDo I get what I pay for

  9. just hit space, so here if i want to add a space after $quantity, should i hit space??tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, ENTRY_CATEGORY . $category . "\n\n" . ENTRY_PRICE . "\n" . ENTRY_PRICEF . $pricefrom . "\n" . ENTRY_PRICET . $priceto . "\n\n" . ENTRY_QUANTITY . $quantity . $quanwei . "\n\n" . ENTRY_ENQUIRY . $enquiry, $name, $email_address);but dont you think printing 7 messages will look horrible, i had stopped trying it bcoz it showed some errors with email field. :) ??

  10. figured that too :) , but then a question once again :) how do i add space in this code i.e.   i added it but   is itslef printed in the email. i want to add space in between some leters that appear in my email. does this require any special character.

     if (tep_validate_email($email_address)) {      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, ENTRY_CATEGORY . $category . "\n\n" . ENTRY_PRICE . "\n" . ENTRY_PRICEF . $pricefrom . "\n" . ENTRY_PRICET . $priceto . "\n\n" . ENTRY_QUANTITY . $quantity . $quanwei . "\n\n" . ENTRY_ENQUIRY . $enquiry, $name, $email_address);

    -----------------------------------coming back to my earlier post's regarding printing the error , i dont think it's a good option, i have seven fields that means some print messages. is there any other better way, to make all fields reqd. under one code, or use js. thanks icon14.gif

  11. wooo, got it figured all right. but then here comes another question :) this is the one i will not be able to do. i have a drop down menu, with 2 options, now how do i make it appear in my email. thanks for any help in advance.below are the detailsthe drop down code is something like this

    <select name="quanwei"><?php echo '<option value="' . REASON_TON . '">' . REASON_TON . '</option>'; ?><?php echo '<option value="' . REASON_CON . '">' . REASON_CON . '</option>'; ?></select>

    and here is the place to print all the fields:

     if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {    $name = tep_db_prepare_input($HTTP_POST_VARS['name']);    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);    $category = tep_db_prepare_input($HTTP_POST_VARS['category']);    $pricefrom = tep_db_prepare_input($HTTP_POST_VARS['pricefrom']);    $priceto = tep_db_prepare_input($HTTP_POST_VARS['priceto']);    $quantity = tep_db_prepare_input($HTTP_POST_VARS['quantity']);    $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);    if (tep_validate_email($email_address)) {      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, ENTRY_CATEGORY . "" . $category . "\n\n" . $pricefrom . "\n" . $priceto . "\n\n" . $quantity . "\n\n" . $enquiry, $name, $email_address);

    the variable name is quanwei so can i place it directly above in the tep_mail function and the tep_db_preprare_input, and will it know which option the customer has selected an present the result in the email accordingly.thanks, thanks for any help

  12. i think so that THERE is absolutely no need to edit the tep_mail function. this is the top part of the page

    $category = tep_db_prepare_input($HTTP_POST_VARS['category']);    $pricefrom = tep_db_prepare_input($HTTP_POST_VARS['pricefrom']);    $priceto = tep_db_prepare_input($HTTP_POST_VARS['priceto']);    $quantity = tep_db_prepare_input($HTTP_POST_VARS['quantity']);    $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);    if (tep_validate_email($email_address)) {      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $category . "\n\n" . $pricefrom . "\n" . $priceto . "\n\n" . $quantity . "\n\n" . $enquiry, $name, $email_address);

    i am asking that can i define a constant after the in th tep_mail funcion. like adding TITLE_TEXT before $category and such variables. what do you think??

  13. same for me, i use ms word to do all sorts of work usually reqd. to be done through pagemaker or corel draw. ok coming back to the topic. i dont have any need for background color, it's simple white,but there are roughness on the sides of the logo. this is what i need to look at first. second, i wanted to add some sort of colour that is blue, but not simple blue, somewhat dithered and having a rough colour surface just like gmails' logo. i know it's designed by a pro. but there might be some way to get the surface colour rough yet glittering with borders (sides) being smooth. thanks

  14. If you are in such a hurry, you can search for a 3 column layout here:GoogleI love to help people as much as I can. I'm hardly an expert in anything, but I do like to provide a place where people can learn. That way you might find something that I need help with down the road.I apologize I didn't lay out your entire page for you. :)

    you dont need to apologize, you did whatever you could and that's nothing wrong. CHEER UP!!! :) thanks
×
×
  • Create New...