Hi all,
I was searching the forums but couldn't find this being discussed if there's an existing thread about this please point me to it :)
Is there anyway to pre-select product attributes with a parameter in the URL?
Hi all,
I was searching the forums but couldn't find this being discussed if there's an existing thread about this please point me to it :)
Is there anyway to pre-select product attributes with a parameter in the URL?
No I do not believe so
How would that parameter get into the url in the first place??
Zen-Venom Get Bitten
I have a plan that might work for you but first I need a better understanding of what you plan to do with the URL to preset the Attributes ...
Have you a Product that you can post the URL to on your site and tell me what Attributes you want preset if a link was used to get there?
Then I can play with the idea and teach you how to do this ... It may even work ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I want to have a product listed in google shopping with several variations but they'll all land on the same page, so it is preferred that the option they land from should be prefilled. for ex.
http://sampledomain.com/store/index....id=574?qty=100
or
http://sampledomain.com/store/index....00&color=green
etc. i have no knowledge in this but i would like something like that
Any luck implementing this?
Ajeh, maybe you have a better idea, but after looking for several hours I've not found a good way.
Unfortunately, it doesn't look super easy. I was thinking I could exploit the way Zen Cart handles links to products that have been loaded into the shopping cart. Zen Cart uses an MD5 hash to preselect the attributes on the product page after clicking on a configured product that has been added to the shopping cart. I haven't spent much time fiddling with this idea, however.
No, it's the other way around. The MD5 hash is NOT used to "preselect attributes". It's merely used to identify a collection of attributes previously stored in the customer basket tables in the database, and it's that database record which then informs the cart which attributes were selected when the MD5 hash was generated.
You'd need to pass them on the URL, and then write code to translate the URL parameters into selections the same way the selections in the saved basket tables are parsed.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.