VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Stefan Korth on June 24, 2017, 00:20:00 AM

Title: create a link to my shopping cart: how?
Post by: Stefan Korth on June 24, 2017, 00:20:00 AM
Hi, maybe someone can help me:

I want to create a link to my shopping cart, which should contain a product already added and a certain coupon code already applied.

a) is that possible at all?
b) how?

I bet I have to change the settings for SEO URLs etc, right? Is it possible to create such a link, then turn SEO friendliness back on, and the link would still work?

Thanks
Title: Re: create a link to my shopping cart: how?
Post by: K&K media production on June 24, 2017, 12:06:35 PM
Should be possible with a extended plugin. But you need some php knowledge to develop it. Or as commercial job.
Title: Re: create a link to my shopping cart: how?
Post by: Jörgen on June 24, 2017, 20:41:48 PM
I know Max has shown how to add a product to the cart with an URL. Can´t find it rigjt now.
Setting an automatic coupon can be done with Seyis Awocoupon.
http://awodev.com/products/joomla/awocoupon (http://awodev.com/products/joomla/awocoupon)
regards

Jörgen @ Kreativ Fotografi
Title: Re: create a link to my shopping cart: how?
Post by: K&K media production on June 24, 2017, 21:38:55 PM
Yes, product is possible via url:
http://forum.virtuemart.net/index.php?topic=94539.msg337937#msg337937

But not a coupon code at the same time with the same link. Automatic coupon with awo may be a workaround. If you need both with a link, you would need a custom extended plugin.
Title: Re: create a link to my shopping cart: how?
Post by: seyi on July 11, 2017, 14:09:13 PM
Hello,

With AwoCoupon pro, you can add a coupon to the cart using a link with the syntax:
?addcoupontocart=

So you would not have to make the coupon automatic if you do not want to.