Forums / Setting Up Categories, Products, Attributes / text attribute price isn't added to overall price when product added to cart

text attribute price isn't added to overall price when product added to cart

Started by grossd on 13 Nov 2011, 5:00 PM · Views: 1,262

Results 1 to 2 of 2
13 Nov 2011, 5:00 PM
#1
grossd avatar

grossd

Zen Follower

Join Date:
Sep 2005
Posts:
173
Plugin Contributions:
0

text attribute price isn't added to overall price when product added to cart

Hello,

I ran into an odd problem.

I have a product for which there are number of attributes. Two are text attribute -- one free and one priced at a 15 USD). When entering text in respective entry fields, and adding the prodicut to the basket, the 15 USD cost is NOT added along with the proucts base price.

Attribute defintion for text look OK. I can't think of any reason why this doesnt work.

any suggestions would be much appreciated.

Dan

13 Nov 2011, 6:44 PM
#2
grossd avatar

grossd

Zen Follower

Join Date:
Sep 2005
Posts:
173
Plugin Contributions:
0

Re: text attribute price isn't added to overall price when product added to cart

After some debugging i managed to find the problem.

Interestingly, the customer had defined an attribute values for the option name of type text. Apparently, the code requires that no! attribute value is defined for option names of type text, and hence the attribute value id for option names of type text is by default recorded as zero in all respective table records (in particular the products_attributes table). Without the zero id value the price information for the attribute is not retrievable via the join operation included in the code -- which specifically tests for option_value_id of zero.