Search the Community
Showing results for tags 'avoid'.
-
hi, i have a issue with product duplicating , as ecommerce store we have large amount of products to list on site, so we wants that the system prevent the saving of any new product entry that already had the exact same name or reference no./ SKU added before. also prestashop let us to create duplicate categories, attributes and features also. its so tedious to search and confirm every time before entering new data. in tally if we try to add product with same reference no. it promptly alert us for repeated id, and cant allow us for reentry the same number again. as this problem is not affect on us only , many more peoples facing this kind of issue. please guide or solve this issue. issue reference links. https://stackoverflow.com/questions/46497861/how-can-i-prevent-saving-products-duplicated-by-name-in-prestashop
-
As to my observation spam postings are more and more to come since moths. Sometimes I have the impression there are more new spam topics than real topics. Why what and why not avoid spam with some simple techniques? Ban user accounts if reported to spread spam (5 days at first, longer if repeatedly reported) Ban ip addresses from where spam has been sent for some time (I know, some IPs might be used by a bunch of users) Use the last option together with browser fingerprint which makes it more reliable. Detect if and how many URLs are posted in a new topic. Detect critical wording in terms of spam. Check the posting memers account in terms of its age. Calculate a spam score. Block users / IP addresses / browsers automatically according to spam score and other reports. Automatically unblock after a certain time. Of course, we couln't avoid all kind of spam but still reduce it. We use a combination of the above mentionned technics for all our sites. If an IP address or browser fingerprint is detected as spam source, the corresponding address and browser is blocked for a day. If the spam continues in a short period of time - for example 10 days - each additional spam posted adds to the blocking time. And feedback which is NOT SPAM is appreciated.
-
Im looking for at simple module that can catch orders with 1. mistakes in delivery address (misssing a house number, only numbers, only big letters, very short etc) 2. or has a comment 3. or delivery address note is more than %d chars or !containing specific words 4. specific products that need special attention etc etc etc.... I'd like to set their status to "Waiting for customer service" (and add a comment to the order history, saying whats the matter with it) so they dont get processed by the automatic processes I think i can manage to create the php functions for the check, BUT.. Maybe someone already made this module in a smart and fancy way i hope so Else youre welcome to help me implement it, as Im relative new in Presta Thanks
-
Hello everybody, I'm trying to skip carrier selection at One Page Checkout because we only have one carrier in my shop, I have made it but in 5 steps checkout, modifying OrderController and order-payment.tpl, but the point is the controller to be modified is OrderOPCcontroller, I think here it is the part of the code that has to be modified, but don't know how to do it, if anybody can give me a hand with this I will appreciate so much. Kind Regards: Cart::addExtraCarriers($vars); $this->context->smarty->assign($vars); if (!Address::isCountryActiveById((int)($this->context->cart->id_address_delivery)) && $this->context->cart->id_address_delivery != 0) $this->errors[] = Tools::displayError('This address is not in a valid area.'); elseif ((!Validate::isLoadedObject($address_delivery) || $address_delivery->deleted) && $this->context->cart->id_address_delivery != 0) $this->errors[] = Tools::displayError('This address is invalid.'); else { $result = array( 'HOOK_BEFORECARRIER' => Hook::exec('displayBeforeCarrier', array( 'carriers' => $carriers, 'delivery_option_list' => $this->context->cart->getDeliveryOptionList(), 'delivery_option' => $this->context->cart->getDeliveryOption(null, true) )), 'carrier_block' => $this->context->smarty->fetch(_PS_THEME_DIR_.'order-carrier.tpl') ); Cart::addExtraCarriers($result); return $result; } if (count($this->errors)) return array( 'hasError' => true, 'errors' => $this->errors, 'carrier_block' => $this->context->smarty->fetch(_PS_THEME_DIR_.'order-carrier.tpl') ); }