Jump to content

qiqiy_888

Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • Activity
    Web development agency

Recent Profile Visitors

489 profile views

qiqiy_888's Achievements

Newbie

Newbie (1/14)

  • Reacting Well Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

3

Reputation

  1. @razaro post is helpful. but i just change the tpl file at theme files : order-payment.tpl i changed the id="HOOK_PAYMENT" to id="HOOK_PAYMENT_*******" the payment show now i am not sure it can fix the problem, but now, our customers can see the payment method.
  2. Thank you so much, i will check this.
  3. All my other payment methods were display:none; Important ! Customers can't find my payment method, only see this fake collect credit card info. Please help !!!
  4. My site is V1.6.1. My payment was replaced by unknow credit card module. they collect our customers credit card info. Please check that, anyone can help ??
  5. /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ //global variables var countriesNeedIDNumber = []; var countriesNeedZipCode = []; $(document).ready(function(){ setCountries(); bindStateInputAndUpdate(); bindUniform(); bindPostcode(); bindCheckbox(); $(document).on('click', '#invoice_address', function(e){ bindCheckbox(); }); }); function setCountries() { if (typeof countries !== 'undefined' && countries) { var countriesPS = []; for (var i in countries) { var id_country = countries['id_country']; if (typeof countries['states'] !== 'undefined' && countries['states'] && countries['contains_states']) { countriesPS[id_country] = []; for (var j in countries['states']) countriesPS[parseInt(id_country)].push({'id' : parseInt(countries['states'][j]['id_state']), 'name' : countries['states'][j]['name']}); } if (typeof countries['need_identification_number'] !== 'undefined' && parseInt(countries['need_identification_number']) > 0) countriesNeedIDNumber.push(parseInt(countries['id_country'])); if (typeof countries['need_zip_code'] !== 'undefined' && parseInt(countries['need_zip_code']) > 0) countriesNeedZipCode[parseInt(countries['id_country'])] = countries['zip_code_format']; } } countries = countriesPS; } function bindCheckbox() { if ($('#invoice_address:checked').length > 0) { $('#opc_invoice_address').slideDown('slow'); if ($('#company_invoice').val() == '') $('#vat_number_block_invoice').hide(); bindUniform(); } else $('#opc_invoice_address').slideUp('slow'); } function bindUniform() { $("select.form-control,input[type=radio],input[type=checkbox]").uniform(); } function bindPostcode() { $(document).on('keyup', 'input[name=postcode]', function(e) { $(this).val($(this).val().toUpperCase()); }); } function bindStateInputAndUpdate() { $('.id_state, .dni, .postcode').css({'display':'none'}); updateState(); updateNeedIDNumber(); updateZipCode(); $(document).on('change', '#id_country', function(e) { updateState(); updateNeedIDNumber(); updateZipCode(); }); if ($('#id_country_invoice').length !== 0) { $(document).on('change', '#id_country_invoice', function(e) { updateState('invoice'); updateNeedIDNumber('invoice'); updateZipCode('invoice'); }); updateState('invoice'); updateNeedIDNumber('invoice'); updateZipCode('invoice'); } if (typeof idSelectedState !== 'undefined' && idSelectedState) $('.id_state option[value= + idSelectedState + ]').prop('selected', true); if (typeof idSelectedStateInvoice !== 'undefined' && idSelectedStateInvoice) $('.id_state_invoice option[value= + idSelectedStateInvoice + ]').prop('selected', true); } function updateState(suffix) { $('#id_state' + (typeof suffix !== 'undefined' ? '_' + suffix : '')+' option:not(:first-child)').remove(); if (typeof countries !== 'undefined') var states = countries[parseInt($('#id_country' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).val())]; if (typeof states !== 'undefined') { $(states).each(function(key, item){ $('#id_state' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).append('<option value="' + parseInt(item.id) + '">' + item.name + '</option>'); }); $('.id_state' + (typeof suffix !== 'undefined' ? '_' + suffix : '') + ':hidden').fadeIn('slow'); $('#id_state, #id_state_invoice').uniform(); } else $('.id_state' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).fadeOut('fast'); } function updateNeedIDNumber(suffix) { var idCountry = parseInt($('#id_country' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).val()); if (typeof countriesNeedIDNumber !== 'undefined' && in_array(idCountry, countriesNeedIDNumber)) { $('.dni' + (typeof suffix !== 'undefined' ? '_' + suffix : '') + ':hidden').fadeIn('slow'); $('#dni').uniform(); } else $('.dni' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).fadeOut('fast'); } function updateZipCode(suffix) { var idCountry = parseInt($('#id_country' + (typeof suffix !== 'undefined' ? '_' + suffix : '')).val()); if (typeof countriesNeedZipCode !== 'undefined' && typeof countriesNeedZipCode[idCountry] !== 'undefined') { $('.postcode' + (typeof suffix !== 'undefined' ? '_' + suffix : '') + ':hidden').fadeIn('slow'); $('#postcode').uniform(); } else $('.postcode'+(typeof suffix !== 'undefined' ? '_' + suffix : '')).fadeOut('fast'); } replace the statesManagement.js with this code, works fine for me. thank you all
  6. This method works well. Thank you sooo much Rocky.
  7. Thank you @joergenaj it helped me. this problem confused me very long time.
  8. i think because the session ( cookies), for the first visit, he can click the paypal button , and go to paypal, it works well. but when you go to paypal, and you don't pay the order, not clicking the "back to site" link then you can't click the paypal button again but if you clean the brower history, then it works well again i don't know how to fix it, anyone can help me ?
  9. in pre v1.6, i added this code, it works well: classes/Meta.php Find the getMetaTags function add the code between "add by ruby" -------------------------------------------- public static function getMetaTags($id_lang, $page_name, $title = '') { if (!(!Configuration::get('PS_SHOP_ENABLE') && !in_array(Tools::getRemoteAddr(), explode(',', Configuration::get('PS_MAINTENANCE_IP'))))) { if ($page_name == 'product' && ($id_product = Tools::getValue('id_product'))) { return Meta::getProductMetas($id_product, $id_lang, $page_name); } elseif ($page_name == 'category' && ($id_category = Tools::getValue('id_category'))) { return Meta::getCategoryMetas($id_category, $id_lang, $page_name, $title); } elseif ($page_name == 'manufacturer' && ($id_manufacturer = Tools::getValue('id_manufacturer'))) { return Meta::getManufacturerMetas($id_manufacturer, $id_lang, $page_name); } elseif ($page_name == 'supplier' && ($id_supplier = Tools::getValue('id_supplier'))) { return Meta::getSupplierMetas($id_supplier, $id_lang, $page_name); } elseif ($page_name == 'cms' && ($id_cms = Tools::getValue('id_cms'))) { return Meta::getCmsMetas($id_cms, $id_lang, $page_name); } elseif ($page_name == 'cms' && ($id_cms_category = Tools::getValue('id_cms_category'))) { return Meta::getCmsCategoryMetas($id_cms_category, $id_lang, $page_name); } //add by ruby elseif ($page_name == 'search') { if ($placeholder = Tools::getValue('search_query')) { $the_title = 'Results for matching "'.$placeholder.'" ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } else if ($placeholder = Tools::getValue('tag')) { $the_title = 'Tagged with "'.$placeholder.'" ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } else { $the_title = 'Product Search ~~ '.Configuration::get('PS_SHOP_NAME'); $srt['meta_description'] = 'The result is '.$placeholder." from ".Configuration::get('PS_SHOP_NAME'); } $srt['meta_title'] = $the_title; return $srt; } // end add by ruby } return Meta::getHomeMetas($id_lang, $page_name); }
  10. Hi, can you please tell us where to insert to this code ? does it works well on 1.6 ? thank you
  11. Add some JS in your product.js, do like this : Open the product.js file /themes/YOURTHEME/js/product.js Find this code: $(document).ready(function() { var url_found = checkUrl(); } then add the js like this: $(document).ready(function() { var url_found = checkUrl(); $('#payment_paypal_express_checkout').insertAfter('#add_to_cart'); $('#payment_paypal_express_checkout').css('float', 'right'); $('#payment_paypal_express_checkout').css('margin-top', '10px'); $('#container_express_checkout').hide(); } Works perfect for me !
  12. Okay, thank you, but why i can't see this module on your demo site ?
  13. Hi, no problem, i will buy your this module, but what is the different between your Agile module and PayPal v3.10.1 - by PrestaShop module ? my site don't have https, does your this module work well ? let me know asap
×
×
  • Create New...