Jump to content

Creation link to auto order


Gary Host

Recommended Posts

Hi guys,

 

Is it possible to create a link that when clicked will lead to the view of a cart with an article in it ?

 

Explanation : I've got a product that is a subscription, and I would like to send a mail to my clients when their subscription is almost over, with a link in it that will lead to an open cart with the new subscription already in it.

 

Is it possible ? Has somebody already done it ?

 

Thanks a lot

Link to comment
Share on other sites

What you could try is to make a product page with the item you want to add to the cart. Then create a jquery submit() event on that page, something like:

 

<script>

$(document).ready(function(){

      $('#my_product_form').submit();

});

</script>

 

See for more info:

http://api.jquery.com/submit/

 

 

Then change/set a few setting, to move your customer to the summary page:

Go to Preferences->Product

and set "Redirect after adding product to cart" to "Cart Summary"

 

Note: This only works if you turn OFF ajax animation: 

Modules->Modules, find Module Cart block - configure and disable AJAX mode.

 

Hope this helps,

pascal

 

Edit: The link in your mail is just the link to your product page

Edited by PascalVG (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...