If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Problem with attributes set with Display Only

Problem with attributes set with Display Only

Started by canemasters on 2 Apr 2012, 4:46 PM · Views: 3,663

Results 1 to 14 of 14
2 Apr 2012, 4:46 PM
#1
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Problem with attributes set with Display Only

The product I'm referring to is:
http://www.hardwoodcanes.com/extra-rubber-tips-p-19.html

If you just select "add to cart" without selecting a size, it just replies "your shopping cart is empty". Isn't it supposed to stay on the product page, and say something like, "you forgot to select a size", or something like that? I'd like an error message to be displayed, rather than just say your cart is empty.

Thank you.

Canemasters
www.canemasters.com

2 Apr 2012, 5:21 PM
#2
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

canemasters:

The product I'm referring to is:
http://www.hardwoodcanes.com/extra-rubber-tips-p-19.html

If you just select "add to cart" without selecting a size, it just replies "your shopping cart is empty". Isn't it supposed to stay on the product page, and say something like, "you forgot to select a size", or something like that? I'd like an error message to be displayed, rather than just say your cart is empty.

Thank you.
I suspect that you have all three option values set at display only. Make the option value "please select..." display only and the default. The make the other option values display only/ no, default / no, and required yes. That will force an error if not selected.

2 Apr 2012, 6:27 PM
#3
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

badarac:

I suspect that you have all three option values set at display only. Make the option value "please select..." display only and the default. The make the other option values display only/ no, default / no, and required yes. That will force an error if not selected.

No, that's not it. If you take a look at:
https://www.hardwoodcanes.com/birds-head-walking-cane-p-4.html

The attribute "wood type" is a required attribute. It has several options, and the only one that is set to display only is "Please choose a wood type (REQUIRED) "

Canemasters
www.canemasters.com

2 Apr 2012, 6:36 PM
#4
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

Here's a screen shot of my attributes for wood type:

Maybe it's because the free attribute is set when most of them aren't free??

Canemasters
www.canemasters.com

2 Apr 2012, 6:45 PM
#5
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

It's not the free box being checked that's causing the problem. I disabled the free box, and it's still doing it.

Canemasters
www.canemasters.com

2 Apr 2012, 7:16 PM
#6
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

I re-uploaded the entire contents of includes, and the admin folder from a fresh install just to verify nothing went wrong during the file transfer, but it's still doing it.

I'm just not getting any error that I missed a required attribute. It's going right to "your shopping cart is empty".

:blink: :frusty:

For an example of one of my sites with the attribute error that works, look here:
http://www.canemasters.com/index.php?main_page=product_info&cPath=1_3&products_id=298

Now, on my other site, it doesn't work. Look here:
http://www.hardwoodcanes.com/birds-head-walking-cane-p-4.html

I don't get it. I compared attribute settings between the two sites, and they both match.
Both sites are running 1.5.0

Canemasters
www.canemasters.com

2 Apr 2012, 7:23 PM
#7
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

Wait a second... I think this has something to do with the url redirection.

If you notice on the canamasters.com website, it looks like when you simply add that cane to the cart without choosing a wood type, it changes the url slightly.

But on the hardwoodcanes.com site, the url does something completely different.

Maybe my .htaccess file???

Canemasters
www.canemasters.com

2 Apr 2012, 7:35 PM
#8
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

Ultimate SEOURL's was causing the problem. I removed the files from my website, and removed the code from my .htaccess file, and now everything is working great.

Is this a bug? Can somebody with ultimate seo url's verify if you just click add to cart without filling out a required attribute, if it simply says "your shopping cart is empty" ?

I'd really like to use ULTIMATE SEO URL's, but not if it has this bug, if it is in fact a bug...

At least I found the problem... :clap:

Canemasters
www.canemasters.com

2 Apr 2012, 8:07 PM
#9
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

This really sucks. I'm going to have to modify a lot of shortcuts if I can't get ulitmate seo to work right. It works great, except for when a customer tries to add a product to thier cart without choosing a required attribute.

It's just not rewriting the url properly for zencart to tell them they forgot to modify the attribute.

Canemasters
www.canemasters.com

3 Apr 2012, 2:01 AM
#11
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

To clean up the url's. Is there another way to do this in 1.5.0?

Canemasters
www.canemasters.com

4 Apr 2012, 9:06 PM
#12
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

Can I shorten the URL's any other way than using ultimate seo? Also, does it help search engines if I do?

Canemasters
www.canemasters.com

4 Apr 2012, 9:36 PM
#13
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

canemasters:

To clean up the url's. Is there another way to do this in 1.5.0?

In what way are the dynamic URL's "un-clean"?

Looks very much like your URL's are now quite "dirty" since you tampered with them.

There is no practical reason why you need static URL's.

If you think there is a SEO, or business advantage to using them, then you have been mislead.

4 Apr 2012, 10:02 PM
#14
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: Problem with attributes set with Display Only

fairestcape:

In what way are the dynamic URL's "un-clean"?

Looks very much like your URL's are now quite "dirty" since you tampered with them.

There is no practical reason why you need static URL's.

If you think there is a SEO, or business advantage to using them, then you have been mislead.

That's all I needed to know. I'll remove the ultimate seo module. Thank you.

Canemasters
www.canemasters.com