keithg

add checkbox in product form admin -prestashop 1.7.2.2

Add view 360 button in below cover button in admin side in product form   Log: Table Image and Image_shop field name : view360 ================================================================= Class image.php variable : view360 ================================================================= Productimagecontroller.php – src/PrestaShopBundle/Controller/Admin ->add(‘view360’, ‘Symfony\Component\Form\Extension\Core\Type\CheckboxType’, array( ‘label’ => $translator->trans(‘360 image’, array(), ‘Admin.Catalog.Feature’), ‘required’ => false, )) ================================================================= form.html.twig –...Read more …
keithg

Add field in admin form page.

Step 1 : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Step 2 :in src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig: Step 3: src/PrestaShopBundle/Model/Product/AdminModelAdapter.php: getFormData(); must add the field in class(eg.product class). add field file and db and display. https://www.prestashop.com/forums/topic/606651-prestashop-17-override-of-admin-product/Read more …
keithg

error unexpected token < ' prestashop 1.6'

Replace below Function in getcover function image class. return Db::getInstance()->getRow(‘ SELECT * FROM '._DB_PREFIX_.'image i’. Shop::addSqlAssociation(‘image’, ‘i’).’ WHERE i.id_product = ‘.(int)$id_product.’ AND image_shop.cover= 1′);    Read more …