Forums / Templates, Stylesheets, Page Layout / Setting up custom options?

Setting up custom options?

Locked

Started by dante2010 on 17 Jul 2006, 3:22 PM · Views: 2,804

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Jul 2006, 3:22 PM
#1
dante2010 avatar

dante2010

New Zenner

Join Date:
Jun 2006
Posts:
28
Plugin Contributions:
0

Setting up custom options?

Hi,

I am using Zencart in a site that sells shoes online. I need to have an option on the product page that allows you to select what size of shoe you wish to purchase.

The admin would need to be able to dictate what sizes are available on a product by product basis as well.

Is there a way that is already built into Zencart that would allow something like this? Or will I have to "hack" the code to add this option in myself?

Any help is appreciated!

17 Jul 2006, 4:11 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Setting up custom options?

Stock by Attribute is not available yet with Zen Cart ...

This should be out in v1.4 ...

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!

18 Jul 2006, 2:03 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Setting up custom options?

Ajeh's comment that Stock (quantities on hand) by Attribute is not available yet is correct; but if you meant your question a different way, there is a built-in system for setting the sizes (colors,etc.) a product comes in and allowing the customer to choose. The admin can set the choices by product or en masse.

In admin > Catalog > Option Names, make an option Size and choose the type (dropdown, radiobutton, etc.)
In Option Values, create all the values Size might have.
In Attributes Controller, pick a typical product and add attributes to it. In the "ADDING NEW ATTRIBUTES" section, pick the option name and first value and click to add; repeat for all the values you want.

You can then copy this set of attributes to other products easily. There are many subtleties to the attribute creation process depending on what you want to do.

18 Jul 2006, 2:28 AM
#4
dante2010 avatar

dante2010

New Zenner

Join Date:
Jun 2006
Posts:
28
Plugin Contributions:
0

Re: Setting up custom options?

Thanks.. that is what I was looking for.

18 Jul 2006, 5:07 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Setting up custom options?

Just an addendum to adding things like size, color, height, weight.....etc.

Set your first item as Please Select a Size and make it Display only and the default.

Otherwise the customer can order without ever really selecting those 14 D loafers they were after.

Just another tip I got from Ajeh!

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 Nov 2009, 12:08 PM
#6
zahid_hussain avatar

zahid_hussain

New Zenner

Join Date:
Sep 2009
Posts:
54
Plugin Contributions:
0

Re: Setting up custom options?

I want to done some calculation on price, on product info display page, that give me a new price for product, now I want that zencart will accept my this new calculated price and passed to add to cart, but it not working as it every time accept there previous price, so my question is that, did any one give me an idea, that what variable is used for price, that I will assigned my calculated value.

or any other idea, you people have that i will assigne my this procduct price into the zencart cart , that it will tranction will be donw on my new value.

this is the link
http://team-kh.awpdc.com/~zadhnanr/bestlaminate.net/index.php?main_page=product_info&cPath=106&products_id=483
Thanks
Zahid.

11 Nov 2009, 11:16 AM
#8
zahid_hussain avatar

zahid_hussain

New Zenner

Join Date:
Sep 2009
Posts:
54
Plugin Contributions:
0

Re: Setting up custom options?

<form action="" method="post"> <table width="100%" height="129" border="1" align="center"> <tr> <td height="27" width="50%" bgcolor="#A9A9A9" ><b>Enter Your Square Footage below:</b></td> <td bgcolor="#A9A9A9"><b>Your Material cost</b></td> </tr> <tr> <td width="50%" align="center"><br /><input id="size" size="15" name="boxsize" /></td> <td> <?php

$box=$_POST['boxsize'];
//echo $box;
if($box==0)
{
echo 0;
echo " "."boxes";
}
elseif($box<$products_colour)
{
echo 1;
echo " "."boxes";
}
else
{
//echo "now more than 20";

$noboxes=($box/$products_colour);

$finalbox= ceil($noboxes);
echo $finalbox;
echo " "."boxes";

}
?>
<br /><br />

<?php if($finalbox<1) { echo 1; echo " "."sq.ft"; } else { $sqft=($finalbox*$products_colour); echo $sqft; echo " "."sq.ft"; } ?>

<br /><br />

<?php //echo $pri; $price= $finalbox*$pri; echo " "."$".$price; //$_SESSION['myprice']=$price; //echo $_SESSION['myprice']; ?> </td> <tr><td height="25" colspan="2" align="center"><input type="submit" value="Calculate" /> </td></tr> </tr> </table> </form>

my last calculated price value is "."$".$price;, file name is product_info_display.php :flex:

now i want that i will add my calculated price as zencart calculated price also.