I've uploaded the Text options for Products add-on to the contributions section
Get it now - http://www.opencart.com/index.php?route ... ion_id=189
Get it now - http://www.opencart.com/index.php?route ... ion_id=189
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Thanks for the feedback... I will have to go back and make changes when I have a chance. I only tested with english.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Maaan I am so grateful to you! This is what I was waiting sooo much! Thank you so much man, thank you.
Is it possible to fix that nasty bag with double fields when you add another language? Please could you fix it, please and reupload it to the contributions. Again thank you so much, it was life important for me, I couldn't open store without it.
Is it possible to fix that nasty bag with double fields when you add another language? Please could you fix it, please and reupload it to the contributions. Again thank you so much, it was life important for me, I couldn't open store without it.
Oh I think I just fixed it myself
The only 2 bugs i found right now is:
1) You forget to uncomment "else { $txtoption = array(); }" in the catalog\controller\module\cart.php which caused error in cart module.
2) Just delete "<!--input type="hidden" name="txtoption_id[<?php echo $txtoption['option_id']; ?>]" value="<?php echo $txtoption['option_id']; ?>" / -->" in catalog\view\theme\default\template\product\product.tpl this was the case for the double fields when you use additional language. I think te php code was causing this, cause it wasn't commented
Anyway YOU DID A GREAT JOB. Thank you very much. I think Daniel should include it to the core in the next version.

The only 2 bugs i found right now is:
1) You forget to uncomment "else { $txtoption = array(); }" in the catalog\controller\module\cart.php which caused error in cart module.
2) Just delete "<!--input type="hidden" name="txtoption_id[<?php echo $txtoption['option_id']; ?>]" value="<?php echo $txtoption['option_id']; ?>" / -->" in catalog\view\theme\default\template\product\product.tpl this was the case for the double fields when you use additional language. I think te php code was causing this, cause it wasn't commented

Anyway YOU DID A GREAT JOB. Thank you very much. I think Daniel should include it to the core in the next version.
I *thought* that I had accomodated for languages, but when you said it wasn't I was a little confused... I think I forgot to uncomment those lines when I was still testing.
Anyways, I will do some cleanup and reupload if there are any other issues I come up with - I really should test with other languages.
Daniel - please feel free to add to the core if you're happy with it, I'm not selling this module or anything. I'm wondering if it might help add file uploading options to the cart?
Anyways, I will do some cleanup and reupload if there are any other issues I come up with - I really should test with other languages.
Daniel - please feel free to add to the core if you're happy with it, I'm not selling this module or anything. I'm wondering if it might help add file uploading options to the cart?
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Thanks, that works so far that the "normal" options aren't displayed twice (using two languages) in the frontend but:wortek wrote:The only 2 bugs i found right now is:
1. options using the new input field aren't shown
2. all options saved correctly in the database but shown twice while editing a product in the admin area
Regards,
Yeah, the language code looks like it's in the wrong spot... I'll fix it tonight and upload a full package again.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
thans I was trying to do it myself but no luck it seems like there is something wrong with the SELECT query in model/catalog/products.php or maybe not
but if i change this query to the original one, it doesn't doubles the fields but it doesn't see text fields as well (instead it post them as select options). Anyway I'am hoping you will be able to fix it tonight.
I think maybe if you could add some prefix to the mode section i.e. select_en, select_de, select_"language" then maybe it could somehow help.

I think maybe if you could add some prefix to the mode section i.e. select_en, select_de, select_"language" then maybe it could somehow help.
No database changes required. Just download the new package here.. remember to scroll down and get the file release, not the initially uploaded package.
http://www.opencart.com/index.php?route ... ion_id=189
I've tested it with one other language, but it loops indefinitely anyway using the same core functionality.
Thanks for the quick feedback guys. No more double ups this time.
Let me know if there's anything else wrong with it that I haven't seen. I'm using WAMP to develop, so hopefully there's no PHP gotchas in there this time.
http://www.opencart.com/index.php?route ... ion_id=189
I've tested it with one other language, but it loops indefinitely anyway using the same core functionality.
Thanks for the quick feedback guys. No more double ups this time.
Let me know if there's anything else wrong with it that I haven't seen. I'm using WAMP to develop, so hopefully there's no PHP gotchas in there this time.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
You're welcome!!! Now I can revert back to being a designer for a little while and hopefully pump out some cool templates!!!
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Deniedreadyman wrote:Now I can revert back

Implemented your newest version and doublecked anything ... admin works fine so far but i don't see any textoptions in the frontend .. seems that $txtoptions is basically empty in my test installation.
Any further hints for me?
Found another bug which is not very important for me but for other it may be. The problem is that I can't seem now put more than 1 option of each type. It means if I insert 2 text options it only shows the last one in frontend and in backend as well. The same for the select option.
Tested on the clean install of 1.2.9
P.S. This is either with one or many languages.
If it is possible would be nice if you could fix it.
Tested on the clean install of 1.2.9
P.S. This is either with one or many languages.
If it is possible would be nice if you could fix it.
Yeah, I'll fix it, but I'm sure I tested with 2 of each option. We'll see.. I'm in the middle of a big project now, so might have to wait till next week.
I hope it's not your PHP settings or anything because if I can't replicate it, then it's probably not the code.
I hope it's not your PHP settings or anything because if I can't replicate it, then it's probably not the code.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
I seem to have a problem with this.
It works fine for any product that has a text option. But for any product that does not have a text option it causes an error in the cart on the right hand side of the page.
Notice: Undefined variable: txtoption in /home/public_html/catalog/controller/module/cart.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/catalog/controller/module/cart.php:73) in /home/public_html/system/library/response.php on line 65
I should note that when I installed the text option addon, I went to edit an older product that had a size option applied. The size option was no longer showing and I had to re-add it, even though it was showing on the front end of the site.
It seems that this error started happening once the product had been re-saved.
Any thoughts?
It works fine for any product that has a text option. But for any product that does not have a text option it causes an error in the cart on the right hand side of the page.
Notice: Undefined variable: txtoption in /home/public_html/catalog/controller/module/cart.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/catalog/controller/module/cart.php:73) in /home/public_html/system/library/response.php on line 65
I should note that when I installed the text option addon, I went to edit an older product that had a size option applied. The size option was no longer showing and I had to re-add it, even though it was showing on the front end of the site.
It seems that this error started happening once the product had been re-saved.
Any thoughts?
Aha, I fixed that problem by removing the 2 comments "//" from the cart module as another poster pointed out 
/// Spoke too soon. Now while the products that dont have a text option can be added fine, the customisable ones show an error on the cart (right hand cart box)
Notice: Undefined offset: 1 in /home/public_html/system/library/cart.php on line 102
Notice: Undefined offset: 1 in /home/public_html/system/library/cart.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/system/library/cart.php:102) in /home/public_html/system/library/response.php on line 65
Anyone got any thoughts on how I can get this working as at the moment I can't run a size option and a text option together?

/// Spoke too soon. Now while the products that dont have a text option can be added fine, the customisable ones show an error on the cart (right hand cart box)
Notice: Undefined offset: 1 in /home/public_html/system/library/cart.php on line 102
Notice: Undefined offset: 1 in /home/public_html/system/library/cart.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/system/library/cart.php:102) in /home/public_html/system/library/response.php on line 65
Anyone got any thoughts on how I can get this working as at the moment I can't run a size option and a text option together?

Who is online
Users browsing this forum: No registered users and 11 guests