Can I hard code a custom attribute on my product info page.
Can I hard code a custom attribute on my product info page.
Maybe, depending on what it really is that you want to happen... but why do you think you need to hard-code an attribute? And what sort of attribute is it?
It won't be a real attribute that can be handled by the system unless it uses the regular database fields, and custom coding that instead of using the built-in facility would require good knowledge of the system.
I agree with Glenn. The whole point of attributes is to offer a very flexible way of tailoring products without the need for custom coding. What is it about this attribute which defeats Zen Cart's built-in abilities?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
I want to add choices to a product that would include images and input options.. for instance...
Business Cards (main product)
Backgrounds (Attributes)
green (photo choice)
template option 1 (text input choices)
template option 2 (text input choices)
template option 3 (text input choices)
red (photo choice)
template option 1 (text input choices)
template option 5 (text input choices)
template option 9 (text input choices)
blue (photo choice)
template option 2 (text input choices)
template option 5 (text input choices)
template option 7 (text input choices)
If I understand your example, then the issue is that some of the attributes are conditional upon the values of others. This isn't something that Zen Cart supports and would need custom code.
This would affect not only the product_info page, which merely displays the attributes as a form, but more significantly there would need to changes to the database structure to create the links, the attributes module to extract information form the database, the code that validates the information being added to the shopping cart and existing and new admin functions to create the linked attributes. This would require intermediate PHP and SQL knowledge and advanced knowledge of Zen Cart's structure.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Maybe, this is a sample site that you want: http://www.bydesigncreations.ca/inde...products_id=73
I want to build web like that too. Can anyone tell-and-help me how to build this web page? What is the module or script that site use?
Instructions are here: https://www.zen-cart.com/tutorials/index.php?article=57
If you still need help after reading at the link, then please post back here and I'll be happy to help :)
Amy McCoy
Baby Gifts and Baby Gift Baskets
I would like to remove the parenthesis from the attribute display price. I don't want ($45.00) I just want the dropdown box to display $45.00.
I found the answer to this once and can't seem to find it again. I'm doing things the right way this time (starting almost from scratch) with the override system things are working pretty good—just a pain getting everything the way it was...
Thanks for any help.
Phil