Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: categories_id

    dilton7

    • Neu im Forum
    • Beiträge: 6
    categories_id
    am: 09. September 2011, 14:19:43
    Hello everybody ,
    How do I get the product category id to display in "product_info_tabs.html"?
    {$PRODUCTS_ID} works but {$CATEGORIES_ID} doesn't work.
    thank you

    Linkback: https://www.modified-shop.org/forum/index.php?topic=15210.0

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: categories_id
    Antwort #1 am: 16. September 2011, 22:04:05
    Hi Dilton7
    can you explain more?
    it is true i am new but we can solve it together?
    i am sorry for not interesting in your request only now. ;(

    so for example you have category FOOD
    you have a product APPLEs
    so you want in the product info Food apples ?

    h-h-h

    • modified Team
    • Beiträge: 4.562
    Re: categories_id
    Antwort #2 am: 16. September 2011, 22:57:21
    Here is trick from gunnart (his website is hacked or has errors).
    Move all files from the attachment to you you shoproot.
    - replace "Smarty.class.php"
    - create "/templates/xtc5/smarty/" dir
    - new file "modifier.ManufacturersData_by_ProductsID.php"
    Caution: please make a backup!

    Then there is the following available:

    Code: PHP  [Auswählen]
    {$PRODUCTS_ID|ManufacturersData_by_ProductsID:'name'}

    regards h-h-h

    dilton7

    • Neu im Forum
    • Beiträge: 6
    Re: categories_id
    Antwort #3 am: 22. September 2011, 13:35:03
    Sorry i have been away, I asked one of my friends who has more php knowledge than i do he helped me out.
    he basically defined "$PRODUCT_CATEGORY_ID".
    now i can call any products category in "product_info_tabs_v1.html using {$PRODUCT_CATEGORY_ID} which was what i wanted.
    Thanks

    walid

    • Frisch an Board
    • Beiträge: 81
    Re: categories_id
    Antwort #4 am: 22. September 2011, 16:16:12
    thank your for giving a reply as your problem has been solved.
    so you arr sure the {$PRODUCT_CATEGORY_ID} without "s" for product and category! just to make sure, so it is {$PRODUCT_CATEGORY_ID} and not {$PRODUCTS_CATEGORIES_ID}

    thank you
    Trade Republic - Provisionsfrei Aktien handeln
    2 Antworten
    2843 Aufrufe
    04. Juli 2013, 10:15:15 von BiDoubleU