Guest Posted September 3, 2008 Posted September 3, 2008 Can this be modified from the original post? I want it to skip payment and shipping if both are zero. Not just if there is only 1 payment/shipping method available. Is this possible? I have tried a contrib similar to this and it didnt work for me. I have Header Tags SEO installed. I would LOVE to have my freebies on my site. My entire site is digital downloads and I have it going pretty good, all but the freebies. Ive asked in different forums on here before, but no one has a solid answer. Would appreciate any help. Many thanks, Michelle MY SITE From this: checkout_payment.php: just before: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT); add: // skip if only 1 payment method available if (tep_count_payment_modules() == 1) { if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } TO: // skip if order total is ZERO if (tep_count_payment_modules() == 1) { if (!tep_session_is_registered('payment')) tep_session_register('payment'); tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); } Will this work?
germ Posted September 3, 2008 Posted September 3, 2008 So did you think the "remove the add to cart button on freebies" wasn't such a good idea after all? Click Me :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted September 3, 2008 Posted September 3, 2008 Whoa, did I miss that? Curious. Now I gotta go back and read...LOL Before I do, question. If I remove the add to cart button for free downloads, how will they get the download link if they do not add it to cart? Ugh, Im up too late...LOL Might ought to let me sleep on this and re-read the post tomorrow morning...LOL Thanks for keeping me on my toes! Hugs, Michelle
Guest Posted September 3, 2008 Posted September 3, 2008 OH MY GOSH! I COMPLETELY FORGOT ABOUT ASKING ABOUT THIS IN JULY!!!! And nowhere did I find anything to remind me. Oh my, I need a drink! Imma try this tomorrow, your code changes and see what happens. But after rethinking the idea, I would still like for them to have to create an account. yanno? Hmmm. Maybe not. Dunno, but definitely gonna try. Thanks dear! Michelle
germ Posted September 3, 2008 Posted September 3, 2008 I would still like for them to have to create an account Well, it would be possible to hide the freebie category if they aren't logged it. Although once someone found out what it was, they could probably pass the link to someone else and they could get there without logging in. And I'm sure there are ways to code around that as well. It all depends on how much effort you want to put into it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.