Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tayl1684

Pioneers
  • Posts

    90
  • Joined

  • Last visited

Profile Information

tayl1684's Achievements

  1. Ok sussed it, sort of, got it running via a box file. Cheers anyway
  2. Further to my previous post; Ive been playing around a bit looking at the format of the rest of sts_user_code.php and its all one section of PHP so obviously by previous code was causing an error. I though I should be able to do something like this: $sts_block_name = 'customermessage'; require(STS_START_CAPTURE); echo (CUSTOMER_MESSAGE); require(STS_STOP_CAPTURE); But it completely ignores the tag on the template (and just prints it on the screen) I can pull this text correctly from the database elsewhere on the site but just cannot get it working through sts. Any suggestions would be much appreciated. Cheers Ian
  3. Hi I've been using sts_user_code.php, to try to set up a placeholder which only has to pull some text from the database and am having a bit of trouble (predictably). I thought i could just do something like this: $sts_block_name = 'customermessage'; require(STS_START_CAPTURE); <?php echo nl2br(CUSTOMER_MESSAGE); ?> require(STS_STOP_CAPTURE); I've already created the database key but all I get is parse errors. Can someone help me out and suggest how to do this cos as you can see I'm a complete div with PHP Cheers Ian
  4. Thanks Chris, I'll have a crack at it that way. Ian
  5. Hi I need to have a facility to have a message on the template of my site Meccanoman. The message needs to be editable via the admin. At pressent I have to edit the template file evety time I want to change it! I'm currently running sts 2.01 and I realise I could do this via PHP in the later versions but I'm a bit worried that the upgrade will break the site. Can anyone point me in the direction of an easier way to do this or give me advice on the implications of upgrading. Many thanks in advance Ian
  6. Hi again one more thing hopefully someone might be able to help with! in sts_user_code.php there is a handy bit of code that allows you to use a dropdown menu. this is great except it doesnt add a sid to the path of the categories, which means that when you use it it drops the contents of the shopping cart. I'll post the code below maybe someone can tell me how to change it so that it adds a sid when it builds the url Many thanks Ian
  7. Ok never mind I made the buttons in the template with &$sid at the end of the path and it worked fine!
  8. Hi, Im trying to get some extra buttons for the top of my website (like amazon). Ive coded them into sts_display_output.php, filenames.php, english.php and of course the template. It all works fine except if I try to use a cPath as the link eg index.php?cPath=1. If I try to do this it it seems to format the link wrong with sts meccanoman.co.uk/catalog/index.php?cPath=1?osCsid=5b0811d89ddf6e8feedbb2bc8610f6df a normal category link meccanoman.co.uk/catalog/index.php?cPath=1&osCsid=5b0811d89ddf6e8feedbb2bc8610f6df the difference seems to be its using a ? instead of a & after cPath=1 The link still works but it dumps the contents of the cart (it presumably looses the session) Any help would be much appreciated as I'm supposed to be going live tommorrow at midnight!!! The website is Meccanoman Many thanks in advance Ian
  9. Hi, Im trying to get some extra buttons for the top of my website (like amazon). Ive coded them into sts_display_output.php, filenames.php, english.php and of course the template. It all works fine except if I try to use a cPath as the link eg index.php?cPath=1. If I try to do this it it seems to format the link wrong with sts meccanoman.co.uk/catalog/index.php?cPath=1?osCsid=5b0811d89ddf6e8feedbb2bc8610f6df a normal category link meccanoman.co.uk/catalog/index.php?cPath=1&osCsid=5b0811d89ddf6e8feedbb2bc8610f6df the difference seems to be its using a ? instead of a & after cPath=1 The link still works but it dumps the contents of the cart (it presumably looses the session) Any help would be much appreciated as I'm supposed to be going live tommorrow at midnight!!! The website is Meccanoman Many thanks in advance Ian Sorry I ment to post this in the Simple template system forum. will post again so feel free to delete this one if your an admin
  10. That worked perfectly, thanks a lot for helping Dee. (Im too stuped to figure out whats going on there but am very gratefull anyway) Thanks again Ian
  11. Hi I need some help with the formating of the current auctions mod, at the moment its displaying like so: Its creating an extra column on the right for the title when it should span accross all 6 existing columns. This is the code: I highlighted the bit in red that seems to be the key but the colspan function will not seem to work! Any help would be appreciated as my php (and html for that matter) is basic. Many Thanks Ian
  12. Hi Has anyone managed to get the current auction cont' working for the UK. Its designed to show your ebay auctions on the web site. but configured for the us. I need to have this working in the uk, When I changed the addresses in the php file (to ebay.co.uk) you get a correct (BST) auction end date but a 300 day out time left. When I leave the first instance of the bay address as ebay.com and change the rest to ebay.co.uk - I get a correct time left but an incorrect (PST) auction end date. Here is the code: Any help anyone can give would be greatly appreciated. Many thanks. Ian P.S. I have tried all the different versions of this contrib (I think) and they all do the same thing.
  13. Thanks so much Philip, that worked a treat. I did search for this quite a bit so I hope it wasnt something I overlooked. Incidently if anyones still having problems with the popup (more info) coupon window. It can be fixed by adding this: to the STS_template.html file. (Thanks elswhere in the forum for help with this) Many thanks again Philip. Its the community helping like this that makes oscommerce what it is! Cheers Ian
  14. Hi Is any one using the gift voucher and credit class contribution with STS? If so did you mange to get the coupon error messages to display? (eg invalid coupon code etc) It shows with normal output but not with the template activated. Any Ideas. Many Thanks Ian
×
×
  • Create New...