Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

blakey989

Pioneers
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Real Name
    Dan Blakey

blakey989's Achievements

  1. Hi all, 1st off great contribution, must have for any store. right now to the problem. 1st: I sell digital products via my store and would like the points to be automatically awarded once the order status has been set to delivered, i know you can automatically award them after a set amount of days or immidiately but what if they didn't finish payment, are the points still awarded?, so i shouldn't imagine it would be too difficult to change it to award points once a 'desired' order status is reached i.e. delivered, has anyone got an idea of what code to alter and how? 2nd I use the activate account contribution and have got both to work, but once the customer has activated account it still tells me unverified in the admin section, i merged both codes as follows: //Account activation BOF if (ACTIVATION_CODE == 'off') { // Points/Rewards system V2.1beta BOF if ((USE_POINTS_SYSTEM == 'true') && (NEW_SIGNUP_POINT_AMOUNT > 0)) { tep_add_welcome_points($customer_id); $points_account = '<a href="' . tep_href_link(FILENAME_MY_POINTS, '', 'SSL') . '"><b><u>' . EMAIL_POINTS_ACCOUNT . '</u></b></a>.'; $points_faq = '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP, '', 'NONSSL') . '"><b><u>' . EMAIL_POINTS_FAQ . '</u></b></a>.'; $text_points = sprintf(EMAIL_WELCOME_POINTS , $points_account, number_format(NEW_SIGNUP_POINT_AMOUNT,POINTS_DECIMAL_PLACES), $currencies->format(tep_calc_shopping_pvalue(NEW_SIGNUP_POINT_AMOUNT)), $points_faq) ."\n\n"; $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $text_points . EMAIL_CONTACT . EMAIL_WARNING; } else { $email_text .= EMAIL_WELCOME . EMAIL_TEXT .EMAIL_CONTACT . EMAIL_WARNING; } // Points/Rewards system V2.1beta EOF tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } else { $activation_id = md5($email_address); $verification_href = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id, 'SSL'); $verification_mail = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id . '&submit=true&activation_code=' . $activation_code, 'SSL'); $verification_link = '<a href="' . $verification_mail . '">' . $verification_mail . '</a>' ."\n\n"; // Points/Rewards system V2.1beta BOF if ((USE_POINTS_SYSTEM == 'true') && (NEW_SIGNUP_POINT_AMOUNT > 0)) { tep_add_welcome_points($customer_id); $points_account = '<a href="' . tep_href_link(FILENAME_MY_POINTS, '', 'SSL') . '"><b><u>' . EMAIL_POINTS_ACCOUNT . '</u></b></a>.'; $points_faq = '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP, '', 'NONSSL') . '"><b><u>' . EMAIL_POINTS_FAQ . '</u></b></a>.'; $text_points = sprintf(EMAIL_WELCOME_POINTS , $points_account, number_format(NEW_SIGNUP_POINT_AMOUNT,POINTS_DECIMAL_PLACES), $currencies->format(tep_calc_shopping_pvalue(NEW_SIGNUP_POINT_AMOUNT)), $points_faq) ."\n\n"; $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $text_points . TEXT_ACTIVATION_CODE . $activation_code . "\n\n" . EMAIL_TEXT_ACTIVATION . $verification_link . EMAIL_CONTACT . EMAIL_WARNING; } else { $email_text .= EMAIL_WELCOME . EMAIL_TEXT . TEXT_ACTIVATION_CODE . $activation_code . "\n\n" . EMAIL_TEXT_ACTIVATION . $verification_link . EMAIL_CONTACT . EMAIL_WARNING; } // Points/Rewards system V2.1beta EOF tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_redirect($verification_href); } //Account Activation EOF Crude i know but seems to be working as customer can indeed activate their account, but causes some confusion as it states they haven't. 3rd: Last and most importantly (as both of the above do not cause immidiate problems but would be nice if working), when a customer places an order they can use their points as desired, but if they decide to cancel their purchase after clicking confirm order button when they return they find that their points have been deducted (GONE) and that price of the item has gone back up to it's original value (before redeeming points). This for me personally is not an option and would result in me not being able to use this contribution in an active store. as all businesses recognise you can not allow your customers to feel they have lost out in anyway, it would undermine what this whole contribution is about (rewarding your loyal customers) and would result in the exact opposite in losing valuable customers. I will help find a solution to this problem for me and the others who noticed and am willing to put some hard work in on my behalf but i am only a php novice :rolleyes: PLEASE UNDERSTAND THAT'S NOT MEANT AS A DIG AS THIS IS AN AWSOME CONTRIBUTION AND I WANT IT IN ALL MY STORES :) :) thanks Dan
  2. Hi FWR, and the rest of y'all i need some help if you can provide it, the issue is that i'm using account activation for registration. both that and this contribution work seperatly but a customer has notified me that the account activation link in their email does not activate their account and it has to be done manually, this was a scary thought as my site went live a month ago and wondered why it was not doing very well. anyway my problem. not working: (link in activation email) https: //plrpeople.c6.ixwebhosting.com/account_activate.php?activation_id=f5f0e92e8740a158296e5476d1dcba23&submit=true&activation_code=djkmsfx9g6np&osCsid=nnhalsph5l1804o8vu23bdvjc7 Working: (link edited by me) https: //plrpeople.c6.ixwebhosting.com/account_activate.php?activation_id=f5f0e92e8740a158296e5476d1dcba23&submit=true&activation_code=djkmsfx9g6np&osCsid=nnhalsph5l1804o8vu23bdvjc7 have removed amp; which follows the & symbol in the first link, i would like to know how to remove this from all links generated?? either by adding it to the character conversion or any other method that will not convert the '&' symbol to the HTML VERSION '&' thanks in advance Dan
  3. i have found the issue in question here!!! but would like aid in changing the code to match the solution! it is as follows. not working: https: //plrpeople.c6.ixwebhosting.com/account_activate.php?activation_id=f5f0e92e8740a158296e5476d1dcba23&submit=true&activation_code=djkmsfx9g6np&osCsid=nnhalsph5l1804o8vu23bdvjc7 Working: https: //plrpeople.c6.ixwebhosting.com/account_activate.php?activation_id=f5f0e92e8740a158296e5476d1dcba23&submit=true&activation_code=djkmsfx9g6np&osCsid=nnhalsph5l1804o8vu23bdvjc7 have removed amp; which follows the & symbol in the first link, i would like to know how to remove this from all links generated?? is this something to do with ultimate urls 5? rewriting the link before it is sent to the customer?? dan
  4. hi all, it seems i have the same problem as someone mentioned earlier in this thread. i can create an account and recieve the email with link inside to activate account, my problem is that i can only activate the account by A. manually cutting the activation code from the link and inputting. B. admin has to manually activate account. This for me is a big no no.... mainly because most users will not know where in the link the code is located! and that i do not have the time to constantly watch the site to see if someone registers to activate it for them, i was made aware of this by a potential customer. my site is now live and has been for a short time, i have of course done exstensive testing before hand and found no problems in this process, i have now confirmed that this is indeed the case ^^. the only conflict between testing and now is that i have activated our SSL. The Link: https://plrpeople.c6.ixwebhosting.com/account_activate.php?activation_id=f5f0e92e8740a158296e5476d1dcba23&submit=true&activation_code=3gfwn9qs64c5&osCsid=nnhalsph5l1804o8vu23bdvjc7 as you can see it directs to https:// which is correct, but should it be going to account_activate and then to success??? any help would be greatly appriciated you can view site and test if you wish www.plrpeople.com - i will delete your account afterwards if you include the info in your reply! Thanks in advance Dan
  5. Thanks FWR Media, got to say i'm banging my head against the wall for overlooking that file. took 2 seconds of reading and found what i've been looking for 4 the past 2-3 hours. Thanks you the man + carry on the good work Dan p.s. just saw in the install instructions that this is first thing to do after install, how right you were
  6. okay, first can i say great contribution, although i am having problems, after a few hours of working with it i've given up and are hoping someone here can help or will have to remove the contribution and restore a backed up version of my store. my problem is really obvious if you go to my store: My Store first off the problem is that my Meta info for index.php (home page) is all wrong talking about Wiggets (i have no god damn Wiggets on my site nor any mention to them) and i can not work out where it is getting it's information from, so i tried installing the extention for this contribution Category-manufacturer headings. (and admin settings of course) this did not resolve the matter. this is the same for all my static pages such as conditions and privacy. I am using STS and implemented the solution mentioned in an earlier post in this topic. all i want to do is set the discription and keywords, or have it automatically done as it has for all my product pages, for index.php due to this being one of my most important pages containing content relivant to my site. Have to say that all you contibutions FWR have been v.good, hence i installed this one and found it just as good, except for this problem Thanks Dan
  7. hi all, (oscommerce v2.2rc2a) just to see if you are interested i have recently installed loginbox (version with the register button instead of text) i have made some adjustments in the above version so that now when they click the register button it does not send them to login.php with the error of wrong login data, this is simply because it was submitting the form for the login, as though they are trying to login. it now takes them straight to create_account.php. also i have added a logout button, as i felt the text link was not suitable to my site's look just wanted to know if anyone would like the code putting up so you can also change or i can send you the edited .php files also i can add to the install instructions how to make the loginbox available when using STS or simular template system as i am. (simple to do when you see how) and the only reason it wouldn't show up in the header of your STS template is because (if i'm understanding the above) you have to assign it it's own call i.e. $loginbox$ in the sts file, this would put the loginbox wherever you put that 'call' in your template, i have added it to column_left.php in my oscommerce, but it shows in the right column beacuse that's where the $loginbox$ call is in my template, hope you make sense of that, as i said if you would like the full instructions i will happily post them here. Dan
  8. hi all, (oscommerce v2.2rc2a) just to see if you are interested i have recently installed loginbox (version with the register button instead of text) i have made some adjustments in the above version so that now when they click the register button it does not send them to login.php with the error of wrong login data, this is simply because it was submitting the form for the login, as though they are trying to login. it now takes them straight to create_account.php. also i have added a logout button, as i felt the text link was not suitable to my site's look just wanted to know if anyone would like the code putting up so you can also change or i can send you the edited .php files also i can add to the install instructions how to make the loginbox available when using STS or simular template system as i am. (simple to do when you see how) Dan
×
×
  • Create New...