Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aftabn10

Pioneers
  • Posts

    250
  • Joined

  • Last visited

About aftabn10

  • Birthday 07/27/1983

Profile Information

  • Real Name
    Aftab
  • Gender
    Male
  • Location
    Manchester

Recent Profile Visitors

10,955 profile views

aftabn10's Achievements

  1. raiwa, thanks for your response. Will have a look through what you mentioned and come back to you. Thanks once again.
  2. 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. 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.
  3. 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.
  4. Gergely, thanks for your reply. Can i move the frontpage module to show the banners within the header line?
  5. 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.
  6. 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.
  7. Thanks Gergely, thot it was part of the version 1.3 as this said it had everything. Thanks will get this downloaded now :)
  8. 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.
  9. 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
  10. Hi, sorry to trouble, first of all, really love this module as its exactly what i needed, so thank you very much. 1 question i had was , does this module come with a banner rotator to add in the header?
  11. Thanks kymation for your advice. Btw where can I download version 1.1.12 as download section only shows 1.1.11
  12. 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
  13. 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.
  14. its me again : ) sorry to trouble. One other thing I have noticed is if i only apply one of the filters or even maybe the footer tag overlaps my products, how can i ensure that this stays fixed to the bottom?
×
×
  • Create New...