Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jack_frost

Pioneers
  • Posts

    225
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by jack_frost

  1. Not sure if this is the correct support thread but i installed this Wishlist on my page:

     

    http://addons.oscommerce.com/info/8665/v,23

     

    Everything seems to work fine except when i am on the wishlist page, i dont seem to have the Email fields:

     

    post-149860-0-59572400-1405752865_thumb.jpg

     

    Only the My Email and My name is displayed.

     

    Also, in the admin section, under configuration, this is what i see in the Wishlist tab:

     

    post-149860-0-90599600-1405752697_thumb.png

     

    This is my catalog/wishlist.php

    <?php
    /*
      $Id: wishlist.php,v 3.11  2005/04/20 Dennis Blake
      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com
    
      Released under the GNU General Public License
    */
    // This version, removes the product when adding to a cart now, replaced all of the  HTTP_POST_VARS for $_POST
    
      require('includes/application_top.php');
      require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST);
    
    /*******************************************************************
    ******* ADD PRODUCT TO WISHLIST IF PRODUCT ID IS REGISTERED ********
    *******************************************************************/
    
      if(tep_session_is_registered('wishlist_id')) {
      	$wishList->add_wishlist($wishlist_id, $attributes_id);
    /*******************************************************************
    ******* CREATES COOKIE TO STORE WISHLIST ON LOCAL COMPUTER  ********
    ********************************************************************
    ******* TO CHANGE THE LENGTH OF TIME THE COOKIE IS STORED:  ********
    *******                                                     ********
    ******* EDIT THE "DAYS" VARIABLE BELOW.  THIS VARIABLE IS   ********
    ******* THE NUMBER OF DAYS THE COOKIE IS STORED.            ********
    *******************************************************************/	
    	//	$days = 30;																															
    	//	$time = time() + (3600 * 24 * $days);
    	// 	$cook_id = serialize($wishList->wishID);
    	//	tep_setcookie('wish', $cook_id , $time);
    /***********************END CHANGE*********************************/
        $product_id = $wishlist_id;
       	tep_session_unregister('wishlist_id');
      	if(tep_session_is_registered('attributes_id')) tep_session_unregister('attributes_id');
      	if(WISHLIST_REDIRECT == 'Yes') {
    	  	tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_id));
    	  }
      }
    
    
    /*******************************************************************
    ****************** ADD PRODUCT TO SHOPPING CART ********************
    *******************************************************************/
    
      if (isset($_POST['add_wishprod'])) {
      	if(isset($_POST['wlaction']) && $_POST['wlaction'] == 'cart') {
    	  	foreach ($_POST['add_wishprod'] as $value) {
    		  	$product_id = tep_get_prid($value);
    			  $cart->add_cart($product_id, $cart->get_quantity(tep_get_uprid($product_id, $_POST['id'][$value]))+1, $_POST['id'][$value]);
    			  $wishList->remove($value);
    			}
    			if (DISPLAY_CART == 'true') tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    		}
    	}
      
    
    
    /*******************************************************************
    ****************** DELETE PRODUCT FROM WISHLIST ********************
    *******************************************************************/
    
      if (isset($_POST['add_wishprod'])) {
      	if(isset($_POST['wlaction']) && $_POST['wlaction'] == 'delete') {
    	  	foreach ($_POST['add_wishprod'] as $value) {
    		  	$wishList->remove($value);
    		  }
    	  }
      }
    
    
    /*******************************************************************
    ************* EMAIL THE WISHLIST TO MULTIPLE FRIENDS ***************
    *******************************************************************/
    
      $wishlist_not_empty = false;
      if (is_array($wishList->wishID) && !empty($wishList->wishID)) {
        $wishlist_not_empty = (count($wishList->wishID) > 0);
      }
    
      if (isset($_POST['wlaction']) && ($_POST['wlaction'] == 'email') && isset($_POST['formid']) && ($_POST['formid'] == $sessiontoken) && $wishlist_not_empty) {
    
    		$error = false;
    		$guest_errors = "";
    		$email_errors = "";
    		$message_error = "";
    
      	$message = tep_db_prepare_input($_POST['message']);
    		if(strlen($message) < 1) {
    			$error = true;
    			$message_error .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_MESSAGE . "</div>";
    		}			
        // check for links to other web sites, a sign that a spammer is trying to use this site to send spam
        $protocols = array('http://', 'https://', 'file://', 'ftp://', 'news://' 'mailto:', 'telnet://', 'ssh:');
        $check = strtolower($message);
        $thisdomain = HTTP_SERVER;
        $thisdomain = strtolower(substr($thisdomain, strpos($thisdomain, '://') + 3));
        foreach ($protocols as $p ) {
          $x = 0;
          while (strpos($check, $p, $x) !== false) {
            $x = strpos($check, $p, $x) + strlen($p);
            if ((substr($check, $x, strlen($thisdomain)) != $thisdomain) || !preg_match('/\/|\s/', substr($check, $x + strlen($thisdomain), 1))) {
              $error = true;
              $message_error .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_INVALID_LINK . "</div>";
            }
          }
        }
    
     		if(tep_session_is_registered('customer_id')) { // logged in
    			$customer_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
    	  	if (tep_db_num_rows($customer_query) != 1 ) tep_redirect(tep_href_link(FILENAME_LOGOFF, '', 'SSL')); // invalid customer id
    	  	$customer = tep_db_fetch_array($customer_query);
    	
    			$from_name = $customer['customers_firstname'] . ' ' . $customer['customers_lastname'];
    			$from_email = $customer['customers_email_address'];
    			$subject = $customer['customers_firstname'] . ' ' . WISHLIST_EMAIL_SUBJECT;
    			$link = tep_href_link(FILENAME_WISHLIST_PUBLIC, "public_id=" . $customer_id);
    	
    			$body = $message . sprintf(WISHLIST_EMAIL_LINK, $from_name, $link, $link);
    		} else { // guest
    			$from_name = tep_db_prepare_input($_POST['your_name']);
    			$from_email = tep_db_prepare_input($_POST['your_email']);
    			if(strlen($from_name) < 1) {
    				$error = true;
    				$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_YOUR_NAME . "</div>";
    			}
    			if(strlen($from_email) < 1) {
    				$error = true;
    				$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " .ERROR_YOUR_EMAIL . "</div>";
    			} elseif(!tep_validate_email($from_email)) {
    				$error = true;
    				$guest_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_VALID_EMAIL . "</div>";
    			}
    
    			$subject = $from_name . ' ' . WISHLIST_EMAIL_SUBJECT;
    
    			$z = 0;
    			$prods = "";
    			foreach($_POST['prod_name'] as $name) {
    				$prods .= '<a href="' . tep_db_prepare_input($_POST['prod_link'][$z]) .'">' . tep_db_prepare_input($name) . "  " . tep_db_prepare_input($_POST['prod_att'][$z]) . "\n" . tep_db_prepare_input($_POST['prod_link'][$z]) . "</a>\n\n";
    				$z++;
    			}
    			$body = $message . "\n\n" . $prods . "\n\n" . $from_name . WISHLIST_EMAIL_GUEST;
    	  }
    
    		//Check each posted name => email for errors.
        $email = tep_db_prepare_input($_POST['email']);
        $friend = tep_db_prepare_input($_POST['friend']);
    		for ($j=0; $j < sizeof($friend); $j++) {
    		  $friend[$j] = $friend[$j];
    			if($j == 0) {
    				if($friend[0] == '' && $email[0] == '') {
    					$error = true;
    					$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_ONE_EMAIL . "</div>";
    				}
    			}
    
    			if(isset($friend[$j]) && $friend[$j] != '') {
    				if(strlen($email[$j]) < '1') {
    					$error = true;
    					$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_ENTER_EMAIL . "</div>";
    				} elseif(!tep_validate_email($email[$j])) {
    					$error = true;
    					$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_VALID_EMAIL . "</div>";
    				}
    			}
    
    			if(isset($email[$j]) && $email[$j] != '') {
    				if(strlen($friend[$j]) < '1') {
    					$error = true;
    					$email_errors .= "<div class=\"messageStackError\"><img src=\"images/icons/error.gif\" /> " . ERROR_ENTER_NAME . "</div>";
    				}
    			}
    		}
    
        // check for attempt to send email from another page besides this sites Wish List script
        if (substr($_SERVER['HTTP_REFERER'], 0, strpos($_SERVER['HTTP_REFERER'], '.php') + 4) != tep_href_link(FILENAME_WISHLIST)) {
          if (tep_session_is_registered('customer_id')) {
            $cid = $customer_id;
          } else {
            $cid = TEXT_SPAM_NO_ID;
          }
          $spammsg = sprintf(TEXT_SPAM_MESSAGE, date('l F j, Y  H:i:s'), $cid, $from_name, $from_email, $_SERVER['HTTP_REFERER'], tep_get_ip_address(), $_SERVER['REMOTE_PORT'], $_SERVER['HTTP_USER_AGENT']) . $message;
          tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, TEXT_SPAM_SUBJECT, $spammsg, $from_name, $from_email_address);
          foreach ($_SESSION as $key => $value) unset($_SESSION[$key]);
          echo ERROR_SPAM_BLOCKED;
          tep_exit();
        }
    
        $actionRecorder = new actionRecorder('ar_wish_list', (tep_session_is_registered('customer_id') ? $customer_id : null), $from_name);
        if (!$actionRecorder->canPerform()) {
          $error = true;
    
          $actionRecorder->record(false);
    
          $messageStack->add('wishlist', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_WISH_LIST_EMAIL_MINUTES') ? (int)MODULE_ACTION_RECORDER_WISH_LIST_EMAIL_MINUTES : 15)));
        }
    
    		if($error == false) {
    			for ($j=0; $j < sizeof($friend); $j++) {
    				if($friend[$j] != '') {
    					tep_mail($friend[$j], $email[$j], $subject, $friend[$j] . ",\n\n" . $body, $from_name, $from_email);
    				}
    			//Clear Values
    				$friend[$j] = "";
    				$email[$j] = "";
    			}
    			$message = "";
    			$actionRecorder->record();
         	$messageStack->add('wishlist', WISHLIST_SENT, 'success');
    		}
      }
    
    
     $breadcrumb->add(NAVBAR_TITLE_WISHLIST, tep_href_link(FILENAME_WISHLIST, '', 'SSL'));
     
     require(DIR_WS_INCLUDES . 'template_top.php');
     if ($messageStack->size('wishlist') > 0) {
        echo '<div>' . $messageStack->output('wishlist') . '</div>';
      }
    ?>
    
    <h1><?php echo HEADING_TITLE; ?></h1>
    <div class="contentContainer"> <?php echo tep_draw_form('wishlist_form', tep_href_link(FILENAME_WISHLIST), 'post', '', true);
    
    if (is_array($wishList->wishID) && !empty($wishList->wishID)) {
    	reset($wishList->wishID);
    ?>
      <table border="0" width="100%" cellspacing="0" cellpadding="3" class="smallTexties">
        <tr>
          <td class="smallTexties"><?php echo BOX_TEXT_IMAGE; ?></td>
          <td class="smallTexties"><?php echo BOX_TEXT_PRODUCT; ?></td>
          <td class="smallTexties"><?php echo BOX_TEXT_PRICE; ?></td>
          <td class="smallTexties" align="center"><?php echo BOX_TEXT_SELECT; ?></td>
        </tr>
        <?php
    		$i = 0;
    		while (list($wishlist_id, ) = each($wishList->wishID)) {
    
    			$product_id = tep_get_prid($wishlist_id);
    		
    		    $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_status, p.products_price, 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 = '" . (int)$product_id . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by products_name");
    			$products = tep_db_fetch_array($products_query);
    
    		      if (($i/2) == floor($i/2)) {
    		        $class = "smallTexties";
    		      } else {
    		        $class = "smallTexties";
    		      }
    
    ?>
        <tr class="<?php echo $class; ?>">
          <td valign="top" class="smallTexties" align="left"><?php if($products['products_status'] == 0) {
    				   			 echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); 
    				   		} else {
    					?>
            <a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $wishlist_id, 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name'], SMALL_IMAGE_WIDTH-80, SMALL_IMAGE_HEIGHT); ?></a>
            <?php } ?>
            <td valign="top" class="contentTextir" align="left" class="main">
            <strong>
            <?php if($products['products_status'] == 0) {
    					echo $products['products_name']; 
    					}
    					else {
    					?>
            <a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $wishlist_id, 'NONSSL'); ?>"><?php echo $products['products_name']; ?></a>
            <?php } ?>
            </strong>
            <input type="hidden" name="prod_link[]" value="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $wishlist_id, 'NONSSL'); ?>" />
            <input type="hidden" name="prod_name[]" value="<?php echo $products['products_name']; ?>" />
            <?php
    
    
    
    /*******************************************************************
    ******** THIS IS THE WISHLIST CODE FOR PRODUCT ATTRIBUTES  *********
    *******************************************************************/
    
                      $attributes_addon_price = 0;
    
                      // Now get and populate product attributes
    					$att_name = "";
    					if (isset($wishList->wishID[$wishlist_id]['attributes'])) {
    						while (list($option, $value) = each($wishList->wishID[$wishlist_id]['attributes'])) {
                          		echo tep_draw_hidden_field('id[' . $wishlist_id . '][' . $option . ']', $value);
    
             					$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 = '" . (int)$wishlist_id . "'
                                           and pa.options_id = '" . (int)$option . "'
                                           and pa.options_id = popt.products_options_id
                                           and pa.options_values_id = '" . (int)$value . "'
                                           and pa.options_values_id = poval.products_options_values_id
                                           and popt.language_id = '" . (int)$languages_id . "'
                                           and poval.language_id = '" . (int)$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'];
    							}
    							$att_name .= " (" . $attributes_values['products_options_name'] . ": " . $attributes_values['products_options_values_name'] . ") ";
                           		echo '<br /><small><em> ' . $attributes_values['products_options_name'] . ': ' . $attributes_values['products_options_values_name'] . '</em></small>';
                        	} // end while attributes for product
    
    					}
    
    					echo '<input type="hidden" name="prod_att[]" value="' . $att_name . '" />';
    
                       	if (tep_not_null($products['specials_new_products_price'])) {
                       		$products_price = '<del>' . $currencies->display_price($products['products_price']+$attributes_addon_price, tep_get_tax_rate($products['products_tax_class_id'])) . '</del> <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_id)) {
    				echo '<br /><strong style="color: red">' . TEXT_ITEM_IN_CART . '</strong>';
    			}
    
    /*******************************************************************
    ********** CHECK TO SEE IF PRODUCT IS NO LONGER AVAILABLE **********
    *******************************************************************/
    
       			if($products['products_status'] == 0) {
       				echo '<br /><strong style="color: red">' . TEXT_ITEM_NOT_AVAILABLE . '</strong>';
      			}
    	
    			$i++;
    ?></td>
          <td valign="top" class="smallTexties"><?php echo $products_price; ?></td>
          <td valign="top" class="smallTexties" 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_id);
    			}
    ?></td>
        </tr>
        <?php
    		}
    ?>
      </table>
      <br />
      <div id="mydiv"></div>
      <?php echo tep_draw_button(BUTTON_TEXT_ADD_CART, 'cart', null, 'primary', array('params' => 'onclick=\'var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "wlaction"); input.setAttribute("value", "cart"); document.getElementById("mydiv").appendChild(input);\'')) . " " . tep_draw_button(BUTTON_TEXT_DELETE, 'trash', null, 'primary', array('params' => 'onclick=\'var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "wlaction"); input.setAttribute("value", "delete"); document.getElementById("mydiv").appendChild(input);\''))?>
      <?php
    /*******************************************************************
    *********** CODE TO SPECIFY HOW MANY EMAILS TO DISPLAY *************
    *******************************************************************/
    
    
    if(!tep_session_is_registered('customer_id')) {
    ?>
      <div class="contentTextir">
        <p><?php echo WISHLIST_EMAIL_TEXT_GUEST; ?></p>
        <table cellpadding="2" cellspacing="0">
          <tr>
            <td colspan="2"><?php echo $guest_errors; ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_YOUR_NAME; ?></td>
            <td class="main"><?php echo tep_draw_input_field('your_name', $your_name); ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_YOUR_EMAIL; ?></td>
            <td class="main"><?php echo tep_draw_input_field('your_email', $your_email); ?></td>
          </tr>
        </table>
      </div>
      <?php
    	} else {
    ?>
      <div class="contentTextir">
        <p><?php echo WISHLIST_EMAIL_TEXT; ?></p>
      </div>
      <?php
    	}
    ?>
      <p><?php echo $email_errors; ?></p>
      <?php
    	$email_counter = 0;
    ?>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <?php
    	while($email_counter < DISPLAY_WISHLIST_EMAILS) {
    ?>
        <tr>
          <td class="main"><?php echo TEXT_NAME; ?>  <?php echo tep_draw_input_field('friend[]', $friend[$email_counter]); ?></td>
          <td class="main"><?php echo TEXT_EMAIL; ?>  <?php echo tep_draw_input_field('email[]', $email[$email_counter]); ?></td>
        </tr>
        <?php
    	$email_counter++;
    	}
    ?>
        <tr>
          <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
        </tr>
        <tr>
          <td colspan="2"><?php echo $message_error; ?></td>
        </tr>
        <tr>
          <td colspan="2" class="main"><?php echo TEXT_MESSAGE .  tep_draw_textarea_field('message', 'soft', 45, 5); ?></td>
        </tr>
        <tr>
          <td colspan="2" align="right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary', array('params' => 'onclick=\'var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "wlaction"); input.setAttribute("value", "email"); document.getElementById("mydiv").appendChild(input);\'')); ?></td>
        </tr>
      </table>
      </form>
      <?php
    
    } else { // Nothing in the customers wishlist
    
    ?>
      <div class="smallTexties"> <?php echo BOX_TEXT_NO_ITEMS; ?> </div>
      <?php } ?>
      </form>
    </div>
    <?php 
      require(DIR_WS_INCLUDES . 'template_bottom.php');
      require(DIR_WS_INCLUDES . 'application_bottom.php');
    ?>
    
    

    I cant seem to figure out if i made a mistake in isntalling the add-on, if im just too stupid to figure out how it works.

     

    - Jack

  2. Hello!

    I am having some trouble with this add on.

    When looking at my wish list, i dont seem to have any fields in which to write who shoul receive the wishlist:

     

    post-149860-0-59572400-1405752865_thumb.jpg

     

    And also, in my admin section under the "Wishlist category" i dont seem to have any data:

     

    post-149860-0-90599600-1405752697_thumb.png

     

    Anyone who have had similar problems, and know of a solution?

     

    Best Regards

     

    - Jack

  3. Hi!

     

    I have a webshop and a physical store, and everything on the webshop is in stock at my physical store.

     

    However i would like to open a warehouse, so i can expand the number of items on my webshop without regards to what i can fit in my physical store.

     

    But to help my customers to see what i have in stock in my physical store, and what is ready to ship becaouse we have it in stock in my warehouse, i would like something like this Stock information:

     

    http://www.4sound.dk/shop/elektriske-guitarer/gibson/les-paul-traditional-ebony-black.html

     

    You can see it in the right side.

     

    It displays that it is in stock in some of their departments, and out of stock in others.

     

    Is there such a contribution for OsC?

     

    Best Regards.

     

    Jack

  4. I made this change:

     

    This is what you have written:

     

    // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well,

    // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk

    if ($order->content_type == 'virtual' || $total_weight == 0 && $cart->show_total() == 0) {

     

     

    But should read

     

    // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well,

    // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk

    if ($order->content_type == 'virtual' || $total_weight == 0 || $cart->show_total() == 0) {

     

     

    However, it seems to skip the shipping page regardless of the weight i have a product that weighs 0.00 but my other products weigh something and they skip the shipping as well

  5. It would be something like changing this part

    tep_draw_input_field($field['field_name'], $field['field_value']);
    

    to this

    tep_draw_input_field($field['field_name'], $field['field_value'], 'style="width:100px"');
    

    Yes! - again thank you so much, that worked.

     

    However, i would like it to have more lines. like the Text_input field in Product description.

     

    if i 'style="width:400px;height:200px"' it doenst make more lines, it only gives me alot of white over and under the one input line.

  6. If you mean the size of the input field in categories.php, you could find the code that adds the box ( tep_draw_input_field) and add a width attribute to it.

     

    Yes that was what i meant!

     

    Width and height! - i would very much like to be able to see more than one line at a time.

     

    				 <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '100', '15') . ' ' . tep_draw_pull_down_menu($field['field_name'].'[' . (int)$field['language_id'] . ']', $optionArray, $selected) . '  ' . $languages[$field['language_id']-1]['name']; ?></td>
    			   <?php } else if ($field['table_name'] == TABLE_PRODUCTS_DESCRIPTION) { ?>
    				 <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '100', '15') . ' ' . tep_draw_input_field($field['field_name'] . '[' . (int)$field['language_id'] . ']', $field['field_value']) . '  ' . $languages[$field['language_id']-1]['name']; ?></td>
    			   <?php } else { ?>
    				 <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '100', '15') . ' ' . tep_draw_input_field($field['field_name'], $field['field_value']); ?></td>
    

     

    this is the code that defines the input fiel correct?

     

    How would one add a width (aand height) attribute to it? (i am not that good at coding)

     

    Help is very much apriciated!

  7. This Contrib works great! - but is there a way to make the data field bigger?

     

    I would very much like it to be the same size as the product description data field.

     

    But i cant figure out were the data input fields size is defined.

     

    Thank you

     

    - Jesper

  8. hmmm, back again.

     

    Its becouse of this code:

     

    <div id="headerShortcuts">
    <td>
    <?php
     if (!is_object($lng)) {
       include(DIR_WS_CLASSES . 'language.php');
       $lng = new language;
     }
     if (getenv('HTTPS') == 'on') $connection = 'SSL';
     else $connection = 'NONSSL';
     $languages_string = '';
     reset($lng->catalog_languages);
     while (list($key, $value) = each($lng->catalog_languages)) {
       $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $connection) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>;';
     }
    echo $languages_string;
    ?>
    </td>
    </div>
    

     

    not sure what part. (the code is my work around, to get the language boxes up in the header shortcuts)

  9. this is what i get when i say "show source"

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="LTR" lang="en">
    <head>
    <link rel="icon"
      type="image/jpg"
      href="http://fatima.dk/images/icon.jpg">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Fatima</title>
    <base href="http://fatima.dk/shopp/catalog/" />
    <link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />
    <script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>
    
    <script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
    <script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="ext/960gs/960_24_col.css" />
    
    <link rel="stylesheet" type="text/css" href="stylesheet.css" />
    
    <script type="text/javascript">
     var _gaq = _gaq || [];
     _gaq.push(['_setAccount', 'UA-23015164-1']);
     _gaq.push(['_trackPageview']);
     (function() {
       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
     })();
    </script>
    </head>
    <body>
    <link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
    <div id="bodyWrapper" class="container_24">
    <div class="fixcenter">
    <div id="header" class="grid_24">
     <div id="storeLogo"><a href="http://fatima.dk/shopp/catalog/index.php"><img src="images/store_logo.png" alt="Fatima" title=" Fatima " width="960" height="137" /></a></div>
    <div id="headerShortcuts">
    <td>
    

     

    no error .__.

  10. Hi!

     

    I have a 2.2 shop running, and i am setting up a new shop now in 2.3

     

    i sell clothes, and therefor i need individual stock for each size.

     

    For this, i used the Product Attributes Contribution which added the product attribute directly to the "Create"/"edit" product part of the admin site.

     

    This was heavenly!

     

    However, i am having trouble finding such a contrib for the 2.3?

     

    I tried the QTpro 4.6.1 but this didnt work for some reason, and it seemed to be much more than what i need. i then downloaded the "Stock Per Attributs" contrib, but this is for clean install only, and the guy who made it is saying in his post that "Its not working very well"

     

    Isnt there a Contrib for 2.3 that allows Admin to add the atribs directly in the create product process? if not, isnt there a contrib then, that allows me to have individual stock for each atrib?

     

    Hope someone can help me!

     

    Best Regards.

     

    Jesper / Team Fatima

  11. Hi!

     

    our store have a birthday coming up, and we would like to give the customers a discount of 30% on everything (incl. the shipping) for a two day period.

     

    Is there an add on that will deduct 30% of the order total, just before checkout? (or something similar)

     

    Thank you.

     

    Best Regards.

     

    - Jack

  12. Found this:

     

    Result

     

    Is this what im looking for?

     

    He writes:

    "Some people note me that something is not working well. It is because I installed others contributions in the middle of this programs...

    Perhaps I will paid attetion what is new to make the changes to control quantity stock per attribute.

     

    At the moment I don't have time because I have a lot of work, maybe some day I will rewrite

    better this contributtion.

     

    Otherwise, the idea is in this programs and it works."

     

    So if there is one that isnt bugged, that would be great :)

  13. Hi!

     

    I had an add on for my older OsC, and now that im upgrading (starting from scratch with the 2.3) i want a similar add on.

     

    We are a clothing store, and therefor need the stock to follow the product attributes, not the product it self.

     

    If i have 2 pair of jeans size 30 and two in size 32, and i sell one of each size, it helps me very little that the stock thinks that there is still two pair of the jeans (disregarding the Product Attribute)

     

    The one i had was called "PRODUCT ATTRIBUTES CONTRIB" as the contrib tag in my phps (i dont remember the excact name of it.

     

    Ive tried searching but with no result (sorry if it is a no brainer, i just couldnt find it)

     

    Thanks.

     

    - Jack!

  14. Go to your store's Admin and click on Tools, then Version Checker.

    It should say: Installed Version: osCommerce Online Merchant v2.3.1

     

    If you don't have the version checker, go to Tools >> Server Info instead.

     

    In any case, the file header that you posted has a date of 2003, and osCommerce 2.3 was released in 2010, so you're out of luck. You would have to upgrade to 2.3.1 for this to work.

     

    Regards

    Jim

     

    Uhm, now i have a question.

     

    When going to the updater under 2,2->2,3 i says

     

    "This upgrade guide only provides the minimum required changes in the form of security updates and bug fixes. These changes will not upgrade your store to a complete v2.3 version. Please continue to use v2.2 add-ons and do not install v2.3 optimized add-ons as the may not function with your installation. If you wish to upgrade to a full v2.3 version, perform only (SQL) Database Changes and use the database with a new v2.3 installation."

     

     

    So when i want to use this add on, then am i forced to start all over from scratch? (design wise, and picture wise?) or can i get by with the minimum required changes?

×
×
  • Create New...