Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need to make it so that when button is clicked, a product is added to the cart...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-29-2009, 03:48 PM
 
streamtek streamtek is offline
 

Member
  
Join Date: Jun 2009
Location: Ontario, Canada
Posts: 13
 

Default Need to make it so that when button is clicked, a product is added to the cart...

If you go to our site at http://www.stream-tek.net/products/airknives/standard-air-knife-blade.php and click on the 'Specifications & Pricing' tab....Notice how the "Add to Cart" button links to....

/xcart/cart.php?mode=add&productid=16138&amount=1
/xcart/cart.php?mode=add&productid=16139&amount=1
/xcart/cart.php?mode=add&productid=16140&amount=1
/xcart/cart.php?mode=add&productid=16141&amount=1

Could someone please help as to where i can find the list of all these 'productid' numbers? I can't find them in the administration panel anywhere...
__________________
X-Cart 4.2.1 Gold
Reply With Quote
  #2  
Old 07-29-2009, 04:55 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Need to make it so that when button is clicked, a product is added to the cart...

Go to your admin panel, click on 'Search for products' and search for whatever you want the product ID(s) for. Look at the URL, it should be something like:

http://localhost/provider/product_modify.php?productid=63

Theres your product ID.



Alternatively, in your MySQL database, look at the 'xcart_product' table.
__________________
- Shane Munroe
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:00 AM.

   

 
X-Cart forums © 2001-2020