Forums / Setting Up Categories, Products, Attributes / Adding products with attributea in cart from product listing

Adding products with attributea in cart from product listing

Started by randomm on 13 Mar 2017, 7:31 AM · Views: 650

Results 1 to 5 of 5
13 Mar 2017, 7:31 AM
#1
randomm avatar

randomm

New Zenner

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

Adding products with attributea in cart from product listing

Hi all
I have a shop with Zen Cart 1.5 and i am using attributes on some products just for filtering. Attributes don't display on product page, cannot be changed or selected by customer, i just use them for advanced product filtering. The problem is that products with attributes cannot be added in cart from product listing (All products, Specials, Category, etc) and when a customer wants to do a quick add to cart it gets redirected to product page to choose the attribute. Is there any way i can modify the files to ignore the attribute condition and add these products directly to cart? If yes, what are the files i have to modify?

13 Mar 2017, 12:56 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding products with attributea in cart from product listing

When you say just for filtering, are you using the Read-only attribute type that is defined in the option name manager or have you chosen some other form of attribute type?

If you are using the Read-only type and having this issue of adding product to the cart that have attributes, check the setting of: configuration->attribute settings->Read Only option type - Ignore for Add to Cart. It seems like that should be set to 1.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

13 Mar 2017, 3:55 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Adding products with attributea in cart from product listing

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Mar 2017, 1:35 PM
#4
randomm avatar

randomm

New Zenner

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

Re: Adding products with attributea in cart from product listing

mc12345678:

When you say just for filtering, are you using the Read-only attribute type that is defined in the option name manager or have you chosen some other form of attribute type?

If you are using the Read-only type and having this issue of adding product to the cart that have attributes, check the setting of: configuration->attribute settings->Read Only option type - Ignore for Add to Cart. It seems like that should be set to 1.

Thank you very much for this answer. It did the trick :) I was totally ignoring the read-only type, also i didn't know about the ignore option. It seems every day i have something new to learn :)

DrByte:

This may be worth a read: http://www.zen-cart.com/showthread.php?142161-HOW-CAN-I-AUTO-SELECT-SINGLE-ATTRIBUTE-CHOICES-DURING-ADD-TO-CART-process&p=809142#post809142

Thank you for your answer. This time the solution was simple :) I am bookmarking this topic anyway for just in case :)

14 Mar 2017, 4:39 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Adding products with attributea in cart from product listing

Glad that it helped resolve the issue and broaden your horizons on the capability and operation of ZC!

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...