Zen Cart Logo
Forums / General Questions / Attributes not adding to shopping cart Zen 1.3.7.1

Attributes not adding to shopping cart Zen 1.3.7.1

Views: 574

Results 1 to 2 of 2
30 Nov 2012, 6:35 PM
#1
kamino84 avatar

kamino84

New Zenner

Join Date:
Aug 2006
Posts:
80
Plugin Contributions:
0

Attributes not adding to shopping cart Zen 1.3.7.1

First, please dont lecture about the version of zen. We are the middle of working the upgrade to 1.5 on a seperate server. For right now I just need help with the version and why attributes wont add. Its PHP 5.2 (happens in 5.4 also) when when i click the attribute on the product and add to cart, the product adds, but the attribute does not show. When i do a look at what is posted from the product page add to cart form i see this:

Array
(
[id] => Array
(
)

[cart_quantity] => 1
[products_id] => 698
[x] => 28
[y] => 8

)

The id array for the attribute is blank and i dont know why. Here is what the HTML looks like for the attribute

<div class="wrapperAttribsOptions"> <span class="optionNameNew">Accessories</span><br> <div class="back"> <input type="checkbox" name="id[33][156]" value="156" id="attrib-33-156" /><label class="attribsCheckbox" for="attrib-33-156">1 Replacement Filter (+$58.45) (+2lbs)</label><br /> </div> </div><br />

Any ideas?

30 Nov 2012, 9:17 PM
#2
kamino84 avatar

kamino84

New Zenner

Join Date:
Aug 2006
Posts:
80
Plugin Contributions:
0

Re: Attributes not adding to shopping cart Zen 1.3.7.1

Found the issue. As of 5.4 ereg_replace is no longer in use. I had to update all references to it to preg_replace and add the / in the expression field. After doing that, the issue was fixed.