pingz Posted May 2, 2006 Posted May 2, 2006 Hi, I have been searching around for a contribution which allows us to add qty to the product attributes so that say when a particular size has no more qty then it will automatically be reflected as sold out or cannot be selected anymore. Anyone can recommend or know of such contribution? Thanks!
Wendy James Posted May 2, 2006 Posted May 2, 2006 http://www.oscommerce.com/community/contributions,888 I think this does what you mean. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
pingz Posted May 2, 2006 Author Posted May 2, 2006 Thanks a lot! I think this is what I'm looking for! :)
pingz Posted May 3, 2006 Author Posted May 3, 2006 Hi! Do you know of anything simpler? As I already have modifications to my files, so very difficult to implement this contribution. Anything w more direct installation? I did still try to use this contribution but had difficulties halfway. Appreciate any feedback. Thanks!
Guest Posted May 5, 2006 Posted May 5, 2006 Hi, To make it easier to implent the file changes: Try searching google for beyondcompare That should do the job for you perfectly Let me know if you need any help using it Cheers Gareth
demi Posted May 9, 2006 Posted May 9, 2006 http://www.oscommerce.com/community/contributions,888 I think this does what you mean. Hi Wendy, I need help!. When you buy 2 or 3 or 6 or any quantity of the same item it is always "1" item sold at check out . How can I solve this .
Wendy James Posted May 9, 2006 Posted May 9, 2006 I wish I could help you but without looking at you code I would have no idea why this is happening. It has only happened to me once and that was when I moved the add to cart button outside of the part of the form function that told the cart how many to add while changing the layout on the product_info.php Did you edit that page? Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
demi Posted May 10, 2006 Posted May 10, 2006 I wish I could help you but without looking at you code I would have no idea why this is happening. It has only happened to me once and that was when I moved the add to cart button outside of the part of the form function that told the cart how many to add while changing the layout on the product_info.php Did you edit that page? Hi Wendy, Thanks for your reply I have solved that problem I was not updating the cart!. But you know I get a completely different error now. When I started to change the page with my own products and when start inserting new products in 2 languages English and Turkish , the Turkish name of the product always comes as "ARRAY" what ever I write as the name of the product but teh English name is correct then when I insert the product I then get the belwo message : Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php on line 134 Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php:134) in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/general.php on line 22 can you help me on that please!. kind regards
klavs Posted May 15, 2006 Posted May 15, 2006 Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php on line 134 Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/e-market.artest.com.tr/docs/yaser/includes/functions/database.php:134) The problem is properly related to the way PHP parses the posted data when arrays are send. You send arrays when having more than one language. I have not looked into whether it's PHP parsing the wrong way or oscommerce using enctype in an illegal way. Anyhow. The problem can be solved by replacing instances of enctype="multipart/form-data" with enctype="application/x-www-form-urlencoded". search admin/categories.php for lines with: * tep_draw_form('new_product' * tep_draw_form($form_action .. and replace in those two lines. /Klavs
demi Posted May 15, 2006 Posted May 15, 2006 The problem is properly related to the way PHP parses the posted data when arrays are send. You send arrays when having more than one language.I have not looked into whether it's PHP parsing the wrong way or oscommerce using enctype in an illegal way. Anyhow. The problem can be solved by replacing instances of enctype="multipart/form-data" with enctype="application/x-www-form-urlencoded". search admin/categories.php for lines with: * tep_draw_form('new_product' * tep_draw_form($form_action .. and replace in those two lines. /Klavs Hey thanks that worked fine!. I have another small problem ( sorry this is my first attempt) when I am adding a new product the section where one puts the web address of manufacturer / another site name , well whenever I do that and later on click on that link I always get http://http://e-market.artest.com.tr/redir...FSL+Stations_GB ho wdo I getrid of two http:// at the beginning. By the way I dont write http:// at beginninning of the adress whenI ma inserting a new product. I need to redirect people to brochures directory in my web site rather that web adresses. Hope you can help me with that too. thnaks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.