Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Enable "Add-to-Cart" in category listing, while using attributes

Enable "Add-to-Cart" in category listing, while using attributes

Locked

Views: 1,496

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Mar 2008, 3:57 AM
#1
adonkat avatar

adonkat

New Zenner

Join Date:
Mar 2008
Posts:
1
Plugin Contributions:
0

Enable "Add-to-Cart" in category listing, while using attributes

Hello,

First, thanks a lot for all your work of Zen-Cart people.

I'm developing an online tea store. The client sells teas, but in different packages (different weight), therefore I use the "attribute controller".

However, since I'm using the attribute controller, the site doesn't let me select a product (from drop down menu) and "add-to-cart" in the category listing page (please see the link below).

http://chanoya.com/boutique/index.php?main_page=index&cPath=1

As you can see, only "more info..." appears, but what I need is "drop down menus" which assigned to the precise product that I set in the "attribute controller".

If anyone could teach me the solution or direct me for the right direction, I'd really appreciate for it.

Thanks in advance

5 Apr 2008, 1:56 PM
#2
graham22 avatar

graham22

New Zenner

Join Date:
Apr 2008
Posts:
4
Plugin Contributions:
0

Re: Enable "Add-to-Cart" in category listing, while using attributes

I am also trying to crack this problem. I'm opting for the php approach as it doesn't seem possible any other way. I'm editing the product_listing.php override in the includes\modules<template> directory. I've created a query using normal php + sql (I haven't figured out how to use the zen function to do this) then listed my attributes instead of the "more info..." text by copying and pasting the code from the html source of a product_info page and filling in the correct values from the sql query. Then I added the "add to cart" section again copy and pasted from the html of a product_info page. Then I filled in the product ID with a query, hid the border and stuck it to the right of my options.

I'm reluctant to post any code because it's all over the place and by far not the best way to do it, but if you know php you may be able to achieve something similar.

2 Jul 2008, 6:28 PM
#3
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Enable "Add-to-Cart" in category listing, while using attributes

Has anyone resolved this issue? I'm looking to do the same thing on a client's store.