Zen Cart Logo
Forums / Features Wish List / URL for Product with Pre-Selected Attribute Combination

URL for Product with Pre-Selected Attribute Combination

Views: 401

Results 1 to 2 of 2
25 Nov 2011, 04:41
#1
haroldf avatar

haroldf

New Zenner

Join Date:
Nov 2011
Location:
Brisbane, Australia
Posts:
10
Plugin Contributions:
0

URL for Product with Pre-Selected Attribute Combination

Using 1.3.9h new install not yet live. Linux/Apache server.

The URL for a specific product with specific attributes set opens the correct product but leaves all attributes as default ...

... UNLESS the same product with those same attributes set happens to be in the shopping cart.

Repeatable on Mac/Safari, Windows/Firefox, Windows/IE

To replicate:

https://modratec.com/cart/index.php?main_page=product_info&products_id=78:68780f1c09243b0a0490f633b18a31eb

will hopefully take you to the correct product - 18-lever frame kit (interlocking), but it should have the attributes set as Interlocking Slots=8, With Conditional Locking = yes and With Auxiliary Switches = yes.

If you select some attributes, add the item to the cart, then right-click the cart to determine the URL, (strip the zenid if necessary), copy that URL into the address bar, you will arrive at the correctly attributed product, but once you have deleted the item from the cart, the URL no longer takes you to the correctly attributed product.

I have a related post in the general area but am now suspecting that this is a bug. http://www.zen-cart.com/forum/showthread.php?t=188957

30 Nov 2011, 19:31
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,760
Plugin Contributions:
9

Re: URL for Product with Pre-Selected Attribute Combination

You will need to do a lot more work in the attributes controller for this to work.
Research on Display Only, Default, and Required.
You've mixed so many forms of attributes that it may be quite difficult to accomplish a setting where you are SURE a customer has actually made the selection they wanted.
Right now, the item is added to the cart without having to verify/make any selection.:lookaroun