Jump to content

draculakos

Members
  • Content count

    86
  • Joined

  • Last visited

Everything posted by draculakos

  1. draculakos

    Store Mode (Open | Closed | Maintenance)

    on maintance store mode, when the users try to get into the site, the script takes him automatically to index_maintenance.php? Because i moved my shop on new domain with new cart script, and i am looking for a way when a customer get into my oscommerce site, to see a message and automatically redict him to my new shop. So if that script on the maintance mod moves the customer to index_maintenance.php (no matter on which product / url the customer trys to open) it could be good, coz i can add the code for redirection to this file..
  2. hi, i am thinking to install this contribution to my site, but i want to know first if the products will be accessable with the old way too, i mean with http://www.lalalxxxa.com/product_info.php?products_id=92 or only with the new way?
  3. I was thinking that i would be great if someone create this : I am sure you have seen all of you the constribution Ultra pics + lightbox.. So this constribution let you add more 6 pictures at the end of the product info.. So i was thinking that it would be great if someone create a constibution that let you add youtube videos within a table at the end of the product info.. Of course in the product info it will display thunbnails, not the whole videos.. If someone is able to create it, i think it will be too popular..
  4. draculakos

    Multiple categories per product..

    Yes, i just checked it:P (Χεχεχ, έχουμε, για αυτό και είμαι εδώ :Ρ)
  5. Hello guys.. I need a contribution that let me add a product to multiple categories. I found one but is too old and i am not sure if it will work with the latest oscommerce that i use. If anyone have an idea please post. The contrib i found is that : http://addons.oscommerce.com/info/2718
  6. draculakos

    Multiple categories per product..

    yes but then i'll have to handle the quantity of both products (i mean of the product that it is in two categories..) Am i right or not?
  7. draculakos

    Products Cycle Slideshow

    exactly! :)
  8. draculakos

    Products Cycle Slideshow

    i was thinkin if it is possible to choose to upload pictures for the slideshow, and then choose each pic to link to the product you want.. it would be great if it is possible
  9. draculakos

    USPS Shipping Insurance

    not any news from the creator yet :(
  10. draculakos

    Simple Price Break Contribution

    Hello, i checked all the versions and my result is that the best working version is the homewetbar 1.1b.. All the next versions after this doesn't work, they don't calculate the discount.. Basically the problem on those versions is inside the includes/classes/shopping_cart.php So everyone who like this contribution use version 1.1b.. (and i think that it is better to upload that version as last, because many people they download the latest version, they see that doesn't work and they delete it.. Many ppl doesn't read the forum) Anyway, thanks for good contribution.. I wanted a discount contribution but i wasn't enable to use price break because my site is already too modified!
  11. draculakos

    Customer Testimonials v1.0

    i iinstalled the latest version but when i am trying to get in to the admin page i get this error : 1146 - Table 'oscommerce_.TABLE_TESTIMONIALS' doesn't exist select count(*) as total from TABLE_TESTIMONIALS [TEP STOP] i have already run the sql : CREATE TABLE `customer_testimonials` ( `testimonials_title` varchar(64) NOT NULL default '', `testimonials_id` int(5) NOT NULL auto_increment, `testimonials_html_text` longtext NOT NULL, `testimonials_name` varchar(50) NOT NULL default '', `testimonials_email` varchar(70) NOT NULL default '', `date_added` varchar(50) NOT NULL default '', `status` tinyint(1) NOT NULL default '1', PRIMARY KEY (`testimonials_id`) ) TYPE=MyISAM;
  12. i made it finally, thank you.. there wasn't any problem.. just the status id had to be bigher:) great contrib..
  13. i tried everything.. have a look!
  14. first of all i want to ask, the jquery is exactly the same as the oscommerce standard, why did you put it on package then? second what is the status id ? i installed the contribution but it doesn't work for me.. It doesn't appear the options in the orders.php, it looks like i didn't add any options in the mysql.. I am using only one language (greek) and i saw that it has id 4, so i put on the language id 4 but didn't work too.. any idea?
  15. draculakos

    USPS Shipping Insurance

    NOTICE : I am using this very good script not as USPS Insuranse, but as gift wrapping option.. I made to it some very small changes, and i am using it as an option for giftwrapping the items of my customers :) I m telling this just to give an idea to other people who may need this thing, because there isn't any script for giftwrapping.. (only one very old, bad made, junk code!)
  16. draculakos

    USPS Shipping Insurance

    thank you:) if you have any good news for the back problem, please inform us :)
  17. draculakos

    USPS Shipping Insurance

    I made some cosmetic changes to script. I wanted to seem like all the other option in the checkout. I mean the rollover colour and the fuction that you click everywhere inside the <tr> and the option is getting checked .(radio in all options, at this time checkbox). For everyone who want to do it i am giving the code.. After this : function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } Add that function : function insurancecheck(oRow){ if(oRow.getElementsByTagName('input')[0]&&oRow.getElementsByTagName('input')[0].type=='checkbox'){ var c = oRow.getElementsByTagName('input')[0]; c.checked=(c.checked==false)?true:false; } else{alert('There is not any checkbox on that <tr>')} } And then find this : <tr> <td class="main" align="right" valign="middle"><input type="checkbox" name="choose_insurance" value="1" ></td> <td class="main" align="left" valign="middle"><? echo TEXT_USPSSHIPPING_INSURANCE_QUOTE; ?></td> <td class="main" align="center"><?php echo TEXT_USPSSHIPPING_INSURANCE_DISCLAIMER2; ?></td> And change it to this : <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="insurancecheck(this)"> <td class="main" align="right" valign="middle"><input type="checkbox" name="choose_insurance" value="1" ></td> <td class="main" align="left" valign="middle"><? echo TEXT_USPSSHIPPING_INSURANCE_QUOTE; ?></td> <td class="main" align="center"><?php echo TEXT_USPSSHIPPING_INSURANCE_DISCLAIMER2; ?></td> To the contibuter : I think it's a good idea to add it in the next version.. Also if you have any news for the bug, please post it!
  18. well i did the last changes that i saw in the forum, now when i click in the top corners of the opened images ( with lightbox) they getting me to the next/ previous images, but i don't see the buttons.. i mean there is no buttons on the top corners, but if i click it takes me to the next image.. any idea?
  19. draculakos

    USPS Shipping Insurance

    i found a problem in the script but i don't know how to fix it, if somebody can do it, please post the fix.. The problem is that if you have checked insurance and you are on checkout_confirmation.php or checkout_payment.php and you go back to checkout_shipping, the option of the insurance is UNchecked. And it doesn't matter if you leave it unchecked or if you checked it again. In the confirmation page the insurance will be as checked. So if you want to uncheck it you can't... The fix i think must do this : First of all, if you go back to the checkout_shipping, the box of the insurance must be checked (if you have checked it before) And last, if you uncheck it and you proceed to the next pages, the insurance must turn off.. I think you understand what i am telling..
  20. draculakos

    free shipping

    This code is working great for my shop, but it doesn't fit on the width.. It doesn't take the 100% of the width and i don't know how to fix it.. I tried to use <tr><td colspan="5"> but it din't work.. look a picture : look my code and if you can help me ... PLEEEASE :/ : <?php /* $Id: (advanced) shopping_cart.php,v 1.1 2005/08/31 beer monster Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); ?> <!-- shopping_cart //--> <script type="text/javascript" src="includes/boxes/rollovers.js"></script> <script type="text/javascript"> <!-- function decrement(index) { if(document.forms["cart_box"].elements["cart_quantity[]"][index].value >1) { document.forms["cart_box"].elements["cart_quantity[]"][index].value--; document.cart_box.submit(); } } function increment(index) { document.forms["cart_box"].elements["cart_quantity[]"][index].value++; document.cart_box.submit(); } function mark(pid) { document.forms["remove_product"].elements["cart_delete[]"][0].value=pid; document.forms["remove_product"].elements["products_id[]"][0].value=pid; document.remove_product.submit(); } var sURL = document.URL.toString(); if (sURL.indexOf("?") > 0){ urlsplitter = ''; } else { urlsplitter = '?'; } document.write('<form '); document.write(' name="remove_product" '); document.write(' action="' + document.URL + urlsplitter + '&action=update_product"'); document.write(' method="post">'); //one element is not an array so add 2 of each! document.write('<input type="hidden" name="products_id[]">'); document.write('<input type="hidden" name="cart_delete[]">'); document.write('<input type="hidden" name="products_id[]">'); document.write('<input type="hidden" name="cart_delete[]">'); document.write('</form>'); document.write('<form '); document.write(' name="cart_box" '); document.write(' action="' + document.URL + urlsplitter + '&action=update_product"'); document.write(' method="post">'); //--> </script> <body onLoad="MM_preloadImages('images/btn-up.gif','images/btn-dn.gif','images/btn-up-ov.gif', 'images/btn-dn-ov.gif')"></body> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART); new infoBoxHeading($info_box_contents, true, true, tep_href_link(FILENAME_SHOPPING_CART)); if ($cart->count_contents() > 0) { $info_box_contents = array(); $any_out_of_stock = 0; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['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 = '" . $products[$i]['id'] . "' and pa.options_id = '" . $option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . $value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . $languages_id . "' and poval.language_id = '" . $languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name']; $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } //Build the infobox... for ($i=0, $n=sizeof($products); $i<$n; $i++) { $cur_row = sizeof($info_box_contents); if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) { $style_text = '<span class="newItemInCart">'; } else { $style_text ='<span class="infoBoxContents">'; } //Product Details First... $products_name = ' <tr>' . // uncomment this line to get micro thumbnails! ' <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], '30') . ' </a></td>' . ' <td colspan="4" class="infoBoxContents" valign="top"> <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $style_text . $products[$i]['name'] . '</span></a>'; //--Add any attributes... if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>'; } } $products_name .= ' </td>' . ' </tr>'; //Now build the Quantity form... //--Make sure we have a form array...one element is not an array and //--javascript doesn't like elements with [] so add some extra fields if there is only one product in the cart! if (sizeof($products)==1){ $j =$i+1; $extra_elements = tep_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']) . tep_draw_hidden_field('products_id[]', $products[$i]['id']); } else { $j =$i; $extra_elements = ''; } $products_form =' <tr>' . ' <td>Qty </td>' . ' <td> ' . $extra_elements . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'class="quantitybox"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . '</td>' . ' <td><a href="java script:void(increment('. $j . '));" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'document.up' . $i . '\',\'document.up' . $i . '\',\'images/btn-up-ov.gif\')" ><img name="up' . $i . '" src="images/btn-up.gif" border="0" ></a><br><a href="java script:void(decrement('. $j . '));" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'document.dn' . $i . '\',\'document.dn' . $i . '\',\'images/btn-dn-ov.gif\')" ><img name="dn' . $i . '" src="images/btn-dn.gif" border="0" ></td>' . ' <td width="100%" align="right"><b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b></td>' . ' </tr>'. ' <tr><td colspan="5" align="right" width="100%" class="infoBoxContents"><a href="java script:void(mark(\'' . $products[$i]['id'] . '\'));"><span class="removeProduct">' . TABLE_HEADING_REMOVE . ' <img src="images/remove.gif" border="0" height="8" width="8"> </span></a></td></tr>' . ' <tr><td colspan="5" width="100%">' . tep_draw_separator('pixel_silver.gif') . '</td></tr>'; $cart_contents .= $products_name . $products_form; } //Finally, add the total... //--If we are already at the checkout, don't show the checkout button! if (preg_match("/checkout/", $PHP_SELF)) { $co_link = ''; } else { $co_link = '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout_small.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; } $total = ' <tr height="20">' . ' <td colspan="3" align"left">' . $co_link . '</td>' . ' <td colspan="1" align="right" width="100%" class="infoBoxContents"><b>' . $currencies->format($cart->show_total()) . '</b></td>' . ' </tr>'; $cart_contents .= $total; $info_box_contents = array(); $info_box_contents[] = array('text' => $cart_contents); // BEGIN JS Amount Till Free Shipping $free_shipping_mount = 150; if ($cart->count_contents() > 0) { if ($cart->show_total() < $free_shipping_mount) { $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'center', 'text' => '<span class="freeship2">' . BOX_SHIPPING_CART_FREE_SHIPPING . $currencies->format($free_shipping_mount) . '</span>'); $info_box_contents[] = array('align' => 'left', 'text' => '<span class=freeship2>' . BOX_SHIPPING_CART_LEFT_TO_QUALIFY . '</span><br><span class=freeship>' . $currencies->format($free_shipping_mount - $cart->show_total()) . '</span>'); } else if ($cart->show_total() > $free_shipping_mount) { $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('align' => 'left', 'text' => '<span class=freeship>' . BOX_SHIPPING_CART_QUALIFIES_FREE_SHIPPING . '</span>'); } } // END JS Amount Till Free Shipping new cartBox($info_box_contents); } else { new infoBox(array(array('text' => BOX_SHOPPING_CART_EMPTY))); } ?> </form> </tr> </td> <!-- shopping_cart_eof //-->
  21. draculakos

    Giftwrap

    osC_GiftWrap_v1.0 is the constribution that i am telling that it has 2 radio boxes that it is not good because it appears in the order total even if you check the no giftwrap. And it appears in the order total as : No giftwrap : 0$ .. Also it doesn't have a textbox for the card, and it doesn't work the language in the order total..
  22. draculakos

    Giftwrap

    I was thinking that i will be great if someone will create a constribution that will add a checkbox for giftwrap in the checkout page. Also it would be good to add a textbox under this checkbox to let people write a little message to be typed in the card outside of the gift.. So if someone can create this, it would be great.. There is now one constribution for giftwrap with extra cost, but it is not well made. IT has 2 radio boxes, one for giftwrap with e.g. price 1$ and one without giftwrap with price 0$. So it is not good because at last in the confirmation page it adds this field in the order total, even if you check the no giftwrap.. So you see it the total : Semi total :50$ Shipping : 20$ Tax : 18$ No giftwrap : 0$ Total : blahblah So it doesn't look good. That's why i am saying it would be good with checkbox. Also this constribution doesn't have any textbox to let the customer leave a message.. Anyway it is better than the nothing but it need too much work, it doesn't work correctly also with the language.. So guys if someone have time and want to make this constribution, it will be great. thank you
  23. draculakos

    bug?

    sorry this post was going as reply in the topic in the constribution ultra pics + lightbox
  24. draculakos

    bug?

    hello guys.. i have one question and i think maybe more have this problem.. i am using this GREAT constribution, but when i am creating listing products, if i use table width 100% then the image on the top right doesn't work.. And i mean that i am not able to click it to open it bigger.. This is happening only using explorer, with firefox the image still work.. I think it's a small but and the table goes up to the image and that's why it doesn't work like link.. you can see the problem in action here : http://www.turbosim.gr/oscommerce/product_...?products_id=53 (use explorer)
  25. draculakos

    Reviews on Product Info Page v1.0

    hello my friend, i think the code you need is similar to the code of includes/boxes/reviews.php and i think i need this too and i am working on it. I am not a developer or anything good on coding, i am just making small changes so maybe i'll make it. If i have news i'll post it ok?
×