Forums / General Questions / help with #Successfully added selected Product(s) to the basket ...# thing

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

Views: 581

Results 1 to 4 of 4
30 Jan 2013, 5:48 PM
#1
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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:blush:!

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

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

31 Jan 2013, 9:45 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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>');

20 years a Zencart User

31 Jan 2013, 9:52 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

1 Feb 2013, 2:13 PM
#4
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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 :shocking:

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!