Jump to content

JangoF

Members
  • Content count

    239
  • Joined

  • Last visited

Everything posted by JangoF

  1. JangoF

    [Contribution] Auction Module

    Look at my post at the top of the page. I have a suggestion for at least a partial solution, but I am totally green with javascript unfortunately. :P The "You Won" message -should- work out of the box with this contribution. There is also an enhanced version of the mail part of the script a few pages back.
  2. JangoF

    [Contribution] Auction Module

    KVallema: Look in your product_info.php and search for: tep_image_submit('button_in_cart.gif There should be two instances of this. The second one you should remove/comment out. You probably also have to comment out the table-cells that it is located in as well. It should look like this: <!-- eof moved from bellow by jobonline201@yahoo.com for auction product contribution --> <?php //bof added by jobonline2001@yahoo.com for auction product contribution //rewriten by MarcusDesign if ($auction_product) { include_once(DIR_WS_MODULES.'/auction_bids.php'); } else { ?> <!--<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_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> <td class="main" align="right"><?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php //echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr>--> <?php } //eof added by jobonline2001@yahoo.com for auction product contribution (note that I have also commented out the review-button, as I do not use it)
  3. JangoF

    [Contribution] Auction Module

    Any idea on when you will have tim to do this? ;)
  4. JangoF

    Easy Coupons

    I tried putting this into includes\modules\easy_coupons_code.php after // valid and available coupon code found: But it does not seem to work? What am I doing wrong?
  5. JangoF

    Easy Coupons

    Hi Amanda, Been using your contribution for a while and it's great! I am using only manually created coupons, and I have 3 coupons that I am using for wholesale customers. - 35% discount when you order between $400.00 & $799.00 - 40% discount when you order between $800.00 & $999.00 - 50% discount when you order $1.000 or more However, as it is now, even if people buy a product for $50 and enter any of the codes, they will still get the discount. Is it possible to apply some sort of check so that people only can use these 3 specific codes if their orders matches the value above? Regards.
  6. JangoF

    Weird Cc-related Problem

    Hi, I am using the "TPV para BBVA Soap" payment contribution. I have set it up and everything seems to work fine, except when I click on "Confirm Order". After about a minute of working, I get a generic browsing error saying that checkout_process.php does not exist, even though it does. All other payment modules work fine, like Paypal and Check/Money Orders. Does anyone know what can be causing this?
  7. JangoF

    [Contribution] Auction Module

    Wow sopinon! That really looks amazing!
  8. JangoF

    [Contribution] Auction Module

    Be my guest. Here is the fixlist that I have worked on so far (as you can see, this contribution is buginfested to say the least): Last Update: 17May 15.36 Black = Not Fixed Blue = Fixed ## = Notes Admin-side: 1. Add an option so that the time offset in hours for when the auction ends can be set in the admin panel. INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Auction TimeOffset', 'AUCTION_END_TIMEOFFSET', '0', 'The timeoffset in hours for when your auctions will end.<br>', 1984, 2, '2007-05-17 12:32:00', '2007-05-17 12:32:00', NULL, NULL); 2. Bid winner for each auction should be viewable from the Admin Panel (on the same page where you add/modify auctions). (3). "Status Change" seems to be an unused feature? (what was it originally meant to be used for?) Catalog-side: 1. Auction.php page needs to be sorted by time until auction expires, not in the order the auctions were added. In auctions.php, find: $auctions_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, a.auctions_starting_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_AUCTIONS_PRODUCTS . " a where p.products_status = '1' and a.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and a.status = '1' order by a.auctions_date_added DESC"; Replace With: $auctions_query_raw = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, a.auctions_starting_price, a.expires_date from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_AUCTIONS_PRODUCTS . " a where p.products_status = '1' and a.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and a.status = '1' order by expires_date DESC"; 2. Overbid Amount does not work. 3. Time when the Auction ends needs to be able to be set (see also Admin-side suggestion). With the little knowledge I have of javascript I was able to change the countdown timer, but not the time the actual auction ends. ##I use the timerfix from the forum. This is how to change the countdown timer (not the actual auction end time, just the countdown): In includes\modules\auction_bids.php, add before the first ?> $thours = AUCTION_END_TIMEOFFSET; Find: var hours = Below, add: var thours = hours-"<?= $thours ?>"; 2 lines below, find document.getElementById(tzcd).innerHTML: Change +hours+ to +thours+ 4. Link to Terms & Condition does not work properly at present, neither does the checkbox. In includes\modules\auction_bids.php after the first ?>, insert: <script language="Javascript"> function termWindow() { window.open ("auction_terms.php"); } </SCRIPT> Find: <td class="main"><a href="java script:void(0);" onclick="NewWindow('<?php echo tep_href_link(FILENAME_AUCTION_TERMS); ?>','auction_terms','400','300','yes');return false"><?php echo CONDITIONS; ?>:</a></td> <td onclick="window.document.auction_bid.agree.checked = !window.document.auction_bid.agree.checked;" align="right" width="20px"><?php echo tep_draw_checkbox_field('agree','true', false, 'onclick="window.document.auction_bid.agree.checked = !window.document.auction_bid.agree.checked;"'); ?></td> Replace with: <td class="main"><a href="java script:termWindow();">Terms & Conditions</a></td> ##I'm not in any way an expert on javascript, so the checkbox function I used does not work properly, but here's the code anyway: function checkform() { if (!document.auction_bid.checked) { alert('You need to agree to the Terms and Conditions!'); return false; } return true; } On the line below the Terms & Conditions link, insert: <td class="main"><input type="checkbox" name="auction_bid"></td> Find: echo tep_draw_form('auction_bid',tep_href_link(FILENAME_PRODUCT_INFO),'post', 'onsubmit="return check_agree(this);"'); Replace with: echo tep_draw_form('auction_bid',tep_href_link(FILENAME_PRODUCT_INFO),'post', 'onsubmit="return checkform();"'); 5. When entering a too low bid, the warning needs to be printed on the current page or open up in a new window (the current method writes a new page entirely, which also has a stream error). 6. Auction start price does not work, lets me bid anyway. 7. Something needs to happen when the auction ends, either: 7.1) The product is added to the customers Shopping Cart with the correct price (I think this is the best method, and it's already halfway implemented in the current Auction version, although it doesn't work). 7.2) An order is created with the auction product, but the customer has to pay manually. And preferably an email should be automatically sent to the winner. 8. Infobox (at the moment shows the newest auction, haven't been able to figure out how to show the auction that is closest to ending) -Upload latest_auction.php to includes\boxes -Open column_left.php or column_right.php and add: require(DIR_WS_BOXES . 'latest_auction.php'); -In includes\languages\english.php (or translate to the language of your choice), add: define('BOX_HEADING_AUCTON_LATEST', 'Latest Auction');
  9. JangoF

    [Contribution] Auction Module

    @dpower717: The priority here is to get the script working first, not to make it work with other mods. That can probably as an afterthought, if the script is ever finished first.
  10. JangoF

    [Contribution] Auction Module

    @aboriginart: Read my previous post. :)
  11. JangoF

    [Contribution] Auction Module

    Yeah, there is a timerfix posted in this thread too Haerith. Me and Marcusdesign have just started working on a new version. Sorry, no ETA, but we are hoping to fix most of the problems relating to this contribution. Because right now it isn't really usable, starting price doesn't even work properly.
  12. JangoF

    [Contribution] Auction Module

    I guess I'm tough out of luck on this one. :(
  13. JangoF

    [Contribution] Auction Module

    That's really bad news. :( Well, the overtime bid seems to work to me, although I get an error when typing in a too low amount: I really wonder why it doesn't add the item to the winner's cart, even though I have added the code to the shopping cart class? Also it would be great if I could change the time the auction ends somehow. That's really all I need, honestly. I would so love to see this contribution being updated, just a tiny bit is needed. I guess there are no alternatives to this module either? :'(
  14. JangoF

    [Contribution] Auction Module

    Is nothing supposed to happen when the auction ends? When testing it, I get no mail about it, no order is created and the item is not added to the shopping cart. Nothing. What is wrong?
  15. JangoF

    [Contribution] Auction Module

    Just wondering if this magnificent contribution is still in development/being updated? Maybe some donations will help speed up things? Anyway I just want to say this is one of the greatest contributions (and there are no alternatives to it), so I really hope to see some updates to it. It makes me wish I wash a php guru so I could help fix it. :D
  16. I got a quick question. Which of these changes have been included in the 3.0 version, and which ones would I need to fix manually? Also, is this contribution still being updated? It's so sad to see that there isn't a proper bug-free contribution for this kind of functionality. Most needed imo.
  17. Hi, I'm looking for a very simple function or code that will automatically remove a product image + thumbnail permanently from the server. Basically what I had in mind is when I change the status to something when I edit an order (orders.php) and click on update, it should also delete the product image and thumbnail, as I no longer need them. Can anyone help with this? :)
  18. JangoF

    Function to remove product image

    Well as per usual it was up to me to try to fix this. Not much support getting from this forum. Anyway for those of you who wonder how to do this: //delete the product image(s) $index = 0; $order_packslip_query = tep_db_query("select op.products_id, op.orders_products_id, p.products_id, p.products_quantity, p.products_image from " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_PRODUCTS . " p where op.products_id = p.products_id and op.orders_id = '" . (int)$oID . "'"); while ($order_packslip_data = tep_db_fetch_array($order_packslip_query)) { $packslip_products[$index] = array('qty' => $order_packslip_data['products_quantity'], 'image' => $order_packslip_data['products_image']); $index++; } for ($i=0, $n=sizeof($packslip_products); $i<$n; $i++) { if (file_exists(DIR_FS_CATALOG_IMAGES . $packslip_products[$i]['image']) && ($packslip_products[$i]['qty'] == '0')) { @unlink(DIR_FS_CATALOG_IMAGES . $packslip_products[$i]['image']); } //delete the thumbnails $file = eregi_replace( '\.([a-z]{3,4})$', "-68x100.\\1", $packslip_products[$i]['image'] ); if (file_exists(DIR_FS_CATALOG_IMAGES . $file) && ($packslip_products[$i]['qty'] == '0')) { @unlink(DIR_FS_CATALOG_IMAGES . $file); } } It will only delete the images if the image exists AND the product quantity is 0. You need to fix the regular expression (eregi_replace) to whatever syntax you use for your thumbnails, or just remove that section if you don't use thumbnails. I use this in orders.php, but it should be fine using on whatever Admin page you want.
  19. JangoF

    Multi_Vendor_Shipping new thread

    I'm also wondering if anyone has any tips on prettying up the Order Details Information (account_history_info.php -> vendor_order_info.php)?
  20. Does anyone know about my question? :)
  21. JangoF

    shipping modules help

    http://www.oscommerce.com/community/contri...shipping+status Works great and easy to modify.
  22. JangoF

    Multi_Vendor_Shipping new thread

    Is it possible to have the Free Shipping option selected by default when it is available (eg. the freeamount.php module)?
  23. How can I put in a check so that if a product exists, it won't update the dates it was added/mofified?
×