Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
  1. clongato

    Seperate Pricing Per Customer v3.5

    Hi, This post is a repply to a previous problem in this thread addressing the quantity box in product listing. As I didn?t find any answers, i?ll write the way I got things to work here. I?m using SPPC, Quantity Price breaks for SPPC and Hide Products for SPPC. In product_listing.php, comment the following line: $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>?'; And copy (as replacement for the commented code) the code below: $lc_text = tep_draw_form('buy_now', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id='. $listing[$x]['products_id']), 'POST') . tep_draw_input_field('buyqty', $listing[$x]['products_qty_blocks'], 'size=2 maxlength=2') . '?' . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_IN_CART) . '</form>'; In application_top.php comment the line: $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); And copy (as replacement for the commented code) the code below: $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+(int)$HTTP_POST_VARS['buyqty']); The credits go to the author of the original contribution (sorry, don?t remember exactly wich). Just a note: these changes do not add a column to product_listing.php. In my store I inserted two columns, one displaying the quantity block and the other for the input field.
  2. clongato

    Seperate Pricing Per Customer v3.5

    First of all, thanks for this contribution. I?m having a little problem using Chemo?s tax optimizer with SPPC. The prices displayed in checkout_confirmation (and stored in the orders tables) are correct, but the ones shown in product_listing and product_info are missing the taxes (when set to show prices with tax). Does anyone know how to fix this, or had the same problem? Claudio
  3. clongato

    HelpDesk For osCommerce

    Is anyone using helpdesk with PHP5? I?m getting this error: I know this is by the differences between PHP4 and PHP5 when using '$this' statement, but I haven?t came up with a fix for it yet. Does anyone know? Thanks for ANY help! Claudio
  4. clongato

    [Contribution] FCKosc 2.2 Support

    This is just a note for people using FCKEditor under SSL: I was getting errors while using the absolute paths as described in the install instructions, and all worked fine when I changed them to relative paths (eg. https://www.mysite.com). The only thing I can?t say is if this change works for shared SSL certificates. Otherwise, this Editor is far more stable and easy to setup than the ohters I?ve tried. Thank?s for the work! Claudio
  5. clongato

    Quickly Update Product Stock

    I?m posting this in the forum instead of releasing a new package because it?s just a small fix for the language issue. There was a missing statement to set language id. For the stockupdate work in any language you must add the following line: FIND: <br><form method="post" action="quick_stockupdate.php"> <?php // first select all categories that have 0 as parent: $sql = tep_db_query("SELECT c.categories_id, cd.categories_name from categories c, categories_description cd WHERE c.parent_id = 0 AND c.categories_id = cd.categories_id AND cd.language_id = 1"); REPLACE FOR: <br><form method="post" action="quick_stockupdate.php"> <?php $languages = tep_get_languages(); // first select all categories that have 0 as parent: $sql = tep_db_query("SELECT c.categories_id, cd.categories_name from categories c, categories_description cd WHERE c.parent_id = 0 AND c.categories_id = cd.categories_id AND cd.language_id = language_id = '" . (int)$languages_id . "'"); That should do it! Claudio
  6. I changed in the header_tags file too, but I think once you have it in your store, you should be able to use it properly - well, just as for everyone, I think. I?ll give it a second round later. I?m trying to prevent the user to define header tags when the page name is not entered. I think the best way to do this is to use the check missing pages dropdown as the way to enter the page name. Is anyone working on it, too? Claudio
  7. Hi, I?ve seen this problem twice in the thread, but no response to fix it. I`m trying to install HTC and everything?s fine, except that I cannot change the default description and default keywords, however I?m able to change the default title. Does anyone had this problem and have a fix for it? Thanks Claudio
  8. clongato

    Email Templates

    You?re right about it. But I chose to use the HTMLArea 3.0 instead of the WYSIWYG from MaxiDVD, because I was having trouble about white spaces and line breaks. I don?t know if it happens to all, but every time I had to rewrite any text using the MaxiDVD contribution, I got line spaces coming out of nowhere. Anyway, I managed to have the text pasted in the message textarea when the editor is turned to text mode. Yet a little tricky for the user, but I?ll give it a try later. If you have interest in the HTMLArea thing, I?m managing to have it full loaded with features for all text areas in the admin - exactly your point, it should be easy to write any text in the osC admin. Send me a pm and I?ll have my work so far emailed to you. thanks Claudio
  9. clongato

    Email Templates

    Hi, I?m trynig to install this contribution, but having a problem with the WYSIWYG feature. I don?t have it installed and I?m to get rid of the WYSIWYG conifguration in functions/email_templates.php. Does anyone have this file without WYSIWYG? Thank?s for the contrib! Claudio
  10. clongato

    Enable/Disable categories contribution

    I?m installing this contrib and found some "bugs" in it as described below, so I?m posting a fix for them (sorry for no time to make a new package): - when you access the product page typing the url, you still can see the product information even if its category is disabeld. The fix for this is as follows: and that will do it. Thank?s for the contrib! Claudio
  11. clongato

    HTMLArea v3.0

    I?ve successfully installed this great contribution, but for some reason if a page has two or more text areas, the second or so time the editor is not the same as the first text area. Lighting it up, if in the first field has 20 buttons in the editor, the second has only 15, the third 13... Does anyone know why this is happening? Thank?s for help AND for the contribution! Claudio
  12. clongato

    Article Manager v1.0

    First things first... thank?s for the great contribution! I?ve installed 'articles' and everything?s running smoothly... but I need an infobox that shows not only categories and subcategories, but also the articles. Is anyone using a box like that? Thank?s for any help! Claudio
  13. clongato

    Event Calender

    The tip on the strftime worked well, and you need to change the $date around line 214 and 286 so the titles and dates are displayed on the same format. I?m looking for a way to change the language on the calendar box. The month and weekdays are in english, and I need them in portuguese. Any suggestions? Thank?s Claudio