Jump to content

Gold1s

Members
  • Content count

    131
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Goldi

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello, I have a little problem with module - https://apps.oscommerce.com/6Zs7a&amp;jcm-google-recaptcha-v2-terms-phoenix&amp;v=cephoenix10&amp;p=4 Yes, I know, that last update was 12.2019, but this recaptcha (I was only install this) it's working good on pages like var $good_pages = ['contact_us.php', 'create_account.php', 'checkout_shipping_address.php', 'create_account_pwa.php']; (I was defined it). But I have a problem in https://shop.1-25saf.com/address_book_process.php When I want to add a new adress - I have a error: Notice: Undefined index: g-recaptcha-response in /includes/hooks/shop/siteWide/JcMgoogleCapatcha.php on line 32 Notice: Constant MODULE_CONTENT_RECAPTCHA_ERROR already defined in /includes/languages/polish/hooks/shop/siteWide/jcm_google_recaptcha.php on line 15 Notice: Constant MODULE_CONTENT_RECAPTCHA_SITEKEY already defined in /includes/languages/polish/hooks/shop/siteWide/jcm_google_recaptcha.php on line 16 Notice: Constant MODULE_CONTENT_RECAPTCHA_SECRETKEY already defined in /includes/languages/polish/hooks/shop/siteWide/jcm_google_recaptcha.php on line 17 Someone know, where is a problem? JcMgoogleCapatcha.php looks like this: <?php /* Updated for Phoniex Hooks V1.5 by JcMagie 04-12-2019 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ class hook_shop_siteWide_JcMgoogleCapatcha { var $good_pages = ['contact_us.php', 'create_account.php', 'checkout_shipping_address.php', 'create_account_pwa.php']; var $version = 'JcMgoogleCapatcha Hooks V1.5 by JcMagie 04-12-2019'; var $FormVerify = null; var $formdisplay = null; var $SiteEnd = null; function listen_injectFormVerify() { global $language, $error, $messageStack; require('includes/languages/' . $language . '/hooks/shop/siteWide/jcm_google_recaptcha.php'); require('includes/classes/recaptcha.php'); $this->FormVerify .= $recaptcha = $_POST['g-recaptcha-response']; $object = new Recaptcha(); $response = $object->verifyResponse($recaptcha); PHP_EOL; if (isset($response['success']) and $response['success'] != true) { $this->FormVerify .= $error = true; $messageStack->add('contact', MODULE_CONTENT_RECAPTCHA_ERROR . ' (Error: ' . $response['error-codes'] . ')'); } PHP_EOL; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { return $this->FormVerify; } } function listen_injectFormDisplay() { global $language; require('includes/languages/' . $language . '/hooks/shop/siteWide/jcm_google_recaptcha.php'); $this->formdisplay .= '<!-- Google reCapatch V2 hooked V1.0 JcMagpie 22-11-2019-->' . PHP_EOL; $this->formdisplay .= '<div class="form-group row"> <label for="inputRecaptcha" class="col-form-label col-sm-3 text-left text-sm-right">&nbsp;</label><div class="col-sm-9"> <div class="g-recaptcha" data-sitekey="' . MODULE_CONTENT_RECAPTCHA_SITEKEY . '" data-theme="light" data-type="image" data-size="normal"></div> </div></div>' . PHP_EOL; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { return $this->formdisplay; } } function listen_injectSiteEnd() { $this->SiteEnd .= '<!-- JcMrecaptcha hooked -->' . PHP_EOL; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { $this->SiteEnd .= '<script src="https://www.google.com/recaptcha/api.js" async defer></script>' . PHP_EOL; return $this->SiteEnd; } } } When I was try to add address_book_process.php to good_pages - recaptcha doesn't show.
  2. Hello @swguy I have a question, I have Purchase without account Phoenix - https://apps.oscommerce.com/gBmPX&purchase-without-account-phoenix module and when I am on guest account - I see quantity discount in checkout process, but I don't want to give discount for guest, just for users, which were bought something earlier. Could you tell me, what is need to edit to get this effect? If I should to set quantity discount only for registered users? Or something else? Newest Phoenix. Thx.
  3. Ok, so how can I disable this? I don't want to copy Guest username to navbar - it should look like during log off. So do you think - I should set quantity discount only for registered users?
  4. Hello @raiwa I have 2 problems with this mod. 1. When I was try to buy something with this guest module and I move out from cart - in navbar I see this - (name of account guest), but I can't click on it - seems this is blocked, I can't click logoff, my profile etc - https://take.ms/hrAZ9 Only cookies/cache clean is help to this issue. When I was log in in normal account / log out - this section works ok. 2. I have quantity discount module - https://apps.oscommerce.com/QdusL&amp;quantity-discounts-for-osc-phoenix&amp;v=cephoenix10&amp;p=2 But when I am on guest account - I see quantity discount in checkout process, but I don't want to give discount for guest, just for users, which were bought something earlier. Could you tell me, what is need to edit to get this effect? Newest Phoenix, shop: http://piterpanzer.home.pl/esklep/index.php
  5. Gold1s

    Display Tax Info V3.0

    @raiwa brilliant! It's working. Thank you bro, and have a nice day!
  6. Gold1s

    Display Tax Info V3.0

    Thank you bro, I'll been waiting
  7. Gold1s

    Display Tax Info V3.0

    And I think smth wrong with this file: /includes/hooks/shop/siteWide/priceTax.php Couse only if I delete it - prices are ok.
  8. Gold1s

    Display Tax Info V3.0

    No raiva, sorry but I think it's because your hook coz problem is only, where price will show with info about tax. e.g. here is ok - https://take.ms/XSXrB And when your's mod is delete - everything with prices and currencies its ok.
  9. Gold1s

    Display Tax Info V3.0

    Do you think about it? https://take.ms/I666d
  10. Gold1s

    Display Tax Info V3.0

    Currency is wrong I mean on the frontpage, prices was shows all 4 currency in 1:1:1:1 - https://take.ms/JyuKM But on admin panel I have setting like this: https://take.ms/xF0e1 So when I was delete file tax from hooks - everything is OK, prices have correctly value, not 1:1, but when I upload to ftp thix file to hooks - tax will show below the price, but price is e.g. 27 on every currency. Like I said - when I delete hook - prices with currencies work OK, when I upload your file - gones wrong.
  11. Gold1s

    Display Tax Info V3.0

    No, when I delete the file from hook - currencies works OK, I don't need to uninstall everything. But when I upload hook file - currency are wrong again.
  12. Gold1s

    Display Tax Info V3.0

    I was uplad your file, but still currencies are wrong, when I have your file /includes/hooks/shop/siteWide/priceTax.php in my ftp. When I deleteing this file - everything is OK. My tax zones looks like this: https://take.ms/FfQSB All setting are the same when I delete your file, and then everything works perfect, but when I upload your file - currency is wrong. Thanks for reply.
  13. Gold1s

    Display Tax Info V3.0

    Could you update mod to newest phoenix? Thank you.
  14. The same question like radhavallabh - could some1 help to conversion this mod to phoenix?
  15. Hello. I have a oscommerce 2.2 merchant, and I was installed a FCK EDITOR. All is right, but when i want uploaded a image I've seen this message: 5 days ago I move the shop script to a new hosting. On old hosting I don't have problems with this. Someone could help me? Greetz.
×