Jump to content

joma

Members
  • Content count

    64
  • Joined

  • Last visited

Everything posted by joma

  1. i want to know how i can get my product image to be uploaded to a folder that is to be created on the model number of the product. I use my osc store to sell motor vehicles and the model number is my stock number, so to save the 1000's of images in the catalog/images folder, i want the folder to be created when i add the product, so images for T557 will go in catalog/images/t557/ is this possible, i mean it should be, but can someone help me doing this ?
  2. i want to know how i can get my product image to be uploaded to a folder that is to be created on the model number of the product. I use my osc store to sell motor vehicles and the model number is my stock number, so to save the 1000's of images in the catalog/images folder, i want the folder to be created when i add the product, so images for T557 will go in catalog/images/t557/ is this possible, i mean it should be, but can someone help me doing this ? Sorry, i think this is posted in wrong section....oops
  3. Anyone can help me, i want to output my products_listing.php the same as my products_new.php page. Is there a simple way to do this ? thanks http://caravanmart.com.au/yard/products_new.php http://caravanmart.com.au/yard/index.php?cPath=21_24
  4. joma

    Article Manager v1.0

    Just wondering if it is possible, the idea that you can cross sell products based on an article is cool, however i have set up my articles in a different way, i am using this system for brochures on products i sell. Is it possible to cross sell products based on the article category rather then an article it's self. http://www.caravanmart.com.au/ <-- web page, Articles on the mid left column under Brochures/Specs. I only use the category description box to display the info required as i wanted the article headers visible on the menu at all times. So can i have at the bottom the caravans i sell that relate to the model of the brochure ? Thanks
  5. yeah, i used one of the contributions with the contact us and the tell a friend, i used the snippets from tell a friend to intergrade into the guestbook, i really dont understand why this is like this, i might try installing a new store on the same server as the working mod and see if there is a config difference on the server or something,because it just does not make sence, i have even put all the same files in the other server and nothing, maybe im missing a change i made somewhere, but i looked through the vv code mod aswell but only came up with the same problems didn't seem like i was missing anything...hmmm....*scratching his eyes out*
  6. hey guys, sorry bout this, this is really freakin me out...i tried to install this in another osc store and am having your issues....WHAT THE ?? how is it working on the other site has me frigged, just hold off for a bit and i will try figure this bloody thing out.
  7. just curious if anyone can help, i dont have time to look through 53 pages of posts, is there any suppor here for mulitple product images ?? thanks
  8. Can someone please help me, in my osc site, i use it for selling automobiles like cars, rv's, boats, and a few other things. Just wondering, can anyone assist me in a mod that will allow a dropdown when im entering a field for a new product that will change the form for the selected item. i mean if i had a dropdown, and it has New Cars, Used Cars, Boats, Ect in it. Obviously the fields i need for the boat is different to the New Cars, i want the form to change to suit. Is this possible ? This is sort of urgent if i can get it done, thanks everyone
  9. can someone please help with...his is such a dumb question...can someone help me understand how the shipping modules work, i understand about the cubic weights just dont understand how i should enter the information into osc, as there is only a single weight column in the product's page. Should i enter the cubic weight here ?? if not where do i enter the width, lenght, height, and actual weight. And how does this work if the customer buys several products... will it combine all this toghether....Thanks
  10. Anyone interested in helping me with a mod that will resize images from the admin upon upload. so there is no need for on the fly....more so to preserve disk space on server. Maybe even a watermark on selected images. Any interest much appriciated
  11. joma

    Attribute Sets Plus

    i hope someone is still watching this post. I have an issue with my site. I have installed this and it seemed to be working GREAT.....good concept and very easy to set values, only issue i have how ever is when i assign 2 sets to 1 product, only 1 set will work correctly. When i add to cart only 1 set will display the correct information, the other shows something was added, but it doesnt know what. http://caravanmart.com.au/yard/product_inf...products_id=191 all product attributes at the bottom. If you start adding some products u will see my issue. the top 6 or so are 1 set the rest are a linked components set. if someone could help it would be great. Thanks
  12. im looking for some help with getting the category id from the database in my product_info.php page....what it is for is my site is a salesyard with a few seperate locations and i want he script to get the information from the datbase so it will work like it would have to grab the parent category if catid = 22 then print "Call Geoff on 12345678" elseif catid = 24 then print " Call Bob on 123445678" any help please post or email me on joma@austarnet.com.au
  13. joma

    Validation

    i am trying to come up with a simple solution to prevent robots from adding entries to a few forms in my osc site. I found this little piece of code which origionally compared two password fields and thought it may work?? <script LANGUAGE="JavaScript"> <!-- Begin function checkPw(form) { pw1 = '4dfew'; pw2 = form.pw2.value; if (pw1 != pw2) { alert ("\nYou did not enter the correct correct VALIDATION KEY") return false; } else return true; } // End --> </script> <form onSubmit="return checkPw(this)"> <center> <table border=0> <tr> <td>Re-enter:</td><td><input type=text name=pw2 size=10></td> </tr> <tr> <td colspan=2 align=center><input type=submit value="Submit!"></td> </tr> </table> </form> and this is the file i am trying to insert it into guestbook_sign.php <?php /* $Id: guestbook_sign.php,v 1.0 2003/07/15 Exp $ Guestbook for osC(2.2MS2) v1.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (GUESTBOOK_SHOW == 'false') { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_GUESTBOOK_SIGN); if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) { $gb_name = tep_db_prepare_input($HTTP_POST_VARS['gb_name']); $gb_email = tep_db_prepare_input($HTTP_POST_VARS['gb_email']); $gb_url = tep_db_prepare_input($HTTP_POST_VARS['gb_url']); $gb_location = tep_db_prepare_input($HTTP_POST_VARS['gb_location']); $gb_text = tep_db_prepare_input($HTTP_POST_VARS['gb_text']); $error = false; if (strlen($gb_name) < GUESTBOOK_NAME_MIN_LENGTH) { $error = true; $messageStack->add('guestbook', JS_GUESTBOOK_NAME); } if (strlen($gb_text) < GUESTBOOK_TEXT_MIN_LENGTH) { $error = true; $messageStack->add('guestbook', JS_GUESTBOOK_TEXT); } if (!empty($gb_email)) { if (tep_validate_email($gb_email)) { //mail to store owner tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $gb_text, $gb_name, $gb_email); //mail to visitor $email_text = sprintf(EMAIL_VISITOR_GREET, $gb_name); $email_text .= EMAIL_VISITOR_MESSAGE; tep_mail($gb_name, $gb_email, EMAIL_VISITOR_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } else { $error = true; $messageStack->add('guestbook', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } if ($error == false) { tep_db_query("insert into " . TABLE_GUESTBOOK . " (visitors_name, visitors_email, visitors_url, visitors_location, date_added) values ('" . tep_db_input($gb_name) . "', '" . tep_db_input($gb_email) . "', '" . tep_db_input($gb_url) . "', '" . tep_db_input($gb_location) . "', now())"); $insert_id = tep_db_insert_id(); tep_db_query("insert into " . TABLE_GUESTBOOK_DESCRIPTION . " (entry_id, languages_id, entry_text) values ('" . (int)$insert_id . "', '" . (int)$languages_id . "', '" . tep_db_input($gb_text) . "')"); tep_redirect(tep_href_link(FILENAME_GUESTBOOK, tep_get_all_get_params(array('action')))); } } elseif (tep_session_is_registered('customer_id')) { $account_query_one = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account_one = tep_db_fetch_array($account_query_one); $account_query_two = tep_db_query("select a.entry_country_id, b.countries_id, b.countries_name from " . TABLE_ADDRESS_BOOK . " a, " . TABLE_COUNTRIES ." b where a.customers_id = '" . (int)$customer_id . "' and a.entry_country_id = b.countries_id"); $account_two = tep_db_fetch_array($account_query_two); $account_query_three = tep_db_query("select entry_city from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "'"); $account_three = tep_db_fetch_array($account_query_three); $gb_name = $account_one['customers_firstname'] . ' ' . $account_one['customers_lastname']; $gb_email = $account_one['customers_email_address']; $gb_location = $account_three['entry_city'] . ', ' . $account_two['countries_name']; } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_GUESTBOOK, tep_get_all_get_params())); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function checkForm() { var error = 0; var error_message = "<?php echo JS_ERROR; ?>"; var gb_name = document.guestbook_sign.gb_name.value; var gb_text = document.guestbook_sign.gb_text.value; if (gb_name.length < <?php echo GUESTBOOK_NAME_MIN_LENGTH; ?>) { error_message = error_message + "<?php echo JS_GUESTBOOK_NAME; ?>"; error = 1; } if (gb_text.length < <?php echo GUESTBOOK_TEXT_MIN_LENGTH; ?>) { error_message = error_message + "<?php echo JS_GUESTBOOK_TEXT; ?>"; error = 1; } if (error == 1) { alert(error_message); return false; } else { return true; } } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('guestbook_sign', tep_href_link(FILENAME_GUESTBOOK_SIGN, 'action=process'), 'post', 'onSubmit="return checkForm();"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('guestbook') > 0) { ?> <tr> <td><?php echo $messageStack->output('guestbook'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td class="main" width="30%"><?php echo ENTRY_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('gb_name'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL; ?></td> <td class="main"><?php echo tep_draw_input_field('gb_email') . ENTRY_HELP_OPTIONAL; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_URL; ?></td> <td class="main"><?php echo tep_draw_input_field('gb_url') . ENTRY_HELP_OPTIONAL . ' <i>Include http://</i>'; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_LOCATION; ?></td> <td class="main"><?php echo tep_draw_input_field('gb_location') . ENTRY_HELP_OPTIONAL; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_textarea_field('gb_text', 'soft', 60, 15); ?></td> </tr> <tr> <td colspan="2" class="smallText" align="right"><?php echo TEXT_NO_HTML; ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_GUESTBOOK, tep_get_all_get_params(array('entry_id', 'action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> if anyone could take 2 mins to help me with this it would be much appriciated and i should be able to manage to use what you have done to run it in the other places i need it
  14. i need a little help debugging this bit of script any help would be great, basically it is just a mod im putting in my new categories box to link to my new products, but i want it to be so when im in new products it will show up in the categories as red, like the new categories enhancement mod. Thanks guys
  15. joma

    Gallery integrated Contrubution

    I have intergeaded MG2, alot better then number 1 viewable at http://www.altisette.com I am still finishing the instillation, email me on joma(AT)austarnet.com.au if you are interested.
  16. yes u can, u will need to make a few additions to the sts files though, very simple mods, u will need to do the following changes open sts_display_output.php add $template['polls'] = strip_unwanted_tags($sts_block['polls'], 'polls'); on about line 234 after $template['specialfriendbox'] = strip_unwanted_tags($sts_block['specialfriendbox'], 'specialfriendbox'); and also add echo $sts_block['polls']; on line 314 - u will see the other boxes there u will need to insert $polls in the sts_template.html file where ever u want it. If this does not work, check to see if the polls box in includes/boxes is polls.php if it is not change where ever polls is to whatever the file is called. easy yes
  17. i worked out a way to do the above problem, if anyone wants to know i replaced if (tep_not_null($product_info['products_image'])) { $template['image'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_model']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="border: 1px solid #FFFFFF"') . '<br><center>' . tep_image(DIR_WS_IMAGES . 'image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</center>'; } in sts_product_info.php with if (tep_not_null($product_info['products_image'])) { $template['image'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_model']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="border: 1px solid #FFFFFF"') . '<br><center>' . tep_image(DIR_WS_IMAGES . 'image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</center>'; } else { $template['image'] = ''; } u can also use the tag to display a image if u have no picture like if (tep_not_null($product_info['products_image'])) { $template['image'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_model']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="border: 1px solid #FFFFFF"') . '<br><center>' . tep_image(DIR_WS_IMAGES . 'image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</center>'; } else { $template['image'] = tep_image(DIR_WS_IMAGES . 'image_blank.jpg' . '<br><center>' ; } thanks guys
  18. if anyone can help me it would be great help to alot of poeple i think, basically, i have mopics 6 installed with STS and a few other mods, but the problem i am facing is this, when im using product_info.php.html template i use $thumbnail, $image1, $image2 and so on to display the pictures, i have the code through the sts_product_info.php to define these, BUT if i dont have a picture in the spot it will display the $thumnail or whatever i use to define the thumbnail, now i have tried to use this <?php if (tep_not_null($product_info['products_image'])) { $template;} ?> and this <?php if (tep_not_null($product_info['products_image'])) { '$template';} ?> but i get nothing appear, i know it is because the database query is not in the template, but i though STS included that when it is built, am i quickly tried inserting the query that is in the sts_product_info.php and pasted it before the html tag in the template like this <?php $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_subimage1, p.products_subimage2, p.dob, p.sire, p.dam, p.products_subimage3, p.products_subimage4, p.products_subimage5, p.products_subimage6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); ?> <html> but i dont know if that is even right. If anyone can help it would be great.. do i perhaps have to include application top and those things, and build the template simular to an actual php file, with a .html extension ??
  19. so am i going to be needing to build a simular file to sts_product_info.php i dont know, there may be a mod for what im doing, and i just can't find it...basically i want to display the listings in the same was as the products_new.php page. I dont want the cells to wrap at 50% each, i want the image to just be in the cell and so i can have a description in the other box taking up the rest of the room. if that makes sence... here is the site that im making the mods to if it helps http://www.altisette.com/home it is not a shopping cart, i just used the osc system to works as a profile listing, as i cannot find a script to do it...so why not use OSC..lol
  20. did u end up getting this to work or not ????????
  21. just wondering, is it possible to use product listing in a template ?? reason being i want to set the cell sizes of the rows, and i can't get it to work anyother way. so can we use a product listing template ?? thanks
  22. Just wondering, if anyone knows of a mod that will allow the store to display the categories in a listing format. (like the standatd product listing). I want to be able to list them like this and include a description in there. Im not worried about the description, just the listing method.
  23. your popups seem to be working fine on my browser. IE anyhow...did u have to use the product_info.php.html file to get them to work ????? i am not using that template file, but if it will work i will start using it, one of my other problems is i am using mopics aswell, but i dont think it is that big of an issue...i hope..
  24. what do you mean by this ??, do u have to use the product_info.php.html or just product_info.php
  25. what patch have u applied to your popup ???? are you using product_info.php.html ????
×