Jump to content

tomislav_

Members
  • Content count

    10
  • Joined

  • Last visited

Everything posted by tomislav_

  1. Some fixes (i think): 1. special characters in text like & or " add addslashes(html_entity_decode(...)) in shopping_cart.php $products_name .= '<tr><td height="20" style="text-align:center;vertical-align:middle;"><small><i> - ' . addslashes(html_entity_decode($products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] )). '</i></small>'; 2. link on product in cart When someone has created a product with text that includes special characters such as +, & etc when clicking on the product in the card all the attributes are lost. The fix that helped me in shopping_cart.php: add urlencode() to the string <em><font size="2" color="9DB604"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . urlencode($products[$i]['id'])) . '">' . $products[$i]['name'] . '</a></font></em></td> </tr> 3. a consequenst of 1 is that you will have problems when you want to remove a product in the cart that has a special character such as & or " in the text this will have to be fixed in classes/shoppint_cart.php add: htmlspecialchars(stripslashes(...)) unset($this->contents[htmlspecialchars(stripslashes($products_id))]); if (tep_session_is_registered('customer_id')) { tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input(htmlspecialchars(stripslashes($products_id))) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input(htmlspecialchars(stripslashes($products_id))) . "'"); looks like it works for me now. need to do some more testing, if anyone else has the same problem and this fix worked...let me know... this could be my very first fix/contribution :) //t.
  2. I am having problem with the Text area and special characters. Anyone have the same problem? Try for example to add a quote sign " or &. Is this a know problem or is there already a fix for it? Could not find any fix. 1. When adding an attribute " it gives me " 2. When clicking on a product in the shoppingcart that contains special caracters it is supposed to direct me to the product with all the attributes filled in, but its blank. 3. When trying to delete a product in the card that contains a special character its not possible Anyone expeirenced the same problem? Br, T.
  3. Hi, I am using a paymentmodule (Paynova) for processing creditcards. I have configured a shipping module like this Enable Flat Shipping True Shipping Cost 31.2 Tax Class Taxable Goods Shipping Zone Sweden The shipping is 39 SEK incl. VAT/tax and 31,2 excl VAT. When i checkout the product in the payment module from Paynova iFrame the tax for the shipping is not included. I always get -7,8 SEK less that need to charge the customer. Is it a problem with the Paynova Module? or is it a general problem with the "create session" for shipping TAX that is passed to the payment module? Anyone have the same problem? or can reproduce the problem? I am using osCommerce v2.2 RC1. //t.
  4. Have anyone had the same problem? When i add a text string with special characters such as + sign, when i want to update the text it does not display. Any ideas? //t.
  5. Fixed the problem, I had to update the table: PRODUCTS_OPTIONS for the new language added ... did not have the same product_option_type ... had to update it to 1 for the attributes for the new language to make it work
  6. Hi, I have been using the contribution successfully for a while but now but when i add a new language to may existing catalogue i run into problems, i get a drop down instead of text field for the new language on the product attributes. any clues? current language: <input type="text" name ="id[txt_27]" size="75" maxlength="75" value=""> the new language: <select name="id[27]"><option value="0" SELECTED>TEXT</option></select> Thankful for any help... //T.
  7. Hi, I have created a osCommerce shop and want to use one database but two code instance. I have my reason for this :) domain.com --> database1 domain.com.mk (specially modified code) --> database1 (same as above) The database/admin have two languages defined english (en) (default) and macedonian (mk). When the user comes to the domain.com.mk I want only mk to show (solved) When the user comes to the domian.com I want only en to sho (solved) Now to the problem, since the default language is set to english in the database/admin the language on com.mk is in english. How and where can I override this? I cannot find the code where the default language is set. I thought I did but does not seem to work. includes/application_top.php // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { if ($configuration['cfgKey'] == 'DEFAULT_LANGUAGE') { define($configuration['cfgKey'], DEFAULT_LANGUAGE_OVERRIDE); } elseif ($configuration['cfgKey'] == 'DEFAULT_CURRENCY') { define($configuration['cfgKey'], DEFAULT_CURRENCY_OVERRIDE); } elseif ($configuration['cfgKey'] == 'USE_DEFAULT_LANGUAGE_CURRENCY') { define($configuration['cfgKey'], USE_DEFAULT_LANGUAGE_CURRENCY_OVERRIDE); } else { define($configuration['cfgKey'], $configuration['cfgValue']); } } Thankful for any help or input! //T
  8. si, but this is where i set the default language, i know this, but the thing is I cannot have two default languages at the same time. I have the default language set to english for the domain.com site. But for my domain.com.mk which use the same database i want the default language to be mk and not english. where in the code can i override this, basically I want to do a check in the code, if .com.mk then overrride the default language english... //t.
  9. Great contribution. However seems like I have missed something when I merged it to my eShop... Can anyone guide me or tell me where I have gone wrong? 1. I add attributes to the product "text text" and add it to the cart 2. I view the cart and it looks fine but when I make an update (quantity) or if I have more products and remove one item all the attributes of the product are gone... Please anyone... any ideas on where I have gone wrong? Best Regards, T
  10. Hi, I have been struggling with the installation of the Product Attributes contribution, but finally got it installed an running I think. I downloaded the latest OSC 2.2 MS2 from the osCommerce site and tried to implement the Product Attributes addon (http://www.oscommerce.com/community/contributions,160). The feature is exactly what I was looking for, its a great contribution. However I have some questions. - When I have added an item with text to the cart, is there a way/fix for the customer to edit an item from the cart without creating a new item instance? Or is this the way it is suppose to work? - Is there a package of the Product Attributes addon for OSC 2.2 MS2? I went through all packages (http://www.oscommerce.com/community/contributions,160) but could only find support for OSC 2.2 MS 1, or did I miss a package? Br, T.
×