Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aftabn10

Pioneers
  • Posts

    250
  • Joined

  • Last visited

Posts posted by aftabn10

  1. Hi I was looking for some help in regards to setting up multiple options for 1 item in my shop.

    I have recently installed v2.3.4 BS [EDGE] along with QT Pro v2.3.4 and this is all setup correctly. The problem I have is that I am looking to setup the following attributes for 1 product but getting a bit confused when setting this up, hence I thought I would ask for some help.

    image.png.cdf9987cade3be1ed59dcb00ff000289.png

    I have setup the product attributes (prod_attr.jpg attached) with the options, option values and the attributes. I have also setup the product stock page (prod_stock.jpg attached). The confusing thing on this page is that I have 2 boxes for Quantity, but I have added a high total for the default quantity as this is business cards the item doesnt really go out of stock, its down to as and when this is ordered.

    The last page (prod_page.jpg) shows the product page, but for some reason the drop down shows duplicate values and for the options [1000], [Single Sided] it doesnt show the correct price.

    Would really appreciate if if somebody could advise on where I am going wrong and how i can fix this.

    Thanks in advance.

    prod_attr.jpg

    prod_page.jpg

    prod_stock.jpg

  2. Hi, I was looking for some help in regards to understanding the order of data within the product_listing.php page. Thanks to the following contribution, I have managed to display the product listing in a grid view but the problem I am having is trying to workout how it is determined that the image shows first and then the product name, price etc.

     

    http://addons.oscommerce.com/info/8670

     

    If somebody could help me understand, as I would like to rearrange this and have the product name on top, then the image, price and lastly add to cart button.

     

    The following is the code for the product_listing.php that was downloaded from the above contribution.

    <?php
    /*
      $Id$
    
      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com
    
      Copyright (c) 2010 osCommerce
    
      Released under the GNU General Public License
    */
    
    ///// BOF CONFIGURATION OPTIONS FOR LIST -OR- GRID LISTING STYLE /////
    
    ///// BOF LIST VIEW OPTIONS /////
    //default configuration of stock osCommerce install
    //if this is set to true $define_grid_view below must be set to false
    //change to false to use grid view
    $define_list_view = false;
    ///// EOF LIST VIEW OPTIONS /////
    
    ///// BOF GRID VIEW OPTIONS /////
    //new configuration to use grid product listing style
    //if this is set to true $define_list_view above must be set to false
    //change to true to use grid view
    $define_grid_view = true;
    //how many items per row in the grid?
    $items_per_row = '4';
    ///// EOF GRID VIEW OPTIONS /////
    
    ///// NO NEED TO EDIT PAST THIS POINT /////
    if ( $define_list_view == true ) { $define_grid_view = false; }
    if ( $define_list_view == false && $define_grid_view == false ) { $define_list_view = true; }
    $items_per_row = $items_per_row-1;
    
    ///// EOF CONFIGURATION OPTIONS FOR LIST -OR- GRID LISTING STYLE /////
    
      $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');
    ?>
    
      <div class="contentText">
    
    <?php
      if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
    ?>
    
        <div>
          <span style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span>
    
          <span><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></span>
        </div>
    
        <br />
    
    <?php
      }
    if ( $define_list_view == true && $define_grid_view == false ) {//BOF list view
      $prod_list_contents = '<div class="ui-widget infoBoxContainer">' .
                            '  <div class="ui-widget-header ui-corner-top infoBoxHeading">' .
                            '    <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingHeader">' .
                            '      <tr>';
    
      for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
        $lc_align = '';
    
        switch ($column_list[$col]) {
          case 'PRODUCT_LIST_MODEL':
            $lc_text = TABLE_HEADING_MODEL;
            $lc_align = '';
            break;
          case 'PRODUCT_LIST_NAME':
            $lc_text = TABLE_HEADING_PRODUCTS;
            $lc_align = '';
            break;
          case 'PRODUCT_LIST_MANUFACTURER':
            $lc_text = TABLE_HEADING_MANUFACTURER;
            $lc_align = '';
            break;
          case 'PRODUCT_LIST_PRICE':
            $lc_text = TABLE_HEADING_PRICE;
            $lc_align = 'right';
            break;
          case 'PRODUCT_LIST_QUANTITY':
            $lc_text = TABLE_HEADING_QUANTITY;
            $lc_align = 'right';
            break;
          case 'PRODUCT_LIST_WEIGHT':
            $lc_text = TABLE_HEADING_WEIGHT;
            $lc_align = 'right';
            break;
          case 'PRODUCT_LIST_IMAGE':
            $lc_text = TABLE_HEADING_IMAGE;
            $lc_align = 'center';
            break;
          case 'PRODUCT_LIST_BUY_NOW':
            $lc_text = TABLE_HEADING_BUY_NOW;
            $lc_align = 'center';
            break;
        }
    
        if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
          $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
        }
    
        $prod_list_contents .= '        <td' . (tep_not_null($lc_align) ? ' align="' . $lc_align . '"' : '') . '>' . $lc_text . '</td>';
      }
    
      $prod_list_contents .= '      </tr>' .
                             '    </table>' .
                             '  </div>';
    
      if ($listing_split->number_of_rows > 0) {
        $rows = 0;
        $listing_query = tep_db_query($listing_split->sql_query);
    
        $prod_list_contents .= '  <div class="ui-widget-content ui-corner-bottom productListTable">' .
                               '    <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingData">';
    
        while ($listing = tep_db_fetch_array($listing_query)) {
          $rows++;
    
          $prod_list_contents .= '      <tr>';
    
          for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
            switch ($column_list[$col]) {
              case 'PRODUCT_LIST_MODEL':
                $prod_list_contents .= '        <td>' . $listing['products_model'] . '</td>';
                break;
              case 'PRODUCT_LIST_MANUFACTURER':
                $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a></td>';
                break;
              case 'PRODUCT_LIST_PRICE':
                if (tep_not_null($listing['specials_new_products_price'])) {
                  $prod_list_contents .= '        <td align="right"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></td>';
                } else {
                  $prod_list_contents .= '        <td align="right">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td>';
                }
                break;
              case 'PRODUCT_LIST_QUANTITY':
                $prod_list_contents .= '        <td align="right">' . $listing['products_quantity'] . '</td>';
                break;
              case 'PRODUCT_LIST_WEIGHT':
                $prod_list_contents .= '        <td align="right">' . $listing['products_weight'] . '</td>';
                break;
              case 'PRODUCT_LIST_IMAGE':
                if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
                  $prod_list_contents .= '        <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
                } else {
                  $prod_list_contents .= '        <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
                }
                break;
              case 'PRODUCT_LIST_BUY_NOW':
                $prod_list_contents .= '        <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>';
                break;
            }
          }
    
          $prod_list_contents .= '      </tr>';
        }
    
        $prod_list_contents .= '    </table>' .
                               '  </div>' .
                               '</div>';
    
        echo $prod_list_contents;
    	
      } else {
    ?>
    
        <p><?php echo TEXT_NO_PRODUCTS; ?></p>
    
    <?php
      }
    }//EOF list view
    if ( $define_grid_view == true && $define_list_view == false ) {//BOF grid view
    
      if ($listing_split->number_of_rows > 0) {
        $rows = 0;
        $listing_query = tep_db_query($listing_split->sql_query);
    	
    	$sort_options[0] = array('id' => ' ', 'text' => 'Alphabetically'); 
    	$sort_options[1] = array('id' => '3a', 'text' => 'Price Low to High');
    	$sort_options[2] = array('id' => '3d', 'text' => 'Price High to Low');
    	
    	$prod_list_contents .= '<div>' . tep_draw_form('filter_by', FILENAME_DEFAULT, 'get') . '<p align="right"><strong>' . TEXT_SORT_PRODUCTS . TEXT_BY . ' </strong>' . tep_draw_hidden_field('cPath', $cPath) . tep_draw_pull_down_menu('sort', $sort_options, '', 'onchange="this.form.submit()"') . tep_hide_session_id() . '</p></form></div>' . "\n";
    
        $prod_list_contents .= '  <div class="ui-widget-content ui-corner-bottom">' .
                               '    <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingData">';
    
        while ($listing = tep_db_fetch_array($listing_query)) {
          $rows++;
    	  
    	  if ( $rows == '1' ) {
    	  	$prod_list_contents .= '<tr>';
    	  }
    
          $prod_list_contents .= '<td style="text-align:center;">';
    
          for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
            switch ($column_list[$col]) {
              case 'PRODUCT_LIST_MODEL':
                $prod_list_contents .= '<br />' . $listing['products_model'];
                break;
              case 'PRODUCT_LIST_NAME':
                if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
                  $prod_list_contents .= '<br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
                } else {
                  $prod_list_contents .= '<h3><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a></h3>';
                }
                break;
              case 'PRODUCT_LIST_MANUFACTURER':
                $prod_list_contents .= '<br /><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a>';
                break;
              case 'PRODUCT_LIST_PRICE':
                if (tep_not_null($listing['specials_new_products_price'])) {
                  $prod_list_contents .= '<br /><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
                } else {
                  $prod_list_contents .= '<br /><p class="price-text">OUR PRICE:<p class="price">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']). '</p></p>');
                }
                break;
              case 'PRODUCT_LIST_QUANTITY':
                $prod_list_contents .= '<br />' . $listing['products_quantity'];
                break;
              case 'PRODUCT_LIST_WEIGHT':
                $prod_list_contents .= '<br />' . $listing['products_weight'];
                break;
              case 'PRODUCT_LIST_IMAGE':
                if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
                  $prod_list_contents .= '<br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
                } else {
                  $prod_list_contents .= '<br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
                }
                break;
              case 'PRODUCT_LIST_BUY_NOW':
                $prod_list_contents .= '<br />' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']));
                break;
            }
          }
    
          $prod_list_contents .= '</td>';
    	  
    	  if ( $rows > $items_per_row ) { 
    	  	$prod_list_contents .= '</tr>';
    		$rows = 0;
    	  }
        }
    
        $prod_list_contents .= '    </table>' .
                               '  </div>';
    
        echo $prod_list_contents;
    	
      } else {
    ?>
    
        <p><?php echo TEXT_NO_PRODUCTS; ?></p>
    
    <?php
      }
    }//EOF grid view
      if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
    ?>
    
        <br />
    
        <div>
          <span style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span>
    
          <span><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></span>
        </div>
    
    <?php
      }
    ?>
    
      </div>
    
    

    I would really appreciate it, if someone could give me some pointers as I have been through the grid view code (above) and not sure how the order is worked out as in the code the case for image is shown just before the buy now button.

     

    Thanks in advance, hope the above makes sense.

  3. Thanks Gergely, managed to write the different classes and this works brilliantly!

     

    Btw, just out of curiosity is it possible to have the banner cycle module to only show on certain pages. For example I have added 4 rotating banners to my header, but i would like to show this on the homepage. For all my other pages I would like to have this switched off, is this possible?

     

    Btw, thanks once again for all your help.

  4. Hi, sorry to repeat myself, but i love this contribution, does exactly what i needed. I had a quick question in regards to the menu module (part of hfc), is it possible to have different colours for the background for certain menu items. For example I have 5 menu items the first 3 i would like them to have a background of blue and the last 2 i would like them to have a background of magenta?

     

    Apologies as not sure how i can do this, so any advice would be really appreciated.

     

    Thanks in advance.

  5. Thanks Gergely, sorry for the silly question but what module allows me to install the banners, as im not too sure when i have looked at the available modules

    Apologies should have mentioned that I have tried to look for Banner Cycle within the list of available modules to install and this doesnt show up and also just to clarify I have installed version 1.3.

  6. Hi kymation, sorry to trouble again. I seem to be having a few issues, read my post earlier, but it doesnt make sense, so i thot id explain my issues clearly.

     

    I have managed to install the module and have added my required filters but for some reason when I activate more than one specification, the page shows the filters but overlapping each other and the 2nd specification title shows up twice. At the same time the footer shows up in the middle of my products rather than at the bottom. (at present i am only showing 1 filter)

     

    These issues are displayed at the following: http://s116169771.websitehome.co.uk/rnd/index.php?cPath=22'>http://s116169771.websitehome.co.uk/rnd/index.php?cPath=22

     

    The other issue is within the homepage. Whenever I activate a filter, the homepage than shows a filter products box at the bottom and I would like to hide this but not sure how. I checked the User Manual and page 17 shows the product specifications image where you have a show filters box so im not sure if this is the option, but when I look within my admin > configuration > products specification than this option is not there.

     

    Homepage: http://s116169771.websitehome.co.uk/rnd/

     

    The version I have downloaded is 1.1 but not sure if there is an update after that.

     

    Sorry once again for troubling, any advice would be really appreciated. Thanks

  7. hi kymation, sorry to trouble. I seem to be having a couple of issue at the moment. First one I have noticed is that on my homepage I have a filter products box showing up and I would like to hide this, so I checked the user guide and seen an option on page 17 that shows a show filters box option but when I checked my options this isnt there?

     

    Another issue is when I activate more than one specification, than these overlap each other and one of the specification shows the title twice for some reason.

     

    Not sure if the version I have needs to be updated or where I have gone wrong. Any help would be appreciated.

     

    The site has just been uploaded and can be viewed at http://s116169771.websitehome.co.uk/rnd/index.php

     

    Thanks once again for all your help.

  8. hi kymation, first of all wanted to thank you for a brilliant contribution. This really helps me with what im trying to add to my website at the moment, so thank you once again.

     

    I had a quick question relating to the filters, I am trying to apply some styling to the values for each filter and when checking through Firefox Web Developer the style for the value is showing as:

     

    <span class="no_results">
      Gloss
       </span><br></br>

     

    but for the life of me I cant seem to find where I can change the span to a div as would like to apply a bottom border under each selection. Not sure if this the correct way, but any help would be really useful.

     

    I have found the label and filtertable tags in bm_products_filter.php but cant seem to workout how to fix the above.

     

    Thanks in advance

  9. @@kymation, sorry might be a silly question (prob not thinking straight lol). I have managed to create a new spec group called colour, and linked that to 1 of the categories. I then created a specification called Product Colour and set the display filter as links. Lastly I added a filter called Shop by Door Colour and added colour values within every product.

     

    The problem is that I can see the colour values in the product info page but the filters arent showing up on the category page ( I have installed the product filters modules under boxes). Am i missing something? Also just noticed that the settings within the specification seem to change as when I go back and forth the display filter goes back to default.

     

    Sorry to trouble btw...

  10. Thanks kymation, forgot to mention the close tags have been added. I removed the container tag as not sure why I had that there in the first place! The wrapper tag was so that I can apply the grey background. I guess I need to work out how to show (positions, css styles) on the page as banner 2 and 3 have been added in the banner manager, but just need to work out how to show it next to banner 1.

     

    Thanks for your help, much appreciated.

  11. Jim, first of all wanted to thank you for this wonderful module. Has made my life a whole lot easier with the ability to make a custom homepage. What i was looking to find out is it possible to setup a banner like the attachment...

     

    I am currently in the process of setting this up and have made the following changes to the files, but just wanted to make sure I am taking the right steps and not over complicated things for myself.

     

    catalog\includes\modules\front_page\banner_rotator.php (changes)

     

    added the following divs to line 60

     

    	  $body_text .= '  <div id="container"><div id="wrapper"><div id="bannerRotator">' . PHP_EOL;
    

     

    and the additions to the css file (banner_rotator\stylesheet.css)

     

    #container {
    margin:0;
    height: 500px;
    width:950px;
       overflow: hidden; /* clear the float */
    }
    #wrapper {
    margin:0;
    height: 262px;
    width:950px;
       overflow: hidden; /* clear the float */
    background:#dcdedc;
    }
    

     

    This has now given me the grey background and also managed to add banner1, but now I am stuck not sure how I go about adding banner 2 and banner 3.

     

    Any advice would be really appreciated.

     

    Thanks in advance.

     

    post-193464-0-49551900-1365281181_thumb.jpg

×
×
  • Create New...