Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default programmatically identifying current language

    Hello,

    Not sure if this is the right forum category for this question, but others didn't seem to fit ...

    I'd like to write an SQL query that is parameterized by the current "active" language, so that i retrieve product names in the correct language. I can't find where this information is stored (in the database) or made available in the code (generated constant).

    Any help would be much appreciated,

    Dan

    p.s. if this is the wrong spot for the question, where do such questions belong?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: programmatically identifying current language

    Why?

    zen_get_product_name($products_id) already does that.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: programmatically identifying current language

    In short -- its the learning curve :-)

    btw, getting more and more into mod programming, I really would like to add those zencart idioms, as i learn them, to the wiki page ...

    thanks.

  4. #4
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: programmatically identifying current language

    Is there a function that given a category returns linked products? That's what i am basically coding right now.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: programmatically identifying current language

    To use for what purpose?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: programmatically identifying current language

    I am creating a checkout candy variant module -- that works a bit differently than the ones currently available. It's to support including one or more products during checkout that are then sent to charity. To support indicating which products should appear in the list i am asking the user to create a " charity" category and link products to that category. All active products so linked show up in the charity list during checkout.

    Like this i can reuse the current user interface instead of creating a new user interface (and db tables), to indicate which products are eligible for charity.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: programmatically identifying current language

    So, this is related to stuff in 4 or 5 other threads you've got running already?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: programmatically identifying current language

    Yes, its the same store we are working on. And i wanted to give it a try and repackage/generalize/parameterize some hard coded functionality into a new community module.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: programmatically identifying current language

    You might consider zen_get_categories_products_list().

    And it would be helpful if you kept related posts in one thread for continuity sake, as it helps ensure you get focused advice instead of being asked to explain the goal all over again each time. Also makes it more meaningful to future readers who might be looking for similar answers. And makes moderators' lives easier too.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: programmatically identifying current language

    ok.

    I guess, i wasn't sure where coding questions go -- although they related to an add-on question asked earlier in the add-on topic area.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 Additional data, information or text capture during checkout
    By JonnoC in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 8 Jul 2013, 04:19 AM
  2. v150 No credit card form during checkout?
    By beyre in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Mar 2012, 04:57 PM
  3. Replies: 2
    Last Post: 16 Jun 2011, 04:11 PM
  4. Data Base Issues - not connected - during install
    By hbtechguy in forum Installing on a Linux/Unix Server
    Replies: 25
    Last Post: 27 Sep 2007, 03:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg