| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
LANGUAGE variables available on product search results and category pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
LANGUAGE variables available on product search results and category pages
I have custom language variables in my xcart_products_lng_en tables.
I need to be able to display the content of these fields in "featured products", "new arrivals", and the category / subcategory product displays. The fields are (obviously) displaying fine on the product details pages. But I cannot for the life of me figure out how to get them to display on the other pages - I don't believe that the languages tables are part of the sql that is pulled for those pages, but I can't figure out where it's pulling from so I can look at it and modify it. OH - yeah - this is a db that started off years ago, and has been upgraded over time, and I'm in the middle of upgrading to 4.7.11 Help....?
__________________
Chris Tindall x-cart 4.7.5 Gold Plus www.theweedpatchstore.com AlteredCart: On-Sale, One Page Checkout, Checkout One Payments (although that's not working yet) BCSE: Back in stock Notify, Checkbox Radio Mod, Upselling Links SMACK: CDSEO Pro, Product Map X-Cart: Gold+, Mobile (still trying to get working: Gahela Support Suite) |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: LANGUAGE variables available on product search results and category pages
Ok - so.... it looks like I was sort of mistaken - I can get other fields, like descr - but I cannot access my new custom field. Is there somewhere I need to define that sql table field to be able to access it?
__________________
Chris Tindall x-cart 4.7.5 Gold Plus www.theweedpatchstore.com AlteredCart: On-Sale, One Page Checkout, Checkout One Payments (although that's not working yet) BCSE: Back in stock Notify, Checkbox Radio Mod, Upselling Links SMACK: CDSEO Pro, Product Map X-Cart: Gold+, Mobile (still trying to get working: Gahela Support Suite) |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: LANGUAGE variables available on product search results and category pages
Ok - so. In
include -> search.php I added my required data in 2 places (I'm just guessing at this and don't honestly care as long as it doesn't screw something up) - I added about line 1585 (I copied the descr and changed the table cell name) and I added a line at 648 (again, copied and modified). So far, that seems to work. then I changed the skin -> myskin -> customer -> main -> products_t.tpl / products_list.tpl to include my data. Hope that makes sense and helps someone else.
__________________
Chris Tindall x-cart 4.7.5 Gold Plus www.theweedpatchstore.com AlteredCart: On-Sale, One Page Checkout, Checkout One Payments (although that's not working yet) BCSE: Back in stock Notify, Checkbox Radio Mod, Upselling Links SMACK: CDSEO Pro, Product Map X-Cart: Gold+, Mobile (still trying to get working: Gahela Support Suite) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|