Guest Posted March 9, 2011 Share Posted March 9, 2011 Hi! The shop I manage sells only downloads and we do not need different versions. I have managed to delete the drop-down menu where you choose the version, but have not been successful at finding the spot where the text reading "Available Options" is. And I want to delete that. I also want to find the "buy now" so I can change the code to be really "buy now" rather than look at the product. One more: I have a free podcast and for that ONE product, I want to delete the "add to cart" and "buy now" buttons. Basically, anything I have priced at 0, I want to not have misleading buttons for. THANKS in advance for sharing your knowledge!! Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2011 Share Posted March 9, 2011 Here's my desperate call... anyone there? Any suggestions? I did a search to try to find the words in the code and had no luck... Thank you! Link to comment Share on other sites More sharing options...
Xpajun Posted March 9, 2011 Share Posted March 9, 2011 The text "availiable options" will be in the corresponding language file to the file in which you deleted the dropdown. As I understand it, if you have attributes then the buy button will divert to the product rather than add to the cart, so the customer can choose their options, as you have downloads you must have attributes - even if you delete the dropdown My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2011 Share Posted March 9, 2011 Thanks, Julian! But I'm still completely lost. What attributes? In the admin section I can see attributes, but the customer can just choose to buy the product as is, period. I suppose, if it's simpler, I could change the "buy now" to "learn more". Only if I could find where this information is. :-( Link to comment Share on other sites More sharing options...
Xpajun Posted March 10, 2011 Share Posted March 10, 2011 The availiable options are the attributes - I've never gone into it but downloads are part of the attributes for some reason - I don't do downloads so never bothered to find out ;) All words are in the language files - this is how osC is multi lingual - Whatever file you are looking at with coding you will find an identically named file in the language file (for each language you use) in an identically named folder (e.g. for catalog/index.php there is a language/english/index.php) It is in these language files that you will find the words, etc. that make up the viewed pages of your store. But I think you'll find that if you change "BUY NOW" on one button you'll change them on all My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2011 Share Posted March 10, 2011 THANKS for your help! I did not know that until you pointed me to the "index.php" on languages. So I'm partly successful so far. I am also trying to remove the "new products for ..." section on my index. I have turned the module off, but I still have the text at the bottom of the index page, with all my products. Thanks to you, I was able to delete it on one side, but not on the other--meaning, I removed it from the index.php under languages folder, but I get text that reads "TABLE_HEADING_NEW_PRODUCTS" that I can't find anywhere. And this is the last question: how do I delete the "add to cart" for free products? THANK YOU, THANK YOU, THANK YOU! Link to comment Share on other sites More sharing options...
Xpajun Posted March 10, 2011 Share Posted March 10, 2011 THANKS for your help! I did not know that until you pointed me to the "index.php" on languages. So I'm partly successful so far. I am also trying to remove the "new products for ..." section on my index. I have turned the module off, but I still have the text at the bottom of the index page, with all my products. Thanks to you, I was able to delete it on one side, but not on the other--meaning, I removed it from the index.php under languages folder, but I get text that reads "TABLE_HEADING_NEW_PRODUCTS" that I can't find anywhere. And this is the last question: how do I delete the "add to cart" for free products? THANK YOU, THANK YOU, THANK YOU! You have removed the define that is: define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); The first part of the define is in the coding, if you remove that then the program will show "TABLE_HEADING_NEW_PRODUCTS" just do this instead: define('TABLE_HEADING_NEW_PRODUCTS', ''); Now you are telling the program to 'print' nothing Just above that you'll find: define('TEXT_MAIN', ''); Anything you put between the two ' ' will show on your index page. You can use html tags, images, links or whatever you need BUT there is one proviso: any extra ' that you insert between the beginning and ending one must be escaped - that is written like this \' as in it\'s or they\'re - otherwise you will get errors when you try loading the page If you open catalog/index.php you'll find the following: <?php } // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> The line that starts with // is the line for calling the new products - you won't have the // but if you put them in you'll turn that line into a comment that will not be read by php (i.e. you have got rid of the line but you still have it in position if at some later date you want to replace it And your final question... I think it can be done but will need a rewrite of some of the code - might be an idea to ask that question as a separate topic. My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2011 Share Posted March 10, 2011 Thanks, Julian!!! :-) I had assumed that I had to delete it from the other file :-S I wonder if this is very obvious to everyone else, but with your answers on this post you have really helped me understand OS Commerce MUCH better. I will start a new post with that question. Link to comment Share on other sites More sharing options...
Xpajun Posted March 10, 2011 Share Posted March 10, 2011 Thanks, Julian!!! :-) I had assumed that I had to delete it from the other file :-S I wonder if this is very obvious to everyone else, but with your answers on this post you have really helped me understand OS Commerce MUCH better. I will start a new post with that question. Probably not to newbies - it wasn't to me when I started working with osC (and osC was not the first time I'd used php) - it does take a while to realise that there are 2 of every file in the shop front (almost) and then you find out that every file is repeated again in admin (certainly looks that way when you start - I mean 4 index.php files??? :blink: :blink: ) you begin to wonder if the developers are evil minded people just trying to wind you up... But eventually you come to terms with it and find out what little bits do - always those that concern you mainly and by that time you see the newbies coming here and asking the same questions you did - so you answer them My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.