Hello,
I am attempting some custom changes to Zen Cart, but I ran into am unexpected problem. admittedly, I am new to this kind of thing, so please take it easy.
First a little background:
I am trying to set up an store to sell laptop batteries. The problem I ran into was navigation through the site. What I mean is that it is very common for a one model of battery, such as:
Dell>Inspiron>1525
may have 3 different inventory items attached to it, but also. that inventory item may be also used for 50+ difference models(which all have the same 3 variations.
Anyway, my solution to this was to create a category structure which included the following levels:
product Type(Laptop Battery)
Compatible Brand(Dell,Hp,ext)
Compatible Series(Inspiron,Vostro,ext)
Compatible Model(1525,1520,1310,ext)
The Products in the ZenCart Database would then be one for each InventorySKU/compatibleModel. For example, there would be 3 products for each of the 3 variations of the:
LaptopBattery>Dell>Inspiron>1525
In order to make the navigation flow, I wrote a perl script to manage the categories and products table of the ZC database, generated from my native products and categories tables. Everything is working as desired, with the exception of one thing(albeit, one very important thing)
In order to manage the .html which needs to be presented on the categories Model pages, I added to my perl script to load all the relevant HTML into the 'categories_description' field. Part of that html is the checkout box for each of the variations under that model. For example, there may be two blocks of html as follows:
Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br />
<input type="hidden" name="products_id" value="4908" />
Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br />
<input type="hidden" name="products_id" value="4909" />
Where the products_id of '4908' and '4909' may be 6-cell and 9-cell SKU's relevant to that model. The problem is that when you click on the 'Add This to my Cart' button, nothing happens.
I am at a loss here, and can't seem to find any relevant posts. Any help would be much appreciated. I feel like I am so close, but can't seem to get past this last hump!
You can see an example of what I am talking about here:
http://buylaptopbattery.com/index.ph...Path=1_32_3079
Thanks in advance.
Regards,
Steve Cox
-Cox Innovations Inc


Reply With Quote
