hushhal Posted January 11, 2015 Share Posted January 11, 2015 hi I make a shop for the sale of music CD-DVD-BLURAY. Structure: category - cd. dvd, bluray .....) -- item - albumI need add to item (album) the appropriate category (cd or dvd or,,,,) help,pls ^) Link to comment Share on other sites More sharing options...
vekia Posted January 11, 2015 Share Posted January 11, 2015 i don't understand well your expectactions, but seems like you just want to add - product to selected category so, if your product (ablum) is on CD - associate it with "CD" category, if it's blueray - associate it with "blueray" category anyway, i think that i missed something important ;-) Link to comment Share on other sites More sharing options...
hushhal Posted January 11, 2015 Author Share Posted January 11, 2015 i don't understand well your expectactions, but seems like you just want to add - product to selected category so, if your product (ablum) is on CD - associate it with "CD" category, if it's blueray - associate it with "blueray" category anyway, i think that i missed something important ;-) my english is not so good:)) so - screenshots help my)) 1) add category to item^ 2) add catogory to result of search Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 hello i understand now i think ;-) you just simply want to add "category name" to search results, product lists, and to product page. that's right? if so, i've got one question. for example, this S.O.A.D album is associated with other categories too? CD / DVD / BLUE RAY will be always marked as "main" product category? if so, solution is easy, just let me know please :-) 1 Link to comment Share on other sites More sharing options...
hushhal Posted January 12, 2015 Author Share Posted January 12, 2015 hello i understand now i think ;-) you just simply want to add "category name" to search results, product lists, and to product page. that's right? RIGHT! "if so, i've got one question. for example, this S.O.A.D album is associated with other categories too? CD / DVD / BLUE RAY will be always marked as "main" product category?" YES Some products have two categories: 1) the type of media (cd, dvd etc /) and 2)"we recommend". (primary category - the type of media (cd, dvd, etc)) for example: if I open the product page from the catrgory "we recommend" - on the product page should stand category type of media (cd, dvd, etc) (the path to the product page in the breadcrumbs is: Home - we recommend - album name) ---------------------- If the option with two categories is not possible - how to make with one ? thx! Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 in product.tpl use this variable: {$product->category} in product-list.tpl use this: {$product.category} put these variables there - where you want to display main category name. 1 Link to comment Share on other sites More sharing options...
Totti Posted January 12, 2015 Share Posted January 12, 2015 in product.tpl use this variable: {$product->category} in product-list.tpl use this: {$product.category} put these variables there - where you want to display main category name. what is different ? Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 product.tpl uses $product variable as object it means that each "object description" is accessible with -> something like: $product->category, $product->name. product-list.tpl uses $product variable as an array in smarty syntax, to access to descriptions of product we have to use dot like $product.category, $product.name Link to comment Share on other sites More sharing options...
hushhal Posted January 13, 2015 Author Share Posted January 13, 2015 in product.tpl use this variable: {$product->category} in product-list.tpl use this: {$product.category} put these variables there - where you want to display main category name. work it! thanx!! Link to comment Share on other sites More sharing options...
hushhal Posted January 16, 2015 Author Share Posted January 16, 2015 RIGHT! "if so, i've got one question. for example, this S.O.A.D album is associated with other categories too? CD / DVD / BLUE RAY will be always marked as "main" product category?" YES Some products have two categories: 1) the type of media (cd, dvd etc /) and 2)"we recommend". (primary category - the type of media (cd, dvd, etc)) for example: if I open the product page from the catrgory "we recommend" - on the product page should stand category type of media (cd, dvd, etc) (the path to the product page in the breadcrumbs is: Home - we recommend - album name) ---------------------- If the option with two categories is not possible - how to make with one ? thx! a problem: I add the product to the module "recommended products on the main page" and on the product page changes its category (instead of Cd,DVD,BR.... I see the category HOME) what is the reason? Link to comment Share on other sites More sharing options...
hushhal Posted March 6, 2015 Author Share Posted March 6, 2015 (edited) product.tpl uses $product variable as object it means that each "object description" is accessible with -> something like: $product->category, $product->name. product-list.tpl uses $product variable as an array in smarty syntax, to access to descriptions of product we have to use dot like $product.category, $product.name hi, vekta i need support: i add {$product->category} {$product.category} it works but, after updating (from csv) prices and residual category of products changes on the home page (products on the main page displays a standard module "homefeatured") reason?? Edited March 6, 2015 by hushhal (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now