Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product Type-Document General cannot be added to cart in V1.5.3

Product Type-Document General cannot be added to cart in V1.5.3

Views: 1,593

Results 1 to 18 of 18
13 Jul 2014, 3:33 PM
#1
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Product Type-Document General cannot be added to cart in V1.5.3

Our current, v1.3.9h, catalog category which is comprised of Product Type-Document general does not seem to be functional after importing the database into the v1.5.3 install. These items cannot be "Added to cart" Clicking "Add to Cart" from the product page takes me to the Shopping Cart page which displays "Your Shopping Cart is Empty"

Product Type-Document Product in a different category "Add to Cart" seems to function as expected.

Is there a special trick or different setup that needs to be made so that this category or product type can be added to cart in v1.5.3?

13 Jul 2014, 4:08 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Product Type-Document General cannot be added to cart in V1.5.3

By default, the Document - General product type cannot be added to the cart, but you can change that behavior by editing that product type using Catalog->Product Types.

13 Jul 2014, 5:05 PM
#3
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

So this is a change between the functionality of v1.3.9h and v1.5.3?

13 Jul 2014, 5:29 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Product Type-Document General cannot be added to cart in V1.5.3

Not that I'm aware of; I checked back to Zen Cart v1.5.1 and the behavior is the same.

13 Jul 2014, 5:33 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

You would need to make sure that you have the Admin files updated to work like the Products General and need to update the /page files and perhaps the templates as well.

Even in v1.3.9h it was more than just the flip of the switch for the add to cart to be allowed as the data in the Admin is different and the templates are different ...

13 Jul 2014, 6:01 PM
#6
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Sorry, but I don't understand what either of you are asking me to do.

This is a link to the doc in v1.3.9h and is fully capable of being added to cart.
http://chainweavers(DOT)com/index.php?main_page=document_general_info&cPath=3&products_id=25

The same product in v1.5.3 cannot be added to cart in my template of choice or classic green

I do not recall ever making changes in the way that category is setup.

13 Jul 2014, 6:38 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

I would think, at a minimum, you had to make change(s) to:
/includes/modules/pages/document_general_info/main_template_vars.php

Compare your v1.3.9h vs v1.5.3 for that file as well as the others in:
/includes/modules/pages/document_general_info

for any other changes ...

13 Jul 2014, 6:46 PM
#8
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

I will take a look to see. It seems pretty obvious that something must have been done. Sounds easier to change the doc type than to muddle through trying to figure out the why.

When the category was initially setup in 1.3.8a, I was so new that making simple edits scared the crap out of me and was 5 years ago. The update from 1.3.8a to 1.3.9h seemed so easy compared to today.

TNX lat9 and AJEH

13 Jul 2014, 6:50 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

What Product Types are you using right now on your v1.3.9h?

13 Jul 2014, 7:01 PM
#10
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Product Type-Document general

Copied from the Category screen

This Category has been restricted to these Product Types

Document - General

for the product listed in the link a few posts ago

13 Jul 2014, 7:30 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

So you only use Product General and Document General on your Products?

You might consider using Product General and Document Product, as Document Product still gives you the ability to sell the Product but also customize different than a regular Product General ...

It might avoid the issues in the future ...

You could probably do an UPDATE SQL to switch the Document General to Document Products on your dev site for the v1.5.3 to test this and see if it isn't easier for now and the future upgrades ...

Otherwise, compare the /page files between the Product General and Document General as well as the template overrides (assuming any changes were made) just to be sure of any needed changes ...

13 Jul 2014, 10:12 PM
#12
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Thank you.

There is a difference now that I know where to look but I think it will be quicker in the long run to convert the few documents-general into documents-products.

We currently use Documents-products, documents-general & product-general. I'm sure way back when, there was a reason for separating the documents since one set is fee based and the others are no-charge other than providing customer contact information.

Thanks again.

13 Jul 2014, 10:22 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

Looking at your site, I cannot really see any difference from Document Product and Document General ...

You should be able to run in the Tools ... Install SQL Patches ...

UPDATE products SET products_type = 4 WHERE products_type = 3;

And as always, backup your database before doing this and test the results after ... :smile:

13 Jul 2014, 10:42 PM
#14
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Ajeh:

Looking at your site, I cannot really see any difference from Document Product and Document General ...

:smile:

That's what was confusing me too. Other than we were keeping the no charge ones separated due to grumpy customers when they were mixed together. My recollection is coming back the more I think about it.

I'll run that as soon as I get to my next stopping point.

I've almost worn out the backups with restoring, convcharset, updatedb, change all the relative links to the server root, reinstall plugins, fix keep-alive (thanks to you), etc. :D Install a plugin that doesn't play nice. Repeat. But I'm getting quicker.

13 Jul 2014, 11:33 PM
#15
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Well, something changed but it definitely didn't do what I anticipated.

I'll have to do some muddlin around. Still don't add to cart even if I copy the product w/attribute to a different category.

There are not that many, so I will regenerate the products from scratch.

This is not turning out to be nearly as user-friendly as past upgrades.

13 Jul 2014, 11:39 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

That is very odd ...

I would expect your Products marked as Document Product to all be able to add to cart ...

If you edit one of the ones that you changed ... does anything look odd on the Edit? And if you Update, does anything get fixed?

14 Jul 2014, 12:00 AM
#17
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Product Type-Document General cannot be added to cart in V1.5.3

Went back and looked at the one that I copied w/attribute from the original category to the category w/other doc products. I had assumed the the download file would follow when I copied w/attributes but it didn't. Inserting the filename didn't make a difference.

Qty in stock was zero. Increased to 10 and now am able to add to cart.

even though "Check stock levels" is "False"
product was not marked out of stock

I guess the world is now happy with being able to add to cart.

Now to figure why "Check stock levels" = false prevented the addtocart. Too late in the day to go any further and my frustration level with the 1.5.3 install is too high at the moment.

TNX for helping with this.

14 Jul 2014, 12:38 AM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Type-Document General cannot be added to cart in V1.5.3

Attributes, when copied, do not copy the filename ...