Page 1 of 1

HA! I CAN insert a PRODUCT AND A COUPON with ONE LINK!!!

PostPosted: Mon Jul 29, 2002 12:23 pm
by Keith Palmer
HA! I CAN insert a PRODUCT AND A COUPON with ONE LINK!!!

AND THEY SAID IT COULDN'T BE DONE!!!


Imagine, the ability in Shopsite to have different products follow different
quanity or pricing discount schemes, and now its possible! Just requires a
bit of tweaking.

Ok, now on to a quick explanation, not a lotta time here, you'll have to
email me (keithp@logosoftwear.com) if you want more details on this. All
ya do is send the person to another link, an entirely different page, use
that link to send an HTML header or redirect (use PHP or JavaScript to do
that) which builds the product add-to-cart link and goes to the ' order.cgi
' page. Also, tack onto the end of that link something like '
&send_coupon_also=YES '

Now, in the Shopping Cart header file, insert a Javascript which pulls
varialbes from the URL, if &send_coupon_also == YES, redirect the person to
a script which gets the approprite coupon code, builds the link, and sends
an HTML Header which sends them back to the Order.cgi file WITH the
approprieate add Coupon link. It's fast enough so the user will never
notice, and provides a world of flexibility, especially if you link it with
PHP and MySQL or somethign similar. :-)