| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Displaying "product" or "products" in subcategory pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Displaying "product" or "products" in subcategory pages
Another simple mod for 4.3, but will probably work for earlier versions with a bit of tweaking.
I edited customer/main/subcategories_t.tpl It originally said this at around line 14: Code:
"lbl_N_products" merely says "{{products}} products" and "lbl_N_categories" merely says "{{count}} categories" So I replaced the code above with: Code:
Then I added the following labels: lbl_subcategory "subcategory" lbl_subcategories "subcategories" I'm surprised they didn't do it this way in the first place.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
#2
|
|||||||
|
|||||||
Re: Displaying "product" or "products" in subcategory pages
Hi Sisom,
I'm trying to install your modification and I was getting a smarty error (Which has since disappeared). Now it appears to be ok, but no subcategory are showing up. Can I confirm you created the labels in the languages section of the back end?
__________________
Multiple instances of X-cart |
|||||||
#3
|
|||||||
|
|||||||
Re: Displaying "product" or "products" in subcategory pages
Hi BBM, yes, I created the labels in the languages section of the control panel.
Try just putting {$lng.lbl_subcategory} somewhere else in the template (i.e. outside the 'if' statements) so that it should definitely be parsed, and then see if it displays 'subcategory' on the page.
__________________
X-Cart Gold Version 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|