Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

LANGUAGE variables available on product search results and category pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-11-2019, 05:40 PM
  christindall's Avatar 
christindall christindall is offline
 

eXpert
  
Join Date: Dec 2007
Location: Everett, WA
Posts: 264
 

Default 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)
Reply With Quote
  #2  
Old 11-11-2019, 08:32 PM
  christindall's Avatar 
christindall christindall is offline
 

eXpert
  
Join Date: Dec 2007
Location: Everett, WA
Posts: 264
 

Default 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)
Reply With Quote
  #3  
Old 11-11-2019, 10:23 PM
  christindall's Avatar 
christindall christindall is offline
 

eXpert
  
Join Date: Dec 2007
Location: Everett, WA
Posts: 264
 

Default 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)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:48 PM.

   

 
X-Cart forums © 2001-2020