Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default help with #Successfully added selected Product(s) to the basket ...# thing

    Howdo all.. hope everyone is well?

    I have a query RE a small modification I have tried (but as usual) have failed to achieve!

    I have my shop set up to NOT take the user to the cart page, so I get the green banner thing at the top of the screen.. which is exactly what I want!

    however, I have tried to add a link after the standard text "Successfully added selected Product(s) to the basket ..." which says "If you are finished, Please Click Here to Checkout"

    Now I can add the additional text, but I fail to turn said text into the link taking the visitor to index.php?main_page=shopping_cart

    it's that simple really, can anyone help?

    TIA -Ray

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: help with #Successfully added selected Product(s) to the basket ...# thing

    It is relatively easy to put links into DEFINE STATEMENTS and in MOST cases, they will work without fouling up some behavioural element.

    For example, I do this sort of thing with the " ... more info" text link that appears in a product listing when products have attributes. I just put in a VALID HTML line that calls in an image.

    In other cases, I embed my own hyperlinks to custom DEFINES.

    In your case, the DEFINE STATEMENT you have written (If you are finished, Please Click Here to Checkout)

    ...should probably look like this: define('SUCCESS_ADDED_TO_CART_PRODUCTS', '<a href="index.php?main_page=shopping_cart">If you are finished, Please Click Here to Checkout</a>');
    Last edited by schoolboy; 31 Jan 2013 at 10:47 AM.
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: help with #Successfully added selected Product(s) to the basket ...# thing

    Or if you want the ORIGINAL text as well, put in a BREAK to split the unlined text from the linked text. I would actually try an IMAGE - possibly the CHECKOUT BUTTON

    define('SUCCESS_ADDED_TO_CART_PRODUCTS', 'Successfully added selected Product(s) to the basket<br /><a href="index.php?main_page=shopping_cart"><img src="includes/templates/YOUR_TEMPLATE/buttons/english/button_checkout.gif"></a>');

    Make sure it is all on ONE LINE in the file - which is the english.php languages file.
    20 years a Zencart User

  4. #4
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Re: help with #Successfully added selected Product(s) to the basket ...# thing

    Thanks you sir! You are a genius! The idea for the button is so much better!!! I am somewhat embarrassed at how small my mistake was that was the cause of my white screen of death

 

 

Similar Threads

  1. Moving the "Successfully added to cart" message on the product info page
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Aug 2021, 10:49 PM
  2. Successfully added Product to the cart
    By MagicMan in forum General Questions
    Replies: 1
    Last Post: 13 Jun 2012, 02:21 AM
  3. "Successfully Added Selected Product To Cart" Message Issue
    By jamesmcl515 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 16 Apr 2010, 01:41 PM
  4. Successfully added Product to the cart ...
    By mviben in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Apr 2009, 01:08 PM
  5. Turn off "Successfully added Product to the cart ..."
    By dietcoke in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 23 Sep 2008, 08:42 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR