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.
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
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.
Offline
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
I'm confused should we replace "add_to_cart" with the link?
Thanks in advanced
Offline