Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

davidedp

Members
  • Content count

    20
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Davide Di Pierro
  1. davidedp

    [Contribution] Option Types v2

    Hello Everybody I have a special issues by option types. Let say I have option T1, T2, T3 defined for a product in this order. On confirmation page the order is the same, but in admin in invoice it is the opposite. So there it will be displayed T3, T2, T1. Am I the only one with this problem? Here the code: checkout_confirmation.php -> ok if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { //BOF Option Types v2.3.1 echo '<br><small> - ' . $order->products[$i]['attributes'][$j]['option'] . ': <i>' . $order->products[$i]['attributes'][$j]['value'] . '</i>'; if ($order->products[$i]['attributes'][$j]['price'] != '0') { echo ' - (' . $order->products[$i]['attributes'][$j]['price_prefix'] . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($order->products[$i]['tax'])) . ')'; } echo '</small>'; //EOF Option Types v2.3.1 invoice.php if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo '</i></small>'; // EOF Option Types Does it depend on DB query? Many thanks for your help
  2. davidedp

    [add-on] Discount Code (support)

    Solved! I added jquery Calendar to both date fields!
  3. davidedp

    [add-on] Discount Code (support)

    maybe this has been already solved, if so, sorry, give me please just the link of the solution.... It seems that as start / end date I have to use the format MM/DD/YYYY (let say 12/31/2012). But if I edit the coupon it then shows the format DD/MM/YYYY (i.e. 31/12/2012). Upon saving it again, the date does not fit to MM/DD/YYYY and it will be lost..... I have find out the function kgt_parse_date which seems to be responsible for that. Is anyone here using it in the admin with a different format then DD/MM/YYYY? Am I missing a configuration point? Many thx for your time!
  4. OK, solved... I copied the wrong ot_discount_coupon.php under languages :-
  5. Hello Everybody, this must be easy (for you)... I installed on OSC 2.3.1 this great contribution, following the instruction. Now I go to Admin, Order Total and I see there are 2 modules ready to be installed, when I click on the button the following message appear: Fatal error: Cannot redeclare class ot_discount_coupon in /..../includes/modules/order_total/ot_discount_coupon.php on line 13 It has probably something to do with languages, since I duplicated the english part in a german directory.... Any Hint?
  6. davidedp

    [Contribution] Option Types v2

    It seems that DreamWeaver is adding stuff to your file, try with a normal text editor (ultraedit? or something like that)
  7. davidedp

    [Contribution] Option Types v2

    I have the same problem, but I didn't install that contribution as far as I know. I'm using OSC 2.3.1, is it included there by default? Anyway how did you remove it? Many thanks
  8. davidedp

    [Contribution] Option Types v2

    I would say it's a copy/paste error. With that code you are loading and checking twice the option type. To be more precise you do the second check only if the typeis NOT text, textarea or file. I would say unuseless. Here my code (but I have issues with products_attribute and I'm using the AJAX add-on). //BOF Option Types v2.3.1 - For TEXT and FILE option types, No need to add anything... // Let's Check for OptionType first... $optionType_query = tep_db_query("select products_options_type from " . TABLE_PRODUCTS_OPTIONS . " where products_options_id = '" . (int)$option_id . "' and language_id = '" . $languages_id . "'"); $optionType = tep_db_fetch_array($optionType_query); switch ($optionType['products_options_type']) { case OPTIONS_TYPE_TEXT: case OPTIONS_TYPE_TEXTAREA: case OPTIONS_TYPE_FILE: // Do Nothing... break; default: //EOF Option Types v2.3.1 What error do you have if you remove one part? Is it a } missing?
  9. davidedp

    [Contribution] Option Types v2

    I solved the link problem with a workaround in javascript, instead of calling the link, I set the quantity field to 0 and submit. The issue could be that in tep_href_link the "?" is replaced by "/": if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); } else { $link = str_replace('&', '&', $link); } or is it just an issue with the charset (UTF-8 vs charset=iso-8859-1)?.... anyway...
  10. davidedp

    [Contribution] Option Types v2

    Ok, that was easy, in the new instruction it was missing the following: In 2. admin/include/database_tables.php we should add: define('TABLE_FILES_UPLOADED', 'files_uploaded'); //BOF - Zappo - Option Types v2 - ONE LINE - File Uploading Then it works! Now the next problem is that I added the remove link and quantity field in the cart. It work until we do not enter some text with special chars (like ? or ä. ö etc...). The reason is that the link is build using also the text entered, i.e.: let say we entered "Does it work?" as text in the option input field, the link will be: <a href="http://shop.com/shopping_cart.php/products_id/45{1}4{txt_2}does it work//action/remove_product">remove</a>
  11. davidedp

    [Contribution] Option Types v2

    Ok, in order to solve the major problems in Admin I did the following: - Removed all the old options and option values - Installed Attribute Manager from the last update of Zappo of http://addons.oscommerce.com/info/6818 - Now I can define the option of type text in the old "Product Option" and use it in the new Attribute Manager!!! I'm already very happy with it. The urgent issue i have now is the following: if I order the product that has an input field, this will be added to the cart (great). But if now I make the check out (not logged yet), as soon as I log in I get: 1146 - Table 'oscommerce_2.TABLE_FILES_UPLOADED' doesn't exist select files_uploaded_name from TABLE_FILES_UPLOADED where sesskey = '29fc5958ade4210d31cc94701c7852be' [TEP STOP] But if I first log-in and then do the process then it's ok!
  12. davidedp

    [Contribution] Option Types v2

    Many thanks, can you post the link to the contr? I'll have a look at it... Do you have OSC 2.3.1?
  13. davidedp

    [Contribution] Option Types v2

    Hello Everybody after reading all the post, I still have to understand the following: - I have OSC 2.3.1, I used http://addons.oscommerce.com/info/8193 and done all the steps of the instructions. - Since I only have German language installed (but not only because of that), I have some issues in admin and also in catalog (cannot really use the option types). - It seems that to solve all the issues I have to get from http://addons.oscommerce.com/info/6818 the last update of Zappo in history and compare it with the ones I used. Am I right? Is someone using Option Type with OSC 2.3.1? If so does he/she has the price and remove link in the cart? (I solved this issue myself, but I'm not sure about side effects).
  14. davidedp

    [Contribution] Option Types v2

    Many thanks for the quick reply, I'll have a look at it. Do you have quantity and "remove link" in the cart? The current problem I have, is in my opinion in "/shopping_cart.php" ....
  15. davidedp

    [Contribution] Option Types v2

    Hello Everybody I'm also trying to getting this add-on working on OSC 2.3.1. Following the instructions I found out that in shopping_cart.php the quantity has been commented (as well as the remove link). Can you please post the merged file or a link to it? Many thanks
×