Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / idiots guide - attributes - categories

idiots guide - attributes - categories

Locked

Views: 3,602

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
3 Oct 2006, 2:41 PM
#1
gwaitsi avatar

gwaitsi

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

idiots guide - attributes - categories

Newbie here and not knowledgable on PHP.

I need to get a basic wine shop up and running before end of month, with us to test the market at a particular event. I have thus chosen the default template to get the job done quickly and will work on a more custom solution once an initial three month test period is done.

  1. I would like to add two attributes to each product as a num value.
    i.e. Quality and Value For Money
    These values should then be displayable in the product page.

Can this be easily done please?

  1. I have created the category/product structure as follows: -
    Type, Colour, Country - Product i.e. Wine, Red, Australia
    I have then used Product Model as Sweet, Dry, etc.

I wish to have products displayed by Country or Colour or Type. This could ideally be in the form of an amazon tab for example.

Can this be easily done please?

  1. Is it possible to easily make the languages appear on the top row rather than a side box with the default template please?

  2. How do i change the "Manfucturer" to "Producer" and "Product Model" to "Type" on the display for products for wine? or more simply, is it possible to create new product types like Wine, Spirits, etc with some specific attributes from admin?

Grateful for any assistance you can offer this newbie. Am trying to get through the docs, etc but difficult when plenty of other tasks that need to be completed.

Cheers
GwaiTsi

3 Oct 2006, 9:31 PM
#3
gwaitsi avatar

gwaitsi

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

Re: idiots guide - attributes - categories

Sarcasism is always good....thanks.

Has helped me with Q1, but unfortunately not with the other three questions.

In simple terms, can i do Q2-Q4 without coding work please?

Thanks for any help.

As previously stated i really need an interim site running quick smart and will work on the bells and wistles once the main event is over.

10 Oct 2006, 12:46 AM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: idiots guide - attributes - categories

GwaiTsi:

  1. I have created the category/product structure as follows: -
    Type, Colour, Country - Product i.e. Wine, Red, Australia
    I have then used Product Model as Sweet, Dry, etc.

I wish to have products displayed by Country or Colour or Type. This could ideally be in the form of an amazon tab for example.

Can this be easily done please?
You want to use product categories, and then customize your display to arraneg them however you want:
https://www.zen-cart.com/tutorials/index.php?article=132
https://www.zen-cart.com/tutorials/index.php?article=55
https://www.zen-cart.com/tutorials/index.php?category=4
3) Is it possible to easily make the languages appear on the top row rather than a side box with the default template please?
If you define easy as editing HTML, then yes. Zen cart does a lot fo thigns for you automatically, but changing layout and function will always require you to edit files. It's just part of customizing any web product.
https://www.zen-cart.com/tutorials/index.php?category=4
4) How do i change the "Manfucturer" to "Producer" and "Product Model" to "Type" on the display for products for wine? or more simply, is it possible to create new product types like Wine, Spirits, etc with some specific attributes from admin?
Sure!
https://www.zen-cart.com/tutorials/index.php?article=53
https://www.zen-cart.com/tutorials/index.php?article=114

10 Oct 2006, 4:28 AM
#5
gwaitsi avatar

gwaitsi

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

Re: idiots guide - attributes - categories

thanks blindside, i did manage to get answers for all my questions (after doing some homework :sleepy: )

of course, doing home work does take longer than just asking the question :lookaroun

10 Oct 2006, 7:00 AM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: idiots guide - attributes - categories

GwaiTsi:

of course, doing home work does take longer than just asking the question :lookaroun

Not always - as you see, it was a week before blindside was able to reply to you (during which time he had done some research in finding specific links for you! :wink2: ) and you had already found the answers! :D

10 Oct 2006, 1:46 PM
#7
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: idiots guide - attributes - categories

Well-stated Ryk. :thumbsup:

16 Oct 2006, 6:28 PM
#8
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: idiots guide - attributes - categories

Hello all

I think I'm in a right place to ask this.
Once I wanted to test the template newly downloaded and when click on all products' names or images, it gives an error message:
Fatal error: Call to undefined function zen_truncate_paragraph() in \Program Files*\htdocs\zen\includes\modules\meta_tags.php on line 271**
What is broken? How to fix?

Thanks in advance

17 Oct 2006, 2:30 AM
#9
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: idiots guide - attributes - categories

Readings on this line: $products_description = zen_truncate_paragraph(strip_tags(stripslashes($product_info_metatags->fields['products_description'])), MAX_META_TAG_DESCRIPTION_LENGTH);

17 Oct 2006, 2:56 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: idiots guide - attributes - categories

You appear to be missing the function itself:
zen_truncate_paragraph

This is located in the:
/includes/functions/functions_general.php

Did you perhaps overwrite it with an add-on? Or accidentally remove it or not upgrade the file at some point?

17 Oct 2006, 1:06 PM
#11
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: idiots guide - attributes - categories

Thank you for your prompt help. Yes indeed it was overriden. But I don't even remember that what purpose it was done when I made it. BTW current file was written by you. ($Id: functions_general.php 423 2004-10-13 16:24:16Z ajeh $)
Could you please tell what the override is it? I'm using attributes in my store.
Shall I restore? If so what other files should be restored?
Thanks again

24 Oct 2006, 1:10 PM
#12
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: idiots guide - attributes - categories

I believe you may have misunderstood Linda. She suggested that you deleted the correct file by writing over it with an older version, or deleted it entirely. This is not the same as Zen's overrides system, which allows you to dynamically introduce your own custom files in certain places within the system.

Core functions cannot be overridden, however oyu can add your own custom functions by adding them to a file stored in the extra_functions folder.

25 Oct 2006, 12:50 PM
#13
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: idiots guide - attributes - categories

tnx blindside for the clearance of issue. ive restored the file ive backup. now it functions. i'll test further.