Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / One Product four options.

One Product four options.

Locked

Views: 1,478

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
18 Nov 2007, 4:51 PM
#1
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

One Product four options.

I would like to make it so that my one product i.e. Dog Food can have four options i.e. 1kg, 5kg, 10kg, & 15kg

At the moment I am listing it all individually but it is filling up a lot of space. I was advised Zencarts settings allow to change this but I am confused where?

18 Nov 2007, 5:42 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

You would use attributes for this.

In Catalog > Option Names Manager, create an option called Size.
In Option Values Manager, create the desired values for Size, and also a value called "Select" or whatever.
In Attributes Controller, add the values to the product. Either make one of the sizes default, or add "Select" and make that default and display only, so customers are forced to make a conscious choice.

Oh yes - you will also want to make the product itself "priced by attributes" with a base price of 0. Then give each size its actual price, with a blank prefix instead of +. This will give you a cleaner visual display than just showing the aditional cost for larger sizes.

18 Nov 2007, 5:55 PM
#3
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

Hello,

Appreciate your time with this... still having a little trouble following it

My site is http://www.petsontheinternet.co.uk/index.php?main_page=product_info&cPath=212_352_392_422_452&products_id=722
I want to make it so that I could list
225g
2kg
5kg

It doesn't seem to have played as I wanted, what did I do wrong?

18 Nov 2007, 6:17 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

You should have under the "Size" option name the values
225g
2kg
5kg

CHange the name of your product from Cat Adult 225g Duck & Rice to Cat Adult Duck & Rice.
In Attributes Controller, navigate to the product, and select "Size", "225g", "1.75" for price, "Default", and insert. Repeat for 2kg and 5kg, with their prices, and not default.

You apparently have a value named "kg" - delete that one.

18 Nov 2007, 6:17 PM
#5
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

Obviously these are at different prices
225g - £1.75
2kg - £10.39
5kg- £20.79

18 Nov 2007, 6:28 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

This confirms what I said. Delete the "kg" value and make "225g", "2kg" and "5kg" values.

18 Nov 2007, 6:35 PM
#8
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

OK that seems to be making more sense.
I've done as you have said but it replied with

Attribute Option and Option Value Do NOT Match - Attribute was not added - : TEXT

It won't update it with the settings I entered

18 Nov 2007, 6:40 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

You need to delete the kg and add the others in Option Values Manager before returning to the Attributes Controller.

It looks like you have it working correctly now. Good job!

Yes, it adds to cart as it should, with correct size and price.

18 Nov 2007, 7:02 PM
#12
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

Wait a minute it is working!!!!

I think..?

18 Nov 2007, 7:03 PM
#13
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

Yeah I think I have the hang of it! I'm gonna test out a few others now. But either way THANK YOU!!!

Really appreciate your help!

18 Nov 2007, 7:24 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

Unfortunately it would take custom coding to display all the prices in the product listing. I would think it should be possible to have a "starting at xxx" there, but haven't worked with that area enough to be familiar with all possible options or how to customize it.

18 Nov 2007, 7:33 PM
#16
robert_harper_2000 avatar

robert_harper_2000

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
31
Plugin Contributions:
0

Re: One Product four options.

OK np again Thanks A LOT just gotta get through my 900 products! argh. fair bit of copy for me tonight

18 Nov 2007, 7:49 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: One Product four options.

I haven't tested this, but this may work to put "Starting at" in front of products with attributes. In /includes/modules/your_template/product_listing.php, find this:```php
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;

    // more info in place of buy now
    $lc_button = '';
    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
      $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
    } else {
      if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {
and modify to this:
```php
        case 'PRODUCT_LIST_PRICE':
        $lc_price = '';
        if (zen_has_product_attributes($listing->fields['products_id'])) {
          $lc_price = 'Starting at ';
        }
        $lc_price .= zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text =  $lc_price;

        // more info in place of buy now
        $lc_button = '';
        if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
          $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
        } else {
          if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {
```(The only changes are around the $lc_price line.)