[Contribution] Option Types v2
#1
Posted 16 June 2009 - 12:56 PM
It is an update/upgrade/revision/compilation of the following contributions:
* Option Type Feature v3 (Originally by Chandra Roukema)
* Option Type File Feature v.8 (Originally by Matt Fletcher)
* AJAX Attribute Manager v2.8.6 ((Almost unchanged) Originally by Sam West)
* Improvements by me (AvanOsch aKa Zappo the Wizard of Osch) for http://shop.crystalcopy.nl
Please post questions, comments, request, etc. right here!
The Contribution Page can be found here: http://www.oscommerce.com/community/contributions,xxxx
Like Eek said... It never hurts to help!
----------------------------------------
#2
Posted 16 June 2009 - 05:17 PM
#3
Posted 16 June 2009 - 07:51 PM
gabitzaG, on Jun 16 2009, 06:17 PM, said:
Thanks for your post!
After my initial post, I was hoping to edit the post later to change the link to the contribution, but that wasn't possible anymore...
So, here it is: http://addons.oscommerce.com/info/6818
Like Eek said... It never hurts to help!
----------------------------------------
#4
Posted 18 June 2009 - 10:54 AM
I had experienced one problem but i solved it really easy.
Each time i reloaded the page there was an empty field added to the attributes.
So in line products_attributes.php comment out line 31.
Cheers!
#5
Posted 18 June 2009 - 11:25 AM
Janneshaagsman, on Jun 18 2009, 11:54 AM, said:
So in line products_attributes.php comment out line 31.
That should not happen...
I am also unable to reproduce that behavior...
You say an empty field is added to the attributes.
What do you mean? Product Attributes, Option Values or Options?
Since the particular code involves only Option Values, and should only trigger when Option Value Text is not (yet) correctly set, I don't understand what's going wrong here...
BUT, since the code is only a "safety measure", everything should work normally.
If you ARE going to comment out that line, you can comment out the lines 25 - 34. (- Zappo - Option Types v2 - Check if the option_value TEXT_UPLOAD_NAME is in place, and insert if not found)
These are unnecessary when line 31 is commented out...
Is anyone else able to reproduce this behavior?
Like Eek said... It never hurts to help!
----------------------------------------
#6
Posted 20 June 2009 - 07:51 PM
PHP Version:5.2.3 (Zend: 2.2.0)
Databas: MySQL 5.0.45
PHPMyAdmin 3.1.3.1
It says : Temporary Uploads folder is automatically cleaned. How old the files must be for deletion, can be set via Admin.
When i go in Admin and open Option Types ther is nothing there to be set. Title, Value, Action. Everything is emty.
Whot i did wrong ??? Help ""
Contribution is just beutiful. Great Thanks !!!
#7
Posted 21 June 2009 - 10:42 AM
zoran23, on Jun 20 2009, 08:51 PM, said:
Whot i did wrong ??? Help ""
I have no idea what went wrong, but I'm guessing the SQL file wasn't (properly) executed...
Go into your phpMyAdmin, and check the table "configuration_group" for the Option Types entry, and note the "configuration_group_id" number.
Then check the table "configuration", and find the Option Type values (use progress bars?, Upload File Prefix, Delete Uploads older than, upload directory and temporary directory)
These probably don't have the correct configuration_group_id... Set it to the value found in configuration_group
Lat me know if it works out.
We'll try another fix if it doesn't.
Edited by Zappo, 21 June 2009 - 10:43 AM.
Like Eek said... It never hurts to help!
----------------------------------------
#8
Posted 21 June 2009 - 01:50 PM
Zappo, on Jun 16 2009, 06:26 PM, said:
It is an update/upgrade/revision/compilation of the following contributions:
* Option Type Feature v3 (Originally by Chandra Roukema)
* Option Type File Feature v.8 (Originally by Matt Fletcher)
* AJAX Attribute Manager v2.8.6 ((Almost unchanged) Originally by Sam West)
* Improvements by me (AvanOsch aKa Zappo the Wizard of Osch) for http://shop.crystalcopy.nl
Please post questions, comments, request, etc. right here!
The Contribution Page can be found here: http://www.oscommerce.com/community/contributions,xxxx
Plz Help Me for it. Thanks
#9
Posted 21 June 2009 - 03:58 PM
imty786, on Jun 21 2009, 02:50 PM, said:
Plz Help Me for it. Thanks
The difference between osCommerce 2.2rc2a and 2.2rc2 is VERY minimal: http://www.oscommerce.com/about/news,130
There are some bugs fixed in 2.2rc2a, but the rest is exactly the same! (2.2rc2a REPLACES 2.2rc2)
Option Types v2 should even be usable in older versions (like 2.2ms2)
Like Eek said... It never hurts to help!
----------------------------------------
#10
Posted 22 June 2009 - 08:20 AM
I have not used it in a store yet but intend to. Many thanks for sharing it.
Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?
There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.
CHOOCH
#11
Posted 22 June 2009 - 08:33 AM
chooch, on Jun 22 2009, 09:20 AM, said:
That's exactly the reason I created it!
Like Eek said... It never hurts to help!
----------------------------------------
#12
Posted 22 June 2009 - 09:11 AM
Zappo, on Jun 22 2009, 09:33 AM, said:
That's exactly the reason I created it!
Have you thought about linking your attributes to stock, or stock via QTPro?
Or in essence just giving your created attributes 'stock' so they get deducted as per sale?
Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?
There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.
CHOOCH
#13
Posted 22 June 2009 - 01:53 PM
chooch, on Jun 22 2009, 10:11 AM, said:
Or in essence just giving your created attributes 'stock' so they get deducted as per sale?
However, I use accounting software that's linked to osCommerce. (osFinancials)
Because of this, I have no use for QTPro. (I need to track real products for stock updating)
I'll actually be creating an entirely new contrib: Products as Options.
With that contrib, you'll be able to "group" products together as another product's Options:
For example: Main product = Shirt, Option products = Red Shirt, Blue Shirt, Green Shirt
When adding the product to the cart, it will use the selected Option Product as Main product...
The big difference: products attributes are no "real products", and have no stock-tracking (inside my accounting software)
Adding the Options as real products solves this problem...
Like Eek said... It never hurts to help!
----------------------------------------
#14
Posted 24 June 2009 - 02:17 AM
Thanks
#15
Posted 24 June 2009 - 08:49 AM
ghurty, on Jun 24 2009, 03:17 AM, said:
As I'm thinking of how to do this, I realize this isn't a very easy task...
It would involve having a second price field for attributes, and different attribute handling (in application_top) when adding products.
I'm not sure what you meant by quantity, but if you want the second fee to be used independent on the products selected, that would make things even harder...
Like Eek said... It never hurts to help!
----------------------------------------
#16
Posted 24 June 2009 - 11:47 AM
Zappo, on Jun 24 2009, 09:49 AM, said:
"
I mean that if you by 25 of an item, there will be for example a "one-time fee" of $.75 per attribute, and a $.25 fee per attribute that gets multiplied by 25.
#17
Posted 24 June 2009 - 12:27 PM
ghurty, on Jun 24 2009, 12:47 PM, said:
That makes a big difference, as attributes are (separately) linked to products.
To osCommerce, 'Product A' with attribute 'Green' is not the same as 'Product A' with attribute 'Red'.... (which makes counting the number of added attributes somewhat difficult)
Like Eek said... It never hurts to help!
----------------------------------------
#18
Posted 24 June 2009 - 12:44 PM
Edited by jkenfield, 24 June 2009 - 12:45 PM.
#19
Posted 24 June 2009 - 02:11 PM
Zappo, on Jun 24 2009, 01:27 PM, said:
That makes a big difference, as attributes are (separately) linked to products.
To osCommerce, 'Product A' with attribute 'Green' is not the same as 'Product A' with attribute 'Red'.... (which makes counting the number of added attributes somewhat difficult)
We have a Birthday card.
The birthday card base price is $1 per card, with a one time $2 design fee. The base birthday card is in black and white.
There is an extra $.50 charge per color, with an extra $.10 design fee per color.
So if someone orders 25 birthday cards in black and white, the total will be $27 ($25 cards + $2 design fee)
If he orders 25 with two extra colors, then the price will be $52.20 ($50 cards + $2.20)
Is this the first way or second way you mentioned
Thank You
#20
Posted 24 June 2009 - 02:37 PM
jkenfield, on Jun 24 2009, 01:44 PM, said:
Simply "Merging" the two is impossible. There are too many differences...
However, I have used the "Old" Option Type Feature a long time ago, and if it's just the Character limit, I believe that option is available via Admin, in "product_attributes" (Option Value Length)
It SHOULD work as it does in Option Types v2....
ghurty, on Jun 24 2009, 03:11 PM, said:
............
Is this the first way or second way you mentioned
You'll be able to count the attributes already connected to a product...
BUT, as I stated in an earlier post, this is not going to be a simple change!! You'll need at least SOME php skills...
Like Eek said... It never hurts to help!
----------------------------------------









