Jump to content

ilerna

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Location
    Lleida
  • Activity
    Agency

ilerna's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Hello, I need to do this with Prestashop Someone buys product A. Prestashop generates a discount for that customer. On next order he gets a discount price but only for some products. Is there any way to do this in Prestashop? Thank you!
  2. I'm interested in this too. What is the best way to do it?
  3. I've found editing AdminCategoriesController.php can add custom form fields to Backoffice, but when I save the form I get error updating category() object I have already added the field to database table and Category.php class CategoryCore extends ObjectModel { public $myfield; ... public static $definition = array( 'table' => 'category', 'primary' => 'id_category', 'multilang' => true, 'multilang_shop' => true, 'fields' => array( ... 'myfield' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'), ), ); ... }
  4. Hello, I need to add some HTML fields to categories. I've added custom fields into ps_category_lang table. Then overrided Category.php controller adding these fields to it. But still can't see them in backoffice form. Do I need something else? Thanks in advantage
  5. Solved. In case someone asks the same, I've added a new variable at PaymentModule.php (override folder) Around line 395 I've added: $products_name_list .= '<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding: 0.6em 0.4em;width: 15%;">'.$product['name'].'</td> <td style="padding: 0.6em 0.4em;width: 30%;"> </td> <td style="padding: 0.6em 0.4em; width: 20%;"> </td> <td style="padding: 0.6em 0.4em; width: 15%;"> </td> <td style="padding: 0.6em 0.4em; width: 20%;"> </td> </tr>'; Then defined the variable at 618: '{products_name}' => $this->formatProductAndVoucherForEmail($products_name_list), And called at the template with {products_name}
  6. I'm trying to show products names on a custom mail template I've added to my Prestashop. If I use the smarty variable {products} I get also the price, quantity, etc. Is there any variables to get only the name or other properties individually? Thanks in advantage
  7. Hi sooroos, The Google Sitemap Module generates one xml for each language you have in your store. So, submitting 1_index_sitemap.xml it's ok. Google Webmaster Tools will search in that file for other sitemaps and will add them. You don't need to specify anything else in robots.txt if you already submitted the xml with GWMT
×
×
  • Create New...