Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Getting variables from link clicked

    Quote Originally Posted by DrByte View Post
    So, you're saying that if I come along as a new customer to your shop and want to create an account, and the only remotely close option I have for that is your "Login" link, and I click that, you're NOT going to give me the option to create an account? Doesn't seem very intuitive.

    Why are your customers bothered by seeing the option to register beside the login fields? Especially when the cursor is already set into the username login field ready for them to proceed with login easily?
    Hi Dr. Byte,

    Thank you for your reply. That may not necessarily be what I will be doing, was just example. What I really will consider doing is this on the login page:

    1. If user comes to the login page by clicking on login, then I would keep the sign up button saying sign up.

    2. However if they come to the login page by clicking on proceed to checkout, I would like to change the 'sign up' button to a button that says 'continue checkout' along with modifying the text

    "'Create a Customer Profile with Meaningful Accents which allows you to shop faster, track the status of your current orders, review your previous orders and take advantage of our other member's benefits." to something different. Thanks again.

  2. #12
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Getting variables from link clicked

    Quote Originally Posted by schoolboy View Post
    The argument for your desired functionality lacks logic and common sense...

    The system has no way of knowing whether a visitor is an existing customer, or a new customer, when they click "checkout".

    (As it is about to become illegal - in the EU - to set such cookies, using this method to remember a customer is no an option).

    I do not know of any web shopper who has been "offended" when presented with both LOGIN and REGISTER invitations.

    People are not stupid... they will know which one to select...
    Hi Schoolboy,

    I know what you mean. I'm just being extra picky on the text I want to show depending on what link they come from.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Getting variables from link clicked

    Then modify your login link and add something like &upsell=yes and check for $_GET['upsell'] == 'yes' in your login page and take action accordingly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Getting variables from link clicked

    Hi Dr. Byte,
    Thanks for the help. But I am running into the same problem as before. Here is what is happening:

    1. In my login link I have http://www.meaningfulaccents.com/ind...om_event=login

    2. In my My Account link I have
    http://www.meaningfulaccents.com/ind...om_event=login

    however the only time the from_event parameter ever gets passed over to tpl_login_default.php is when I click on login.

    I have this in my tpl_login_default.php
    Code:
    $user_action = $_GET['from_event'];
    
    if ($user_action == 'login') {
    echo 'Create New Account?';
    }
    else {
     echo HEADING_NEW_CUSTOMER_SPLIT; }
    it should trigger whether I click login or my account, but that is not the case. for some reason when I click my account link it drops the parameter. What is going on?

  5. #15
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Getting variables from link clicked

    The My Account page redirects to login because the customer hasn't logged in yet. You'll need to change that redirect to add your extra parameter there too.
    This is really looking like serious overkill.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Getting variables from link clicked

    Thanks Dr. Byte,
    I'm sorry for so much trouble. I don't know how and where the redirects are. But, I'll just let this thread be and forget about it. Hopefully, I'll mustard up the courage some day and finish my goal. I appreciate all the help you have given.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Modifying Products URL Link - Adding Client Variables Dynamically.
    By Matt Staines in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Oct 2013, 10:44 AM
  2. navbar/mouseover make a link stay highlighted when its clicked
    By missanna in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jun 2010, 07:47 AM
  3. Google checkout not working getting Oops! page when button is clicked???
    By paddy_uk2007 in forum Addon Payment Modules
    Replies: 2
    Last Post: 11 Dec 2008, 01:27 PM
  4. How to Remove Categories from Center after clicked from Navigation menu?
    By stlnyc in forum Customization from the Admin
    Replies: 0
    Last Post: 30 Oct 2008, 09:10 PM
  5. Layout enlarges when any link is clicked.
    By punkprints in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Jul 2008, 06:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg