Jump to content

benedettopresta

Members
  • Posts

    45
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Italy
  • Activity
    Freelancer

Recent Profile Visitors

281,706 profile views

benedettopresta's Achievements

Newbie

Newbie (1/14)

8

Reputation

4

Community Answers

  1. Anyone has had this issue? if yes how to fix it? To comply with government regulations, this transaction has been declined I setup a shop and have the paypal module all set, and confirmed by message congratulations you can now receive payments, but when i tray to buy something from more then one paypal account i always get: "To comply with government regulations, this transaction has been declined" and have no idea of what to do now. I also tried the sandbox ant with that no problem, i've searched around and found other people have had this issue, but no solution except for changing the shop name in the paypal account, which i didn more then once, but still the same. i've tried amazon pay also and also didn't work, so i thought it was my shop issue and i reset all file permissions to 644 and folders to 755 but still nothing, i installed a new shop clean and still the same, i have php 5.6 on my server, prestashop the latest .12 version and also the paypal module it's the latest european version, and on the same server i have other shops that work no problem. https://www.mirandashop.it
  2. I don't know what did they do, but i also had the problem of not being able to go to the menu webservice, and they fix that too, but again i don't know how or what they did.
  3. I don't get internal server error i get The www......it page isn’t working www.......it didn’t send any data. ERR_EMPTY_RESPONSE Yes, and there is no errors, i also opened a support ticket with my host, but they are also having trouble finding the issue.
  4. I made a fresh install of Prestashop 1.7.0.1 with Softaculous and Manual, and have the same problem, The installation process is all normal and sucesfull, and the website loads, but when i try to go to backoffice i get: ERR_EMPTY_RESPONSE, from all browsers i tried, cleared all cache, still the same, i curentellly have php 5.5, but i also tryed php 7, but all the same, don't know what to do, any one had this problem and solved it?
  5. First of all generate a contentbox for yourself, than if you are familiar with it, you need to do this: From the original facebook pixel code <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '????????????????'); fbq('track', "PageView");</script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=????????????????&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code --> What i did, is to edit to this: // JavaScript Document !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '????????????????'); fbq('track', "PageView"); and saved it as a .js file, which you will load with contentbox in the option: Load Files on HTML Header then in the: Module's Content you put the rest of the code: <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=????????????????&ev=PageView&noscript=1" /> and that's it. Not so complicated, let me know if you manage. the website i put it on is whykini.it if you want to check it with the facebook pixel chrome extention. p.s. contentbox comes hooked in 2 places, you can unhook the footer one. And obviously the ??? need to be changed to your account.
  6. If anyone is interested in adding the facebook pixel code with a free module (contentbox) so you don't have to touch the .tpl file, so you can update PS without having to do it all over again let me know i'll post it.
  7. Solved, I've been told to add the following to the sizechart.php just before the end: } ?> function hookDisplayProductButtons($params) { global $smarty,$cookie; $smarty->assign(array( 'psversion' =>_PS_VERSION_, )); return $this->display(__FILE__, 'sizeschart.tpl'); }
  8. On my first post there is a link to the module, it's free if you want to try it, I did look at your link, but it's not the same thing. Thanks
  9. do you mean this? see photo, if yes, this is the place i can only see 2 position and want to add more.
  10. yes, and only those 2 displayHeader displayRightColumnProduct are available and as i want to put it on hookDisplayProductButtons i wanted to know how to add it to the module so it will show up in Modules Positions
  11. On this Sizes Chart Module There are only 2 hooks available: displayHeader displayRightColumnProduct I would like to add it to another existing one: hookDisplayProductButtons How to add an existing hook position to a module? Below is the sizeschart.php if it helps. <?php class SizesChart extends Module { private $_html = ''; private $_postErrors = array(); function __construct() { $this->name = 'sizeschart'; if(_PS_VERSION_ > "1.4.0.0"){ $this->tab = 'administration'; $this->author = 'RSI'; $this->need_instance = 0; }else { $this->tab = 'Tools'; } $this->version = '1.2'; parent::__construct(); $this->displayName = $this->l('Sizes Chart'); $this->description = $this->l('Display a table with sizes chart - www.catalogo-onlinersi.com.ar'); } function install() { if (!Configuration::updateValue('SIZESCHART_NBR', 1) OR !parent::install() OR !$this->registerHook('extraright') OR !$this->registerHook('header')) return false; return true; } public function postProcess() { global $currentIndex; $errors = false; if ($errors) echo $this->displayError($errors); } public function displayForm() { global $cookie; $defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT')); $languages = Language::getLanguages(); $iso = Language::getIsoById($defaultLanguage); $divLangName = 'link_label'; $this->_html .= ' <form action="'.$_SERVER['REQUEST_URI'].'" method="post" id="form"> <form action="'.$_SERVER['REQUEST_URI'].'" method="post" enctype="multipart/form-data"> <fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" title="" />'.$this->l('Settings').'</legend> <p>'.$this->l('Edit the sizeschart2.tpl to change the values').'</p> <center><input type="submit" name="submitSizesChart" value="'.$this->l('Save').'" class="button" /></center> <center> <a href="../modules/sizeschart/moduleinstall.pdf">README</a></center><br/> <center> <a href="../modules/sizeschart/termsandconditions.pdf">TERMS</center></a><br/> <center><iframe frameborder="0" src="https://catalogo-onlinersi.net/advert.html" width="520" height="448" scrolling="no"></iframe></center> </form> </fieldset> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <fieldset><legend><img src="'.$this->_path.'logo.gif" alt="" title="" />'.$this->l('Contribute').'</legend> <p class="clear">'.$this->l('You can contribute with a donation if our free modules and themes are usefull for you. Clic on the link and support us!').'</p> <p class="clear">'.$this->l('For more modules & themes visit: www.catalogo-onlinersi.com.ar').'</p> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="HMBZNQAHN9UMJ"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </fieldset> </form> '; return $this->_html; } public function getContent() { $this->postProcess(); global $cookie,$currentIndex; if (Tools::isSubmit('submitSizesChart')) { $nbr = intval(Tools::getValue('nbr')); $text = Tools::getValue('text'); Configuration::updateValue('SOLDITEMS_NBR', $nbr); Configuration::updateValue('SOLDITEMS_TEXT', $text); $this->_html .= @$errors == '' ? $this->displayConfirmation('Settings updated successfully') : @$errors; } return $this->displayForm(); } public function getProductscath($id_product) { $result = Db::getInstance()->getRow(' SELECT SUM(od.`product_quantity`) AS totalCount FROM '._DB_PREFIX_.'order_detail od WHERE od.product_id = '.$id_product.''); return $result['totalCount']; } function hookHeader($params) { if(_PS_VERSION_ < "1.4.0.0"){ return $this->display(__FILE__, 'sizeschart-header.tpl'); } if(_PS_VERSION_ > "1.4.0.0" && _PS_VERSION_ < "1.5.0.0") { Tools::addCSS(__PS_BASE_URI__.'modules/sizeschart/style.css', 'all'); } if(_PS_VERSION_ > "1.5.0.0" ) { $this->context->controller->addCSS(($this->_path).'style.css', 'all'); } if(_PS_VERSION_ > "1.5.3.0") { // $this->context->controller->addCSS(($this->_path).'js/jquery.fancybox.css', 'all'); // $this->context->controller->addJS(($this->_path).'js/jquery.fancybox.js'); } } function hookExtraRight($params) { global $smarty,$cookie; $smarty->assign(array( 'psversion' =>_PS_VERSION_, )); return $this->display(__FILE__, 'sizeschart.tpl'); } public function displayFrontForm($params) { global $cookie, $smarty; $smarty->assign(array( 'base' =>'<img src="../sizeschart/model.jpg"/>', )); return $this->display(__FILE__, 'sizeschart2.tpl'); } } ?>
  12. I am in contact with one company that told me they are developing something that would enable me to make something like that, if it doesn't pay out I will contact you again. thanks.
  13. I an mot able to create a module by my self, I did already use the accessory products, and put it next to the product, and it's a solution, but not what i want because cannot add to cart together, i\the second is only a link.
×
×
  • Create New...