Jump to content
Latest News: (loading..)

ssnb

Members
  • Content count

    282
  • Joined

  • Last visited

  • Days Won

    1

ssnb last won the day on May 1 2012

ssnb had the most liked content!

1 Follower

Profile Information

  • Real Name
    Alan
  • Gender
    Male
  1. ssnb

    Header Tags SEO

    Facebook Like buttons if using HTSEO I spent some time to figure it out. Here is the answer for Facebook buttons if you are using STS and / or Header Tags SEO contributions. http://addons.oscommerce.com/info/8208/v,22
  2. One final thing to work on - how to display a success message once the coupon has been added.... that would be sweet! If anyone already has a method, please share, otherwise I'll look into it.
  3. Right well, after a few more beers, I've managed to sort it... I just added in checkout_payment.php - in the upper part of the code, right after the payment classes are declared, a default payment. // load all enabled payment modules if ($order->info['total'] <= 0) { $payment = 'freeofcharge'; if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } Took me all day to figure this out, but now I'm happy :-) Let me know if you want the instructions...
  4. Updated: I've made significant progress! 1) Moved discount coupon code on the checkout_shipping.php page as it makes more sense there (after choose shipping method and before notes) 2) Added free of charge payment method - as trying to bypass the payment page seems impossible It works fine now EXCEPT: I can't seem to display JUST the free of charge payment method when the order total is zero - I've tried using the old trick of disabling payment methods if the order total is zero, but this seems to either end up in a browser loop error or tell me to select a payment method! I've discovered that in the DB all the payment modules are listed as sort order 0 - I don't know if this is a bug or an error specific to me, but it seems when you disable 1 payment method, they all go ! Will keep trucking on and see how I get on. If anyone wants the code info on what to do to achieve what I have doen, let me know.
  5. Hi Chemist, thanks for your reply. The contributions suggested is designed to bypass checkout / payment if the value of the item is zero. unfortunately, it doesn't work with KGT discount coupons when they are 100% discount, because the discount coupon is processed AFTER the free module is looking at cart total. I've been playing around with it for a while to see if I could modify it to get checkout_process.php to recognise a zero cart total and thereby ignore the payment modules (or choose the free one) but not having much luck. In the contribution instructions, it says to bypass the payment page add some code to catalog/checkout_payment.php but that's the same page witht he discount coupons on - so the cart total has not yet been updated to zero... When user has entered their discount coupon code and the hits confirm button, it takes them to the catalog/checkout_confirmation.php page and I am assuming it is here that the payment module check must be made, or on the the following page catalog/checkout_process.php So I am playing around with this but so far, no luck. I was hoping that someone had already worked out a way to make a 100% discount (i.e. zero total) skip the payment checking and directly proceed to checkout_success.php (via checkout_process)
  6. Hi All Can anyone help me to improve the following code I have added to checkout_confirmation? It bypasses the checkout payment page if the order total is $0.00 The problem is - it only works with a redirect to checkout_success, which is at least something, but missing out checkout_process also means missing out on the order process (i.e. sending emails, updating the DB etc) - so not very helpful really! if ($order->info['total'] <= 0) { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } else { if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } } I just want to skip the payment modules if the total is $0.00 but not having much luck. Any one have this functionality working? Thanks for suggestions...
  7. Quick and Dirty Restrict Admin Access DOWNLOAD: http://addons.oscommerce.com/info/8050 We have about 6 admins that manage our site. I needed a way to prevent them from accidentally 'breaking' something on the site config etc. How disappointed was I to find the only way to do this was to spend hours installing a complex contribution. So I thought about maybe just hiding the links from specific users. Afterall, what the eye can't see.... So - rather than spending hours (days?) messing with your shop (and potentially breaking it!) why not use my method that I'm sharing here :-) Basically, this is an incredibly fast, and simple way to "hide" pages / boxes from specific admins. It does not prevent users from accessing pages if they already know the link - it only hides the page links (boxes) - therefore, making it harder for users to access them - since no links are on display - how do they know where to go! If they know the links - they can still access the pages. Therefore, if you need a fully featured application to manage admin access - you should install something like http://www.oscommerce.com/community/contributions,1359 (good luck - you'll need it! And it'll take you a while !) My solution should be all done in 5 minutes ! IMPORTANT: BACK UP YOUR DATABASE AND FILES FIRST. DISCLAIMER: USE AT YOUR OWN RISK HOW TO USE It's very simple. open the included file: catalog/admin/includes/column_left.php in your favourite HTML editor Compare with your own file and add my commented lines. You can see what's going on right? Basically, query the DB to look at usernames. Then, if username = 'XYZ' show ABCDEF boxes, else only show ADF boxes 1. go to your OSC admin and write down the names of the admin usernames 2. in column_left.php file, simply add the name of the main (super) admin who has access to everything. 3. further below in this file, you will the code repeated (it's commented out). This just says, if username = 'someone_else' show them ABCDEF 4) further on, you'll find the ELSE statement that says - for all other users, display only BDF - or whatever! Also attached are boxes/catalog and boxes/customers You can easily modify each individual box to show what you want. Hope that makes sense Good luck Sol
  8. ssnb

    Get 1 Free

    Hi All There is a fantastic addition to this add on by dmordred in the contributions page. It puts a link on the main product - to the free product and it works great. However, it would be nice to be able to display a message in the free product description page that links to the main product? At the moment, I can't see how to do this. Any suggestions? Thanks
  9. row row row your boat....

  10. ssnb

    Get 1 Free

    Hello good people of the planet OSC! Thanks for this mod Kymation Is there any way to somehow enable the free product to have colour / style / size selection capability? At the moment - I am asking people to tell me what style and colour of the freebie they want in the comments box, but of course, this is pretty annoying as some people forget or choose an option that's out of stock! Anyone know a way to achieve this? Thanks
  11. ssnb

    AJAX Attribute Manager support

    Hey thanks for the great add on I have admin access levels installed and I have added the SQL query to enable access to Group 1 - however, that ugly message that comes up "ACCESS DENIED" for clients is a bit heavy. Does anyone know how I could simply disable the entire AJAX cont for anyone other than admins? Follows is the excerpt from the install manual
  12. ssnb

    [Contribution] STS v4

    Hi Bill thanks for your reply. You're right the link does work - however what I *meant* to say in my first post was - it doesn't seem to display the correct page? I couldn't find any relevant info on the pages surrounding that link. Admittedly I didn't search much beyond - was hoping you might recall the discussion thread and could find it faster than me... Regards Sol UPDATE! Scrub that - I found it by SEARCHING for it *gasp* lol - It's on page 130 (post #2587) if anyone else wants to know! For some reason Bill's link takes you to the top of page 128 The lovely OSC forum software strikes again ;-)
  13. ssnb

    [Contribution] STS v4

    Greetings Bill Two questions, if I may 1) A while back you posted this link and I would like to read up on how to integrate a "bought" template into STS - however the link doesn't seem to lead to the right place - Can you please re-post the link to the guide? 2) Why are there 2 forums for STS and which is really the "best" one to use? I posted question 1 in the other forum but didn't get a response (sorry for the double post!) Thanks in advance Sol
  14. Hi Bill A while back you posted this link and I would like to read up on how to integrate a "bought" template into STS - however the link doesn't seem to lead to the right place - Can you please re-post the link to the guide? TIA Sol
  15. Hi - I visited your site www.petness.pt/lj and it seems to work fine in my browser (the header images all load correctly - and I might add it is a nice example of exactly how to use it). So, as I did not experience this issue you describe, I don't know what to suggest. Have you tried clearing the cache and reloading the page? Nice design by the way - may I ask if you designed this theme yourself or was it purchased? If it continues to be an issue, I would suggest visiting the slideshow forums as detailed in the installation text notes. Please keep us informed of your progress. Regards Sol
×