keithg

Block spam links via .htaccess

  You can change the domain name.(ilovevitaly etc…) RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly.\.ru/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.org/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.info/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*iloveitaly\.ru/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*econom\.co/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*savetubevideo\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*kambasoft\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*buttons\-for\-website\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*semalt\.com/ [NC,OR] RewriteCond %{HTTP_REFERER}...Read more …
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 …