Zen Cart Logo
Forums / General Questions / How to create html link to add products to cart ?

How to create html link to add products to cart ?

Locked

Views: 2,515

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Oct 2008, 11:54 PM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

How to create html link to add products to cart ?

Hello.
Is there any way to create URL to products description or better yet , creating products link that when customer clicks on it would add products to cart ?
if so , how ? ( like to have both options ) .

Problem i have , is that many of products , they all the same but only price and size different .
i like to show a nice HTML table ( using easy pages ) and link to either product description or add to cart , right from single page .

Hope i do make any sense.

Thanks.

11 Oct 2008, 12:15 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,612
Plugin Contributions:
0

Re: How to create html link to add products to cart ?

So make a single product in a zillion different sizes using the attributes.

11 Oct 2008, 2:00 AM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: How to create html link to add products to cart ?

Well, I have created the products .. problem is , i can not use attributes .. reason , each products has its own product number .. even though the all look the same ..:) customers need to reference that number in order for seller to know whos the manufacturer, so , attributes out of question for now .

but creating a table with products displayed in it such as image , some info and a link to take them either to detail page or add directly to cart , will save time for customer to look through all search results , etc.

thanks.

11 Oct 2008, 4:05 AM
#4
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: How to create html link to add products to cart ?

The solution to your problem that you mentioned is not possible (as far as I know). One way to work on this could be to make categories and sub categories structure such that when you display a sub category it lists the products (different colors and sizes prices etc) out and you can use the built in form to add the products to the cart in multiple quantities of each.

The challenge here would be to modify the tpl_ file in charge of displaying the products in a category so that it looks how you want it. But at least it's a template problem...

12 Oct 2008, 3:01 AM
#5
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: How to create html link to add products to cart ?

tony_sar:

Hello.
Is there any way to create URL to products description?

i like to show a nice HTML table ( using easy pages ) and link to either product description right from single page .

Hope i do make any sense.

Thanks.

From the Product Display page just copy the link (from your browser url window) and paste into the table html code.
Don't do this logon as a customer otherwise you will need to strip the zenid off the url.

M

21 Oct 2008, 3:56 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to create html link to add products to cart ?

tony_sar:

Well, I have created the products .. problem is , i can not use attributes .. reason , each products has its own product number .. even though the all look the same ..:) customers need to reference that number in order for seller to know whos the manufacturer, so , attributes out of question for now .

but creating a table with products displayed in it such as image , some info and a link to take them either to detail page or add directly to cart , will save time for customer to look through all search results , etc.

thanks.I have to agree with Kim.. If you think outside the box, you could use your option values to represent each variation on these products. In other words, why couldn't the option value be the unique reference number you say each customer must use. This way you could create ONE product with many options, and you as the store owner will know the reference number the shopper has selected.