Jump to content

ToroLoco

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • First Name
    Michael
  • Last Name
    Papadopoulos

ToroLoco's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Καλησπέρα σας, είμαι νέος στο presta και προσπαθώ να φτιάξω ένα shop για έναν πελάτη. Θέλω να κάνω μια τροποποίηση στον controller που θα μου δίνει την δυνατότητα να βλέπω αν το product_id που εμφανίζεται στον χρήστη υπάγεται σε μια υποκατηγορία από τα μενού. Γι αυτό ψάχνω στα controllers του category και product πού δηλώνονται κάποια public functions που χρησιμοποιούνται στα template files αλλά δεν τα βρίσκω . Υπάρχει κάποιο roadmap που αναφέρει τι δηλώνεται και που? Σας ευχαριστώ.
  2. Hello everybody, I am new to the forum and just started to use prestashop, so I would like to apologize if this question is not asked on the proper subforum. I am setting up a shop for a customer and using prestashop which I find fantastic and very customizable. I would like to check if the product that the customer is viewing is also under a specific category_id and if it is to appear a link with the subcategory name that would guide them to the products of that subcategory. I have put on the product.tpl below code, which works , but I need an END(&&) in that {if} to check if this item is also on a subcategory of 204. Or could be a nested {if} under the first to check if the item is also on a subcategory of 204. {foreach from=Product::getProductCategoriesFull(Tools::getValue('id_product')) item=cat}{if $cat.id_category == 204} <span>{$cat.name|escape:'htmlall':'UTF-8'}</span> {/if} {/foreach} Can I make something like this?
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More