Search the Community
Showing results for tags 'Callback'.
-
I'm writing a custom module for prestaShop. I was able to correctly display a new field in the list of customers in the BackEnd section. Now I would need to insert a callback for a specific field in this table but when I try to use it I get an error. PrestaShop tells me that the callback function called up is not available in the AdminController. Attached to this message is the complete code of my module. The callback i want to use is : public function printAsiStatusIcon($value, $customer) { return '<a class="list-action-enable '.($value ? 'action-enabled' : 'action-disabled').'" href="index.php?'.htmlspecialchars('tab=AdminCustomers&id_customer=' .(int)$customer['id_customer'].'&changeAsiStatus&token='.Tools::getAdminTokenLite('AdminCustomers')).'"> '.($value ? '<i class="icon-check"></i>' : '<i class="icon-remove"></i>'). '</a>'; } and called in this section of crsociasi.php : foreach ($params['fields'] as $key => $value){ if ($key!='email'){ $newParam[$key]=$value; } else{ $newParam[$key]=$value; $newParam['cardAsi'] = array( 'title' => 'cardAsi', 'align' => 'center', 'search' => true, 'havingFilter' => true, 'filter_key' => 'asi!cardAsi' ); $newParam['statoAsi'] = array( 'title' => 'Stato Asi', 'align' => 'center', 'callback' => 'printAsiStatusIcon' ); } } $params['fields']=$newParam; The error i receive from PS is : Can anyone help me? Thank's in advance crsociasi.zip
-
Salut je code actuellement un module de paiement PrestaShop avec une api externe et quand le paiement est effectuer sur l'api j'ai besoin d'un url de callback pour pouvoir valider le paiment dans la base de données. j'aimerais savoir si vous savez comment pourrais-je créé une URL de callback dans PrestaShop ? :(
-
CallBack Request | Add Request CallBack Form To Store Prestashop CallBack Request facilitates you to add a button on the store that lets the customers quickly schedule a callback. Before making a purchase customers wants to know about the product and get all their queries resolved. If the customers won’t get the support they need, they will probably leave the site without making the purchase. This extension allows the customers to request a callback just by entering the name, phone number, and date & time that suits them. Whenever a customer requests a callback, the module automatically sends a request to your email. Sometimes, customers find it difficult to understand the products through the text. But, with voice contact, you can understand their needs and answers all the questions they have regarding products. Providing support on the phone will help you build customer loyalty and boost sales on your store. Live demo link- https://addons.prestashop.com/demo/FO39799.html Module link-https://addons.prestashop.com/en/support-online-chat/49836-callback-request-add-request-callback-form-to-store.html Module Features- Add callback request form on the Prestashop store. Receive callback request emails on your email id or choose another email id on which you want to receive emails. Configure border radius and width of the callback request form. Choose to display callback request icon on bottom-right, bottom left, top-right, or top-left position of the page. Customize callback request form by setting its border, background, and text color. A separate tab to view all the callback requests submitted by the customers. Purchase link- https://addons.prestashop.com/en/support-online-chat/49836-callback-request-add-request-callback-form-to-store.html Demo link- https://addons.prestashop.com/demo/FO39799.html Amit Kushwaha Webkul/
-
- call back
- call request
-
(and 1 more)
Tagged with:
-
I make a module and i need make a custom button on my helper list. My code: protected function initList() { // Fix table drag bug. Media::addJsDef(array( 'currentIndex' => AdminController::$currentIndex.'&configure='.$this->name, )); $this->fields_list = array( 'name' => array( 'title' => $this->getTranslator()->trans('Category name', array(), 'Modules.Recpsbeta.Admin'), 'class' => 'fixed-width-xxl', 'type' => 'text', 'search' => false, 'orderby' => false ), 'position' => array( 'title' => $this->getTranslator()->trans('Position', array(), 'Modules.Recpsbeta.Admin'), 'class' => 'fixed-width-xxl', 'position' => 'position', 'search' => false, 'orderby' => false ), 'active' => array( 'title' => $this->getTranslator()->trans('Status', array(), 'Modules.Recpsbeta.Admin'), 'class' => 'fixed-width-xxl', 'active' => 'status', 'align' => 'center', 'type' => 'bool', 'search' => false, 'orderby' => false ), 'id_temp' => array( 'title' => $this->l('id_temp'), 'align' => 'text-center', 'callback' => 'printAll', 'orderby' => false, 'search' => false, 'class' => 'button', //'remove_onclick' => true ), ); if (Shop::isFeatureActive()) $this->fields_list['id_shop'] = array( 'title' => $this->getTranslator()->trans('ID Shop', array(), 'Modules.Recpsbeta.Admin'), 'align' => 'center', 'class' => 'fixed-width-sm', 'type' => 'int', 'search' => false, 'orderby' => false ); $helper = new HelperList(); $helper->shopLinkType = ''; $helper->simple_header = false; $helper->identifier = 'id_rec_ps_beta'; $helper->actions = array('edit', 'delete','pdf'); $helper->show_toolbar = true; $helper->toolbar_btn['new'] = array( 'href' => AdminController::$currentIndex.'&configure='.$this->name.'&add'.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->getTranslator()->trans('Add new', array(), 'Modules.Recpsbeta.Admin') ); $helper->toolbar_btn['edit'] = array( 'href' => AdminController::$currentIndex.'&configure='.$this->name.'&setting'.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->getTranslator()->trans('Setting', array(), 'Modules.Recpsbeta.Admin'), ); $helper->title = $this->displayName; $helper->table = $this->name; $helper->orderBy = 'position'; $helper->orderWay = 'ASC'; $helper->position_identifier = 'id_rec_ps_beta'; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name; return $helper; } And i call the function of the button: /*---------------------------printAll Function----------------------------*/ public function printAll($id) { return 'loool'; } But i see nothing: Someone help me please? I have not found a solution for days. Thx.
-
i have one module,on config page i render some helperlist.the code is this: protected function renderList() { $query = new DbQuery(); $query->select('*'); $query->from('carrier'); $query->where('active=1 AND deleted=0'); $rates = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query->build()); $fields_list = array( 'id_carrier' => array( 'title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Carrier') ), 'test' => array( 'title' => $this->l('test'), 'callback' => 'getSetCarrier', ), 'active' => array( 'title' => $this->l('Active'), ) ); $helper = new HelperList(); $helper->shopLinkType = 'shop'; $helper->simple_header = true; $helper->actions = array("edit"); $helper->show_toolbar = false; $helper->module = $this; $helper->listTotal = count($rates); $helper->identifier = 'id_carrier'; $helper->title = ''; $helper->table = $this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name; return $helper->generateList($rates, $fields_list); } public function getSetCarrier() { return 'aaa'; } in the renderList function,i set the callback is getSetCarrier. And in getSetCarrier function,i return string 'aaa'. but,the carrier list is not echo 'aaa'
-
Er der nogen af jer som oplever at have fået flere "Failed to call callbackurl" de sidste 14 dage end normalt? - Jeg har siddet og opdateret vores hjemmeside, opgraderet til 1.6 mv. Dvs. skruet på en masse parametre på en gang, hvilke aldrig er helt godt. Dog så det hele ud til at lykkedes og kunne uden problemer gennemføre ordre. Pludselig, uden at jeg husker at have ændret på noget, så modtager jeg nu ikke mails fra min prestashop om ordre, jeg får "Failed to call callbackurl" for alle ordre og når jeg går ind i min prestashop, så er status "tom" dvs. der er ingen status. Så snart jeg ændre på status, så udsendes der mails til kunden... Fra kundens synspunkt går ordren næsten fint igennem. Han kommer over til tak for ordren siden men får IKKE mails med bekræftelse på købet. - Fra man klikker betal inde i Quickpay vinduet, til man kommer tilbage til min shop går der 2-3 sek, så burde ikke time ud. Jeg kan simpelhent ikke gennemskue hvor fejlen ligger. Men tænker at det skyldes at quickpay ikke får svaret rigtig tilbage til PS... Benytter SiteGrounds som udbyder, hvilke jeg har været ganske tilfreds med indtil nu. Har OPC fra Canin og PS 1.6 theme fra premium-templates
-
Hej, Inde i Quickpay er der under Værktøjer -> Callbacks en liste med fejlede callbacks. Der er hele tiden nogle som fejler, se vedhæftede billede. Jeg har flere gange haft fat i Quickpay support, som ikke kan finde fejlen og sender mig videre til min host som er Meebox. Jeg har og har haft flere andre shops, som ligger på Unoeuro, og jeg har aldrig oplevet en eneste callback fejl. Hverken med Prestashop 1.4, 1.5 eller 1.6. Så jeg er næsten sikker på det har noget med Meebox at gøre. Nogle der har lignende problemer?
-
Поставил вот такой модуль http://addons.prestashop.com/en/front-office-features-prestashop-modules/7497-request-callback.html Был очень рад его работой. Но потом, прошло какое то время и я заметил, что звонки, которые приходят в админку не возможно редактировать - не появляется всплывающая таблица. Я его удалил и поставил заново. Проблема осталась та же. Сам модуль рабочий, а вот в админке теперь у меня все заказанные звонки висят со статусом "не обработанный". Поставил этот модуль на чистый престашоп - там работает. Посмотрел через firebug и заметил вот такую штутку. После нажатия на редактирование звонка появляется вот такая строка <tr id="frcallbacks_edit_form" style=""></tr>, но она пустая - туда ничего не подгрузилось. Кто сталкивался с такой проблемой и смогу ее решить - отпишитесь плиз
-
I have recently purchased the RBS WorldPay module, and am having issue with it. When I try and process a payment it goes through all the WP stages ok and then when it tries to redirect to our store the following message appear "The cart cannot be loaded, or an order has already been placed using this cart.". Having checked the order history the payment seems to have been accepted is this possibly a Callback issue? What would be the best solution? I have tried to contact Prestashop but they have failed to reply. By the way I am using PS V1.5.4.1 your help is much appreciated. After having given up on the WorldPay module developed by PrestaShop, decided to try another worldpay module by modulesmarket for less than half price (compared to PrestaShop developed version) on the PrestaShop addons site: http://addons.presta...0-worldpay.html This module is a lot more configurable and the level of support that I have received from the developer has been prompt and simply outstanding and will recommend this module to anyone who is looking for a fully functional worldpay module.
-
Hi all, I'm making a third party payment module. I get direct en delayed callbacks from a third party payment system. So i cannot depend on the context object. What is the most correct way to get my order back to change the status of the order? Which data should i pass trough the payment provider en with which method should i get the order back? I found something based upon the order reference. $oOrders = new Order(); $aOrdersFound = $oOrders->getByReference("REFERENCE"); $oCurrentOrder = $aOrders->getFirst()); I found something like this. But "getFirst()" does not feel okay. With this solution in send the order reference trough the payment provider What is the most correct way to get my order back to change the status of the order? Which data should i pass trough the payment provider en with which method should i get te order back? Thnx for the advice
-
Hi, I'm a little bit stumped by this. When I return to my website from Google Checkout, I end up at https://www.xxxxxxxx...ack=history.php and the shopping cart is not empty and the order does not appear in Orders but does in Google's own checkout. There are no error logs in the gcheckout folder and I have checked my merchant key and id and made sure my https url is in the google sandbox sites settings. I'm using 1.4.8.2 so not sure if I need to follow PSCFI-1480... if so, do i add the htaccess to the root htaccess? A bit lost! My htaccess file incase its useful # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^page-not-found$ /404.php [QSA,L] RewriteRule ^address$ /address.php [QSA,L] RewriteRule ^addresses$ /addresses.php [QSA,L] RewriteRule ^authentication$ /authentication.php [QSA,L] RewriteRule ^best-sales$ /best-sales.php [QSA,L] RewriteRule ^cart$ /cart.php [QSA,L] RewriteRule ^contact-us$ /contact-form.php [QSA,L] RewriteRule ^discount$ /discount.php [QSA,L] RewriteRule ^guest-tracking$ /guest-tracking.php [QSA,L] RewriteRule ^order-history$ /history.php [QSA,L] RewriteRule ^identity$ /identity.php [QSA,L] RewriteRule ^manufacturers$ /manufacturer.php [QSA,L] RewriteRule ^my-account$ /my-account.php [QSA,L] RewriteRule ^new-products$ /new-products.php [QSA,L] RewriteRule ^order$ /order.php [QSA,L] RewriteRule ^order-follow$ /order-follow.php [QSA,L] RewriteRule ^quick-order$ /order-opc.php [QSA,L] RewriteRule ^order-slip$ /order-slip.php [QSA,L] RewriteRule ^password-recovery$ /password.php [QSA,L] RewriteRule ^prices-drop$ /prices-drop.php [QSA,L] RewriteRule ^search$ /search.php [QSA,L] RewriteRule ^sitemap$ /sitemap.php [QSA,L] RewriteRule ^stores$ /stores.php [QSA,L] RewriteRule ^supplier$ /supplier.php [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule>
-
Hola a todos, he comprado el módulo CallBack y aunque en las características del módulo indican que funciona perfectamente y que tiene la garantía de prestashop, resulta que no funciona y además, cuando les reclamo una solución, me dicen que el problema debe ser mío y se lavan las manos. El caso es que el dichoso módulo envía un email diciendo que alguien quiere que le llames por teléfono, pero al no figurar en la cabecera del email, concretamente en el nombre del remitente, la cuenta desde la que se envía, resulta que el citado email acaba en la bandeja de correo no deseado. Tanto con mi servidor, como con gmail, como con cualquiera. ¿Alguien puede aportar alguna solución?
-
- callback
- problem email
-
(and 1 more)
Tagged with: