Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by rocky

  1. Image/Video Gallery 4.6.2 has been released. This update fixes a notice when importing in debug mode.
  2. AJAX Dropdown Categories v4.6.0 has been released. The update includes redesigned code to improve the security of the module and fix some bugs.
  3. Hi NamDeli, I'm assuming you're using PrestaShop v1.7. This module was originally written for PrestaShop v1.6. I've updated the module to block installation on PrestaShop v1.7 and written a separate version for PrestaShop v1.7. Please download "nc_shops for PrestaShop v1.7.zip" from the original post and let me know if you encounter any problems.
  4. Classic Theme Customizer 2.0.0 has been released. This major update includes redesigned background opacity and blur effects using modern CSS and makes the module compatible with PrestaShop There are new options to specify the amount of opacity and blur to apply to content backgrounds. It also adds options to tile the background image and specify the content background color in light and dark modes. Updated demo available here.
  5. Image/Video Gallery 4.6.1 has been released. This update fixes a bug on installation when multistore is enabled.
  6. Image/Video Gallery 4.6.0 has been released. This update adds the option to customize the /gallery URL for each language. Previously, the URL was hardcoded to /en/gallery, /fr/gallery, etc. Now, this can be changed to /en/gallery, /fr/galerie, etc. The /gallery URL can also be changed to something completely different like /en/portfolio or even removed completely to create multiple galleries that look like separate pages.
  7. Classic Theme Customizer 1.2.1 has been released. This update includes some improvements to the CSS.
  8. Classic Theme Customizer 1.2.0 has been released. This update includes a redesigned progress popup with options to resume and abort. It also makes the module compatible with PrestaShop 1.7.7.
  9. Looks like PrestaShop moved it to line 34 of app/AppKernel.php since I wrote that.
  10. Hi muumuulica, Yes, you can display both photos and videos within the same gallery. My module has many options for thumbnails and uses flexbox to automatically adjust the spacing between thumbnails so they line up on the left and right edges of the page. When the "Crop images" option is enabled, you can choose to crop all the images from the top, bottom, center, left or right positions so they are all the same size and there are no empty areas. When this option is disabled, the images will be resized to make them the same height, but they will have varying widths. There is also an "Add padding" option available which adds padding on the left and right side of the images to make the thumbnails all the same size.
  11. AJAX Dropdown Categories v4.5.1 has been released. This update fixes a bug that allowed the maximum number of saved categories to be exceeded.
  12. It's hard to help without checking the code on your website. I'm guessing the / is being added by your breadcrumb.tpl file and the > is being added using CSS. You'll have to either edit your breadcrumb.tpl to remove the / or edit your CSS to remove the >
  13. I'm not an SEO expert. After a quick Google search, I found this page that says that breadcrumbs are indirectly good for SEO and hiding them using CSS is a bad idea.
  14. You can add CSS like the following: @media (max-width: 767px) { .breadcrumb { display: none } } This will remove the breadcrumb when the browser width is less than 768px. You can adjust that number until you're happy with when the breadcrumb disappears.
  15. Image/Video Gallery 4.5.2 has been released. This update fixes a bug when importing gallery blocks.
  16. Unfortunately, I've never used that hook in any of my modules and it appears that none of the modules that come with PrestaShop use it either. I did a search over the entire PrestaShop v1.7.6 codebase and discovered the displayAdminProductsCombinationBottom hook was added in PrestaShop v1.7.2.0 with the description "Display new elements in back office product page, Combination tab". The only other useful information I could find was in the following code: echo $this->env->getExtension('PrestaShopBundle\Twig\HookExtension')->renderHook( "displayAdminProductsCombinationBottom", [ "id_product" => $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "id_product", []), "id_product_attribute" => $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "id_product_attribute", []) ] ); The hook has the parameters id_product and id_product_attribute and directly displays whatever is returned.
  17. Yes, it works with PrestaShop v1.7.6.4 since my module works in that version. Have you added the $kantavuus, $ohiajomelu and $nopeusluokka variables to classes/Product.php? They must be added as public variables of the Product class, have their format defined in $definition['fields'] and have been added to the ps_product or ps_product_lang. In the code you've written, $params["product"] doesn't exist. You could fix this by writing $product = new Product($params['id_product'), $this->context->language->id, $this->context->shop->id); If you find it too difficult, you can hire me to write the module for you. If it's simply adding some fields to the product and product editor, it will be easy for me to do.
  18. Here's the function I use in my Image/Video Gallery module (modules/nc_gallery/nc_gallery.php): public function hookDisplayAdminProductsExtra($params) { if (isset($params['id_product']) && (int)$params['id_product']) { $controller = new AdminNCGalleryGalleriesController(); $this->context->smarty->assign('form', $controller->renderProductForm((int)$params['id_product'])); return $this->display(__FILE__, 'views/templates/admin/tab.tpl'); } } And a simplified version of the renderProductForm function that displays a multi-language text field on the configuration page (modules/nc_gallery/controllers/admin/AdminNCGalleryGalleriesController.php): public function renderProductForm($id_product) { if ((int)$id_product <= 0) { return; } $fields_value = []; $product_tab = null; $id_product_tab = (int)NCGalleryProductTab::getTabForProduct((int)$id_product); if ($id_product_tab) { $product_tab = new NCGalleryProductTab((int)$id_product_tab); $fields_value['nc_gallery_name'] = []; foreach (Language::getLanguages(false) as $language) { if (is_array($product_tab->name) && isset($product_tab->name[(int)$language['id_lang']]) && $product_tab->name[(int)$language['id_lang']] != '') { $fields_value['nc_gallery_name'][(int)$language['id_lang']] = $product_tab->name[$language['id_lang']]; } else { $fields_value['nc_gallery_name'][(int)$language['id_lang']] = Configuration::get('NC_GALLERY_DEFAULT_TAB_TITLE', (int)$language['id_lang']); } } } else { foreach (Language::getLanguages(false) as $language) { $fields_value['nc_gallery_name'][(int)$language['id_lang']] = Configuration::get('NC_GALLERY_DEFAULT_TAB_TITLE', (int)$language['id_lang']); } } $this->fields_form = [ 'input' => [ [ 'type' => 'text', 'label' => $this->l('Title'), 'name' => 'nc_gallery_name', 'hint' => $this->l('The tab text displayed on the product page'), 'required' => true, 'lang' => true, 'class' => 'form-control', ], ], ]; $this->fields_form = [['form' => $this->fields_form]]; $helper = new HelperForm($this); $this->setHelperDisplay($helper); $helper->languages = Language::getLanguages(); $helper->default_form_language = (int)Configuration::get('PS_LANG_DEFAULT'); $helper->fields_value = $fields_value; $helper->submit_action = $this->submit_action; $helper->tpl_vars = $this->getTemplateFormVars(); return $helper->generateForm($this->fields_form); } And in modules/nc_gallery/views/templates/admin/tab.tpl: <input type="hidden" name="submitted_tabs[]" value="nc_gallery" /> {$form} I hope this helps.
  19. After adding the hookDisplayProductExtraContent($params) function to the module, did you transplant it into the displayProductExtraContent hook on the "Design > Positions > Transplant a module" tab?
  20. AJAX Dropdown Categories v4.5.0 has been released. This update displays a redesigned progress popup with options to resume and abort while counting products and repairing the category tree.
  21. Classic Theme Customizer 1.1.3 has been released. This update improves the SVG logo option and adds it on checkout pages.
  22. Image/Video Gallery 4.5.1 has been released. This update adds structured data to gallery images and captions.
  23. Classic Theme Customizer 1.1.2 has been released. This update makes some improvements to dark mode.
  24. Classic Theme Customizer 1.1.1 has been released. It improves the contrast in the theme presets.
  25. Classic Theme Customizer 1.1.0 has been released. It adds the option to automatically switch between light and dark mode based on device settings. It also makes the module compatible with PrestaShop 1.7.6.
  • Create New...

Important Information

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