ryanm527 Posted March 14, 2006 Posted March 14, 2006 I need to add a couple attributes to products that the user will not be able to change, or even see. They are needed on the admin side, and will not matter to the customer. We are shipping via fed ex freight, and not all items ship from the same address, so I need to be able to assign one of 3 zip codes assignment to each product. The other attribute is a simple YES or NO. Again, in both cases the customer does not need to see or be able to change the data (doing so would result in miscalculation of shipping charges). The only thing they will be needed for is for the shipping module to see so that it can determine how to properly calculate shipping. I have looked for a contrib to this and didn't come up with much. I tried to install the extra field contrib, but the instructions were extremely difficult to understand (i have to do it manually because i have so many other contribs already installed). Does anyone know of a way to do this? It seems like a simple thing, but I've been running into brick walls for days trying to get it done. Thanks! Quote
♥bruyndoncx Posted March 14, 2006 Posted March 14, 2006 there is a static attributes contribution that makes attributes readonly, plus you can decided to show or hide them. I think it will do the job for you. Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
jashnu Posted March 15, 2006 Posted March 15, 2006 Is there a way to make attributes stay the same price, no matter how many products a person chooses i.e. buy 1 product with option a = $15 or buy 5 products with option a = $15. Quote
ryanm527 Posted March 15, 2006 Author Posted March 15, 2006 Thanks... I have actually looked at that contrib, but its patch files and I want to do it manually, because of my other contribs. It only includes a patch file, and I am not familiar with using patch files. You are right though... i think this would do exactly what I want to do, if I can just figure out how to install it??? It gives some commands that need to be run, but I am not sure where to run them... is that done on the server on locally. I am using a mac if that makes a difference. Quote
♥bruyndoncx Posted March 15, 2006 Posted March 15, 2006 Is there a way to make attributes stay the same price, no matter how many products a person chooses i.e. buy 1 product with option a = $15 or buy 5 products with option a = $15. I know similar questions have been asked to apply a certain fee only once, but I personally don't know of any contribution or solution available that does that. Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
♥bruyndoncx Posted March 15, 2006 Posted March 15, 2006 Thanks... I have actually looked at that contrib, but its patch files and I want to do it manually, because of my other contribs. It only includes a patch file, and I am not familiar with using patch files. You are right though... i think this would do exactly what I want to do, if I can just figure out how to install it??? It gives some commands that need to be run, but I am not sure where to run them... is that done on the server on locally. I am using a mac if that makes a difference. If you open the patch files in your regular text editor, you see similar sections returning. Each section has the line numbers of where you find the lines to change. Basically lines starting with the minus signs need to be removed and replaced by the ones with the plus signs. It's a bit tedious, but not a really difficult job to do this manually. For this contribution there aren't really that many files to change. Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
ryanm527 Posted March 16, 2006 Author Posted March 16, 2006 If you open the patch files in your regular text editor, you see similar sections returning.Each section has the line numbers of where you find the lines to change. Basically lines starting with the minus signs need to be removed and replaced by the ones with the plus signs. It's a bit tedious, but not a really difficult job to do this manually. For this contribution there aren't really that many files to change. Thanks, I'll give that a shot. I think there are only 2 files that need to be changed. My only concern is that some of the line numbers might be different since I have modified them... although I could probably edit original versions, and then redo the other contrib....just thinking out loud here... ugh.... :) I'll probably end up hiring a friend of mine who is really good at php to do some of this stuff in the end anyway! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.