Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-29-2002 18:58:07

Call911
Member
Registered: 04-20-2002
Posts: 2

Add to Cart Option in Categories

Looking forward to CCP 5.0.

I wish to add a "Add to Cart" link/button below each picture in
the sub category page - (&pg=store&sub_pg=main_cat&ref=7) to allow my customer to buy from the "item" page if they choose.

Here is an example of what I am trying to do. This is another customer who uses CCP in this manner.

http://www.himtnjerky.com/cgi-bin/cp/cp … &ref=4

I have been trying to manipulate this file to make this change -
site_store_categories.pl

Your assistance would be greatly appreciated.

Steve

Offline

 

#2 05-31-2002 12:52:26

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19967
Website

Re: Add to Cart Option in Categories

ec@kryptronic.com has done many hacks like that.  The idea is to edit the file:

./cgi-bin/library/modules/site_store_small_display.pl

and add in the Add To Cart Link like so:

$common_url&pg=add_to_cart_hmj&ref=$product_ref_no&quantity=1

Then modify the add_to_cart routine to point back to the category page instead of the product page.


Nick Hendler

Offline

 

#3 05-31-2002 22:26:12

Guest
Guest

Re: Add to Cart Option in Categories

I did as you suggested but it only returns me to the splash page and doesn't add the item to the cart.

Should I use the Add to Cart routine found in the admin_store_product.pl?

Should I use the same form settings except for pointing back to the category page?

Thanks,

Steve

 

#4 06-01-2002 14:02:56

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19967
Website

Re: Add to Cart Option in Categories

Sorry for some reason a phantom '_hmj' got printed in the middle.  The link should be:

$common_url&pg=add_to_cart&ref=$product_ref_no&quantity=1


Nick Hendler

Offline

 

#5 06-02-2002 18:19:32

JohnG
Member
Registered: 05-08-2002
Posts: 49

Re: Add to Cart Option in Categories

I'm confused should we replace "add_to_cart" with the link?
Thanks in advanced

Offline

 

#6 06-03-2002 15:01:22

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19967
Website

Re: Add to Cart Option in Categories

It should be:

<A HREF="$common_url&pg=store&sub_pg=add_to_cart&ref=$product_ref_no&quantity=1">Add to Cart</A>


Nick Hendler

Offline

 

Board footer