Jump to content

violinman

Member
  • Posts

    154
  • Joined

  • Last visited

Everything posted by violinman

  1. I am not quite sure what you mean by "literal" issue, could you please explain in simple terms. I saved the box.session.php file as the google_translate.php and then just replaced the reference to the session box with the google code stuff. Maybe it is the literal bit that is causing the problem! Brian
  2. Ok I will give that a try, I did save a page to templates called google_translate.php and put the code in there and called it in the way you suggest - {include file='templates/google_translate.php'} but still no luck, it just crashed the site! Strange though, If I save a document with both parts of code in it, when I open the document it works fine. I wonder if there needs to be an entry somewhere for the file google_translate.php for cubecart to be aware of it? Brian
  3. Hi DB, it might help if I give you the other bit as well as you might have an idea how I place the code in the header, this bit is placed where you want the Google translate to appear. <div id="translate"> <div align="left"> <div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'de,en,es,fr,it,ja,ko,th,zh-CN,zh-TW', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </div> </div> Thank you, Brian
  4. Thank you for your reply, could you expand on the{literal}script{/literal} the actual line of code is: <meta name="google-translate-customization" content="fbf7401f77452570-feb54b900254ef56-g54139a6ff8d778ad-1a"></meta> I take your point about the number of columns, I have removed the session/login box which was to the left of the search box, will that then free up those columns? Thanks, Brian
  5. Hello, could someone please advise me as to which files I need to modify to add the Google translate to the header, either to the left or right of the search box. I found the header in the skin main.php file, do I add the display box there? It has two parts to it, one is a "meta name" bit which should go in the head if possible, the other block goes where you want the plugin to be displayed, it has two divs and a Google script link. I have been using it on my old site for many years and as I sell worldwide it is a worthwhile addition. Many thanks, Brian
  6. Thank you both for the recommendations, Git does look a bit daunting, I did install it but have not had a chance to see if it is something I have time to learn. Presumably I can do the same thing with beyond compare but would need to select manually what mods I want to keep? Brian
  7. That is a really good tip! I used to do C programming many years ago and in those days I did use a file compare program which was brilliant. I had completely forgotten about the file compare. I think that is probably the best way to go, can you tell me the name of your file compare software please? Many thanks, Brian
  8. You are absolutely right, I have spent this morning listing all of the mods I have made, I do comment as I go along, the large percentage of mods are to the skin files but also some to admin. The thought of upgrading is a bit of a nightmare, I will only do that when the time comes if it is a major feature improvement or a security upgrade. once it is working I don't want to break it!! I reckon around another three or four weeks and it will be ready to go live, I can then switch the DNS from the current live site which is a ClickCartPro site but very old, I built it over 15 years ago! Thanks for all the help and suggestions, I will be back for more as I am not there yet! Brian
  9. Bsmither you are a genius! it works perfectly and now sorts exactly as I wanted by product code. Thank you so much, you can definitely mark this post as RESOLVED! Regards, Brian
  10. Have made the change you suggested, that is so much better, many thanks for that. I hope to hear from you if you manage to solve the number sort problem. I was looking at other posts online of people with a similar problem, it seems what is needed is a lexicongraphical sort. Could I have your name? Many thanks, Brian
  11. The interesting thing is that if I look at the rows in the data base the sort is perfect! phpMyAdmin can do it. Bsmither I get the drift of your thinking but I am afraid it is a bit beyond my capabilities, I can make changes to php files if I know exactly where to put it but your explanation assumes an understanding that I probably am not up to, it has to be simple for me! Brian
  12. Now working perfectly and I have learnt how to add a column in phpMyAdmin! Brian
  13. thank you for that, i did find that sort section but I think for it to work on what I have I would need to use PHP string functions to remove the letters WP, then sort the numbers and then add back the WP at the front of the string assuming it will correctly sort 01 through to 160 without thinking 100 comes after 10! Brian
  14. Thank you Ian, A good point about plugins, another skill to learn! Brian
  15. Thank you Ian, I have just checked, I have PhpMyAdmin available on the server, I have never used it before so I might buy myself a book on the subject before I start adding bits as I don't want to corrupt it, I have always regarded MySQL as a bit of a black art but I suppose it is no more difficult than PHP which I cope with ok once I find the relevant file! Thank you for your help and advice. Brian
  16. Thank you Ian, I have not worked with MySQL before, is the phpMyAdmin available from within the Cubecart admin or is it a server based editor? Many thanks, Brian
  17. Hello, I have added a new text field to products general in the admin products.index.php. It appears ok and accepts input but it does not save the contents when I click save, could that be related to the data base not being aware of the new variable? If so how would I remedy the problem please. Thank you, Brian
  18. Hello, thanks for your response. I will probably have a go at it myself, could you please tell me which of the admin php files displays the product list and responds to a sort click on a column. Many thanks, Brian
  19. Hello, is there any way to set admin products to always display in product ID order rather than having to click that column every time to set the order? On a similar note, my product ID numbers run from WP01 through to WP160, the trouble is even when I click on the product ID column to sort it will for example put in order WP01 to WP10 but then continues with WP100, I realise this is logical to the program but I wondered if there is anyway to change this, I don't really want to add an extra 0 to the low numbers so that they are all three digits wide. Any advice much appreciated. Brian
  20. Thanks for that, I had not looked at the language file before, quite useful. I tried the {debug} but no info, maybe I need to put in in a div or something? Thanks, Brian
  21. Hello, could anyone please tell me what the string variable is called that contains the "Short Description (Optional)" I want to show this description on some of the product pages. I am using the Galaxyx skin. Many thanks, Brian
  22. You are a star! Both problems now sorted. I commented out: <a href="{$item.link}" class="th" title="{$item.name}"><img src="{$item.image}" alt="{$item.name}"></a> in content.checkout.medium-up.php that has stopped the image being displayed. I have also removed the: {$REGISTER_CHECKED} from line 458 in content.checkout.confirm.php. This has removed the default tick from the "I would like to create an account checkbox" Many thanks, further progress made! Brian
  23. Yes still with galaxy, I will take a look as you suggest. The other matter which I am finding very frustrating is in trying to remove the default tick from the "I would like to create an account box" I have found the relevant in content.checkout.confirm.php I have changed the value to 0 from 1 but it makes no difference, it is as iff it is hard coded into Cubecart!
  24. Could someone please tell me which file I need to look at to stop the shopping cart from displaying the product image? It seems that no matter how good the original image is the quality is atrocious when it appears in the cart, it is extremely small and very dithered so that it is not recognizable anyway. I would prefer not to have it. Thank you, Brian
  25. Thank you for your response, I have been in touch with him over the last couple of days, he says it works ok on his demo site but possibly he is using an earlier version to 6.1.7 I will mention that to him. Brian
×
×
  • Create New...