Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GemRock

Pioneers
  • Posts

    2,020
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by GemRock

  1. well, you dont have to use a png image but if you do then as the error suggests make sure you dont have Alpha channel in it since it is not supported. do you a favour to use a gif or jpg image. Ken
  2. if i understand you problem correctly, then you could try to replace the two meta tags (description & keywords) of the second option with the two meta tags so that it looks like this: <title><?php echo ((strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1)) ? $header_tags['products_name'] . ' - ' . $breadcrumb_tags->trail_tags(' ') . ' - ' . TITLE : TITLE; ?> </title> <meta name="description" content="<?php echo $header_tags[desc_tag]; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> as you can see it is quite simply so you probably can place with different combinations to fit your needs. Ken
  3. sorry i dont understand what you are saying or referring to at all, so cant help. Ken
  4. 1. text colour: is controlled by [admin]/includes/stylesheet.css. look for smallText class in the css file, and make changes to fit your site. note that whatever changes you make might also affect other parts of the admin side at your site; 2. line 119 might not be the line number of the file in the downloaded files. so just look for the line where the column_left.php is - there is only one place in the file, and make the change as mentioned. Good luck! Ken
  5. Hi coopco line 419: // $pdf->Text(10,117, tep_html_entity_decode(PDF_INV_CUSTOMER_REF) . (int)$customer_id); i suppose you could un-done the comment and then chnage tep_html_entity_decode(PDF_INV_CUSTOMER_REF) . (int)$customer_id); to '' lines 509 - 521 are for the totals. I suppose you need to do a if test to see if it is the line after which you like to add a blank line, if it is then simply increase the value of the variable $Y_Table_Position to, say, 10. I have not tried it myself as I cant see why there would be such a need... Ken
  6. Thanks Gary_london for pointing out the error. as I mentioned above I was locked outalthough what i typed was saved automatically which was good but i did not realise it was being too good to change the code for me with what it thought was right. Now you should look for this line of code: $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased)); and insert before it: $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('invoice_pdf.php', 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice_pdf.gif', 'generate pdf invoice') . '</a>'); Ken
  7. One final thing to mention: Open [admin]/invoice_pdf.php, edit lines 15 to 25 for your shop and your taste (font & colour). Ken
  8. Sorry I was locked out while I was entering the text. Here it is: If what you want is nothing more than print/save invoices from admin, and do not want to make lots of changes to your shop, especially database changes, to achieve this little tiny thing, then this is the contribution for you: pdf invoices for admin only It is basically taken from chris23's pdf invoice controbution but modified it so that there is no need to make any changes at the shop front epspecially the checkout process, and there is no database changes. All credits to chris23 and those mentioned by chris23. chris23's addon does have admin access but that requires you to do a full installation, which I do not think it is necessary. Here is the installation instruction (if you need it) that is not included in the package: 1. copy all the files to the admin side of your shop, observing the folder structure in the downloaded package. I do not expect you have the same file names on your shop, so it'd be safe to just upload them to your shop; 2. open [admin]/orders.php for edit, look for the line: $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased)); it should be near the end of the file. 3. before it, insert: $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('invoice_pdf.php', 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice_pdf.gif', 'generate pdf invoice for this order') . '</a>'); That's all. I do not expect there would be support issues posted here but as standard I created this support thread.
  9. If what you want is nothing more than print/save invoices from admin, and do not want to make lots of changes to your shop, especially database changes, to achieve this little tiny thing, then this is the contribution for you. Here is the installation instruction (if you need it) that is not included in the package:
  10. Good question! an invoive is normally produced only when the goods is delivered, not during the process of placing an order, as orders could be cancelled. at the end of the ordering process, an order confirmation email is good enough and what is needed. i haven't tried it myself and may be missing something but given that someone who does asks such a question then i think there is an issue there. Ken
  11. yes you are not the only one who deliver to different countries but you may be the only one who tries to link postage to languanges. osc does not work that way. It works out different postage tariff based on 'zones', which you will need to set up, different zones would have different postage. This function is built in osc or it wont be that much useful. Ken
  12. I did not realise there had been quite a few posts here since last time - seems the forum has somewhow stopped sending out emails. anyway, in addition to Coopco's posts, the ONLY reason you got that error (fields do not exist) is: 1. you do not finish modifying the application_top.php, in particular, this part of code in Step 2: if (!mysql_query("SELECT title_tag FROM " . TABLE_PRODUCTS_DESCRIPTION)){ tep_db_query("ALTER TABLE " . TABLE_PRODUCTS_DESCRIPTION . " ADD COLUMN title_tag VARCHAR(255) NULL, ADD COLUMN desc_tag TEXT NULL, ADD COLUMN keywords_tag VARCHAR(255) NULL"); } 2. you have not browsed to your site (the osc home page or any product page would be OK). Note that there are two applicaton_top.php files. This contrubition only modifies the one under [catalog]/includes/, NOT the one at the admin side. Good Luck! Ken
  13. as far as I can see, the home page is fine. you have done it correctly. if you want the landing page of your site - the home page - title to be "RonzSmokinWood, BBQ, bbq grills, bbq smokers, smoking wood chips, cookshack smokers", then you can replace the TITLE (in capital letters) with it, or make the change in english.php (look for the define for TITLE). You have not done any meta tags on the product_info.php though, which is th emost important part of your seo effort. Ken
  14. I am soory I do not understand what is your problem. I think you better post your site url so that I can have a look - a picture is worth more than 1000 words. Ken
  15. why not test it and find it out then tell me? if not to your liking then change it back and try another trick. it only takes a few minutes I think. Ken
  16. read a few pages back for the answer. Ken
  17. I assume you referred to the product info pages. I recommend you go to admin and use the edit header tags menu/file to enter titles for each product. titles for each product are supposed to be different from each other, or google may complain you got deplicate titles. Ken
  18. it is precisely at lines 491 - 499. if you can't see it then download rc2a and extract the file in question and replace your exosting one with it if you have not made any change to it. Ken
  19. Hello Here is how: <meta name="description" content="<?php echo $header_tags[desc_tag]. " " . 'buy'; ?>"> Note that there is a space between the added double quotations. or you simply add a space before the word buy within the single quotes. Ken
  20. Hi frank sts would not or could not (completely unwise if doing so) replace the whole header section. what it may have replaced in your case is the meta tags. I got a feeling the sts is designed to work with another header tags controbution. if you dont have that contribution installed then you get no header tags. if this is the case you would need to change the sts you are using, basically to disable its capturing of the header info. as for my contribution, as long as you add something similar to the follow: at theheader section of product_info.php, it will then show up. there is no secret there and is very straightforward. you could try to change this line: to: the above code would at least show 'your testing text'. But I guess you wont see it because they are ignored by the sts.Ken
  21. Hi Sam Yes, in the next release as I already answered to the same post in the general support thread. Ken
  22. sorry trembia, I dont really know what you meant. Ken
  23. I am not familiar with sts since I havent used any of them myself so I dont know what the difference would be between different types of sts and their versions. At one time I was asked to install my contribution to an osc shop that uses sts, and what I did was a bit like 'reversed-engineering'. as you said in your post that the header tags did not appear on the page source despite the fact that you had added them there. That would suggest the <head> </head> section was somehow bypassed or ignore by sts - exactly the same I saw when I did that installation last time. you would need to look at the application_top.php because that is the only code run before the head section. When I looked at the file, I saw which captures text between application_top.php and header.php. By commenting out that line of code, the header tags showed up. But this may break a few things on the site, which is not difficult to fix - you just need to trace them. I did not made any changes in the general.php RE header tags (my contribution). Sorry I could only give you a hint how to hunt down the problem, not a complete step by step guide as your version of sts may be different. Good Luck, Ken
  24. the default shop title can be changed in [catalog]/includes/languages/english.php Ken
×
×
  • Create New...