Changeset 3324627
- Timestamp:
- 07/09/2025 01:04:01 AM (7 months ago)
- Location:
- woo-rfq-for-woocommerce
- Files:
-
- 124 added
- 6 edited
-
tags/2.4.4 (added)
-
tags/2.4.4/assets (added)
-
tags/2.4.4/assets/js (added)
-
tags/2.4.4/assets/js/frontend (added)
-
tags/2.4.4/assets/js/frontend/blocks.asset.php (added)
-
tags/2.4.4/assets/js/frontend/blocks.js (added)
-
tags/2.4.4/changelog.txt (added)
-
tags/2.4.4/gpls_assets (added)
-
tags/2.4.4/gpls_assets/WooCommerce_GPLS_RFQ_Integration.php (added)
-
tags/2.4.4/gpls_assets/WooCommerce_GPLS_RFQ_Integration.php1 (added)
-
tags/2.4.4/gpls_assets/css (added)
-
tags/2.4.4/gpls_assets/css/cart_checkout_wh.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_single.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_wh.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_wh_rfqtk.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_wh_visitor.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_woo_admin.css (added)
-
tags/2.4.4/gpls_assets/css/gpls_woo_rfq.css (added)
-
tags/2.4.4/gpls_assets/css/rftk_shipping.css (added)
-
tags/2.4.4/gpls_assets/css/rftk_shipping_prices.css (added)
-
tags/2.4.4/gpls_assets/css/select2-spinner.gif (added)
-
tags/2.4.4/gpls_assets/img (added)
-
tags/2.4.4/gpls_assets/img/favorite16.png (added)
-
tags/2.4.4/gpls_assets/img/favorite24.png (added)
-
tags/2.4.4/gpls_assets/img/payfast.png (added)
-
tags/2.4.4/gpls_assets/img/select2-spinner.gif (added)
-
tags/2.4.4/gpls_assets/img/wpspin.gif (added)
-
tags/2.4.4/gpls_assets/js (added)
-
tags/2.4.4/gpls_assets/js/gpls_blank.js (added)
-
tags/2.4.4/gpls_assets/js/gpls_wh.js (added)
-
tags/2.4.4/gpls_assets/js/gpls_woo_password.js (added)
-
tags/2.4.4/gpls_assets/js/gpls_woo_rfq.js (added)
-
tags/2.4.4/gpls_assets/js/np_cart_checkout.js (added)
-
tags/2.4.4/gpls_assets/js/rfq_admin_basic.js (added)
-
tags/2.4.4/gpls_assets/js/rfq_admin_misc.js (added)
-
tags/2.4.4/gpls_assets/js/rfq_dummy.js (added)
-
tags/2.4.4/includes (added)
-
tags/2.4.4/includes/blocks (added)
-
tags/2.4.4/includes/blocks/class-wc-gpls_rfq-payments-blocks.php (added)
-
tags/2.4.4/includes/classes (added)
-
tags/2.4.4/includes/classes/admin (added)
-
tags/2.4.4/includes/classes/admin/admin.php (added)
-
tags/2.4.4/includes/classes/admin/gpls_woo_rfq_admin_functions.php (added)
-
tags/2.4.4/includes/classes/admin/metaboxes (added)
-
tags/2.4.4/includes/classes/admin/metaboxes/gpls_woo_rfq_product_meta.php (added)
-
tags/2.4.4/includes/classes/admin/privacy (added)
-
tags/2.4.4/includes/classes/admin/privacy/gpls_woo_rfq_privacy.php (added)
-
tags/2.4.4/includes/classes/admin/settings (added)
-
tags/2.4.4/includes/classes/admin/settings/gpls_woo_rfq_settings.php (added)
-
tags/2.4.4/includes/classes/cart (added)
-
tags/2.4.4/includes/classes/cart/gpls_woo_rfq_cart.php (added)
-
tags/2.4.4/includes/classes/checkout (added)
-
tags/2.4.4/includes/classes/checkout/gpls_woo_rfq_checkout.php (added)
-
tags/2.4.4/includes/classes/checkout/gpls_woo_rfq_ncheckout.php (added)
-
tags/2.4.4/includes/classes/coupons (added)
-
tags/2.4.4/includes/classes/coupons/gpls_woo_rfq_coupons.php (added)
-
tags/2.4.4/includes/classes/emails (added)
-
tags/2.4.4/includes/classes/emails/NP_Html2Text.php (added)
-
tags/2.4.4/includes/classes/emails/class-wc-email-customer-rfq.php (added)
-
tags/2.4.4/includes/classes/emails/class-wc-email-new-rfq.php (added)
-
tags/2.4.4/includes/classes/emails/class-wc-email-rfq.php (added)
-
tags/2.4.4/includes/classes/gateway (added)
-
tags/2.4.4/includes/classes/gateway/class-wc-gateway-rfq.php (added)
-
tags/2.4.4/includes/classes/gateway/wc-gateway-gpls-request-quote.php (added)
-
tags/2.4.4/includes/classes/gpls_woo_rfq_functions.php (added)
-
tags/2.4.4/includes/classes/prices (added)
-
tags/2.4.4/includes/classes/prices/gpls_woo_rfq_prices.php (added)
-
tags/2.4.4/includes/classes/shipping (added)
-
tags/2.4.4/includes/classes/shipping/gpls_woo_rfq_shipping.php (added)
-
tags/2.4.4/languages (added)
-
tags/2.4.4/languages/woo-rfq-for-woocommerce.pot (added)
-
tags/2.4.4/readme.txt (added)
-
tags/2.4.4/resources (added)
-
tags/2.4.4/resources/js (added)
-
tags/2.4.4/resources/js/frontend (added)
-
tags/2.4.4/resources/js/frontend/index.js (added)
-
tags/2.4.4/woo-rfq-for-woocommerce.php (added)
-
tags/2.4.4/woo-rfq-includes (added)
-
tags/2.4.4/woo-rfq-includes/woo-rfq-functions.php (added)
-
tags/2.4.4/woocommerce (added)
-
tags/2.4.4/woocommerce/cart (added)
-
tags/2.4.4/woocommerce/cart/proceed-to-checkout-button.php (added)
-
tags/2.4.4/woocommerce/emails (added)
-
tags/2.4.4/woocommerce/emails/admin-new-rfq.php (added)
-
tags/2.4.4/woocommerce/emails/customer-note.php (added)
-
tags/2.4.4/woocommerce/emails/customer-rfq.php (added)
-
tags/2.4.4/woocommerce/emails/email-order-items.php (added)
-
tags/2.4.4/woocommerce/emails/plain (added)
-
tags/2.4.4/woocommerce/emails/plain/admin-new-rfq.php (added)
-
tags/2.4.4/woocommerce/emails/plain/customer-note.php (added)
-
tags/2.4.4/woocommerce/emails/plain/customer-rfq.php (added)
-
tags/2.4.4/woocommerce/emails/plain/email-order-items.php (added)
-
tags/2.4.4/woocommerce/emails/plain/rfqtk-email-order-items.php (added)
-
tags/2.4.4/woocommerce/emails/plain/subscription-info.php (added)
-
tags/2.4.4/woocommerce/emails/rfqtk-email-order-items.php (added)
-
tags/2.4.4/woocommerce/emails/subscription-info.php (added)
-
tags/2.4.4/woocommerce/woo-rfq (added)
-
tags/2.4.4/woocommerce/woo-rfq/account_password.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/add-to-favs-form-single.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/add-to-favs-form.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/add-to-favs-link.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/add-to-quote-single.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/add-to-quote.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/fav-cart.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/link-to-cart-pages.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/link-to-cart-shop.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/link-to-cart.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/link-to-favs-page.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/rfq-cart-empty.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/rfq-cart-favs-empty.php (added)
-
tags/2.4.4/woocommerce/woo-rfq/rfq-cart.php (added)
-
tags/2.4.4/wp-session-manager (added)
-
tags/2.4.4/wp-session-manager/includes (added)
-
tags/2.4.4/wp-session-manager/includes/class-php-session.php (added)
-
tags/2.4.4/wp-session-manager/includes/class-recursive-arrayaccess.php (added)
-
tags/2.4.4/wp-session-manager/includes/class-wp-session-utils.php (added)
-
tags/2.4.4/wp-session-manager/includes/class-wp-session.php (added)
-
tags/2.4.4/wp-session-manager/includes/header.txt (added)
-
tags/2.4.4/wp-session-manager/includes/php-session.php (added)
-
tags/2.4.4/wp-session-manager/includes/wp-cli.php (added)
-
tags/2.4.4/wp-session-manager/includes/wp-session.php (added)
-
tags/2.4.4/wp-session-manager/php-cookie-session.php (added)
-
tags/2.4.4/wp-session-manager/wp-cookie-session.php (added)
-
tags/2.4.4/wp-session-manager/wp-session-manager.php (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/classes/admin/settings/gpls_woo_rfq_settings.php (modified) (6 diffs)
-
trunk/includes/classes/cart/gpls_woo_rfq_cart.php (modified) (9 diffs)
-
trunk/includes/classes/gpls_woo_rfq_functions.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woo-rfq-for-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-rfq-for-woocommerce/trunk/changelog.txt
r3320838 r3324627 1 1 === Changelog == 2 3 = 2.4.4 7/8/2025 = 4 Fix issue with add to faves in RFQ mode 2 5 3 6 = 2.4.3 7/1/2025 = -
woo-rfq-for-woocommerce/trunk/includes/classes/admin/settings/gpls_woo_rfq_settings.php
r3320838 r3324627 505 505 ), 506 506 507 508 509 507 'settings_gpls_woo_rfq_show_prices' => array( 510 508 'name' => '2- ' . __('Always Show Product Prices With RFQ Checkout', 'woo-rfq-for-woocommerce'), … … 514 512 'id' => 'settings_gpls_woo_rfq_show_prices' 515 513 ), 516 517 514 518 515 'settings_gpls_woo_rfq_normal_checkout_show_prices' => array( … … 973 970 'type' => 'checkbox', 974 971 'desc' => 'Enable feature', 975 'default' => ' yes',972 'default' => 'no', 976 973 'id' => 'settings_gpls_woo_rfq_allow_favorites' 977 974 ), 975 'settings_gpls_woo_rfq_allow_anon_favorites' => array( 976 'name' => '2- ' . __('Enable saving favorites for visitors', 'woo-rfq-for-woocommerce'), 977 'type' => 'checkbox', 978 'desc' => 'Enable feature for visitors', 979 'default' => 'no', 980 'id' => 'settings_gpls_woo_rfq_allow_anon_favorites' 981 ), 978 982 'settings_gpls_woo_rfq_my_acct_favorites_label' => array( 979 'name' => ' 2-' . __('Favorites Label', 'woo-rfq-for-woocommerce'),983 'name' => '3-' . __('Favorites Label', 'woo-rfq-for-woocommerce'), 980 984 'type' => 'text', 981 985 'desc' => 'The label to use for favorites in "my account" section', … … 985 989 ), 986 990 'settings_rfq_favs_wordings_view_favs_cart' => array( 987 'name' => ' 3-' . __('View Favorites', 'woo-rfq-for-woocommerce'),991 'name' => '4-' . __('View Favorites', 'woo-rfq-for-woocommerce'), 988 992 'type' => 'text', 989 993 'desc' => 'The label to use for link to favorites', … … 994 998 995 999 'settings_gpls_woo_rfq_add_to_favorites_label' => array( 996 'name' => ' 4-' . __('Add to Favorites', 'woo-rfq-for-woocommerce'),1000 'name' => '5-' . __('Add to Favorites', 'woo-rfq-for-woocommerce'), 997 1001 'type' => 'text', 998 1002 'desc' => 'The label to use for "Add to Favorites" ', … … 1002 1006 ), 1003 1007 'rfq_cart_sc_section_link_to_favorites_page' => array( 1004 'name' => ' 5- ' .__('Request for Favorites Page URL', 'woo-rfq-for-woocommerce'),1008 'name' => '6- ' .__('Request for Favorites Page URL', 'woo-rfq-for-woocommerce'), 1005 1009 'type' => 'text', 1006 1010 'desc' => __('Favorites Page URL.Please show the full URL. Use the same domain/subdomain name as your site.<br />' -
woo-rfq-for-woocommerce/trunk/includes/classes/cart/gpls_woo_rfq_cart.php
r3320271 r3324627 38 38 add_filter('woocommerce_loop_add_to_cart_link', array($this, 'gpls_woo_rfq_add_to_cart_link_shop'), 1000, 2); 39 39 40 if ( get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 40 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 41 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 42 43 if (($allow_favs=="yes" && is_user_logged_in()) || 44 (get_current_user_id() ==0 && $allow_favs_anon=='yes' && $allow_favs=="yes") ) 45 { 41 46 add_filter('woocommerce_loop_add_to_cart_link', array($this, 'gpls_woo_rfq_add_to_cart_link_shop_favorites'), 2000, 2); 42 47 } … … 47 52 add_action($hook_add_to_cart, array($this, 'gpls_woo_rfq_after_add_to_cart_button'), 100); 48 53 49 //favorites 50 if ( get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 54 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 55 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 56 57 if (($allow_favs=="yes" && is_user_logged_in()) || 58 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 51 59 add_action('woocommerce_after_add_to_cart_form', array($this, 'gpls_woo_rfq_after_add_to_cart_favorites'), 200); 52 60 } … … 683 691 if (is_admin() || get_option('settings_gpls_woo_rfq_allow_favorites','no')=='no') return false; 684 692 685 if(get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 693 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 694 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 695 696 if (($allow_favs=="yes" && is_user_logged_in()) || 697 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 686 698 $link_to_fav_page = get_option('rfq_cart_sc_section_show_link_to_favorites_page',''); 687 699 … … 1001 1013 && $rfq_enable=="yes" 1002 1014 ) { 1003 return ; 1015 1016 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 1017 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 1018 1019 if (($allow_favs=="yes" && is_user_logged_in()) || 1020 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 1021 ob_start(); 1022 wc_get_template('woo-rfq/add-to-favs-form.php', 1023 array('product' => $product, 1024 1025 ), '', gpls_woo_rfq_WOO_PATH); 1026 1027 $result_add_to_fav = ob_get_clean(); 1028 echo '<div>' . $result_add_to_fav . '</div>';return ; 1029 }else{ 1030 return ; 1031 } 1032 1033 1034 // return ; 1004 1035 } 1005 1036 } … … 1153 1184 ), '', gpls_woo_rfq_WOO_PATH); 1154 1185 1155 if(get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') 1156 { 1186 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 1187 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 1188 1189 if (($allow_favs=="yes" && is_user_logged_in()) || 1190 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 1157 1191 1158 1192 wc_get_template('woo-rfq/add-to-favs-form.php', … … 1377 1411 1378 1412 1379 if(get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 1413 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 1414 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 1415 1416 if (($allow_favs=="yes" && is_user_logged_in()) || 1417 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 1380 1418 ob_start(); 1381 1419 wc_get_template('woo-rfq/add-to-favs-form.php', … … 1404 1442 ), '', gpls_woo_rfq_WOO_PATH); 1405 1443 1406 if(get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 1444 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 1445 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 1446 1447 if (($allow_favs=="yes" && is_user_logged_in()) || 1448 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 1407 1449 wc_get_template('woo-rfq/add-to-favs-form.php', 1408 1450 array('product' => $product, … … 1539 1581 && $rfq_enable=="yes" 1540 1582 ) { 1541 return ; 1583 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 1584 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 1585 1586 if (($allow_favs=="yes" && is_user_logged_in()) || 1587 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 1588 ob_start(); 1589 wc_get_template('woo-rfq/add-to-favs-form.php', 1590 array('product' => $product, 1591 1592 ), '', gpls_woo_rfq_WOO_PATH); 1593 1594 $result_add_to_fav = ob_get_clean(); 1595 echo '<div>' . $result_add_to_fav . '</div>';return ; 1596 }else{ 1597 return ; 1598 } 1542 1599 } 1543 1600 } … … 1973 2030 1974 2031 1975 public function gpls_woo_rfq_add_to_cart_link_shop_favorites($link, $product){ 2032 public function gpls_woo_rfq_add_to_cart_link_shop_favorites($link, $product) 2033 { 2034 2035 2036 2037 $rfq_check = false; 2038 $normal_check = false; 2039 //gpls_woo_rfq_get_mode($rfq_check, $normal_check); 2040 $rfq_check = false; 2041 $normal_check = false; 2042 2043 if (get_option('settings_gpls_woo_rfq_checkout_option', 'normal_checkout') == "rfq") { 2044 add_filter('woocommerce_cart_needs_payment', 'gpls_woo_rfq_cart_needs_payment', 1000, 2); 2045 $rfq_check = true; 2046 $normal_check = false; 2047 } 2048 2049 if (get_option('settings_gpls_woo_rfq_checkout_option', 'normal_checkout') == "normal_checkout") { 2050 $rfq_check = false; 2051 $normal_check = true; 2052 } 2053 if (function_exists('is_user_logged_in')) { 2054 if (get_option('settings_gpls_woo_rfq_hide_visitor_prices', 'no') == 'yes' && !is_user_logged_in()) { 2055 $rfq_check = true; 2056 $normal_check = false; 2057 2058 } 2059 } 2060 1976 2061 $rfq_enable = gpls_woo_get_rfq_enable($product); 1977 if ($rfq_enable == 'yes') { 1978 1979 return ''; 1980 } 1981 1982 1983 ob_start(); 1984 wc_get_template('woo-rfq/add-to-favs-form.php', 1985 array('product' => $product, 1986 1987 ), '', gpls_woo_rfq_WOO_PATH); 1988 $result = ob_get_clean(); 1989 1990 return $link."<div style='display:block'>{$result}</div>"; 2062 if ($normal_check && $rfq_enable == 'yes') { 2063 return $link; 2064 } 2065 2066 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 2067 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 2068 2069 if ( 2070 ($allow_favs=="yes" && is_user_logged_in()) 2071 || 2072 (get_current_user_id() ==0 && $allow_favs_anon=='yes' && $allow_favs=="yes") 2073 ) 2074 { 2075 ob_start(); 2076 wc_get_template('woo-rfq/add-to-favs-form.php', 2077 array('product' => $product, 2078 2079 ), '', gpls_woo_rfq_WOO_PATH); 2080 $result = ob_get_clean(); 2081 return $link."<div style='display:block'>{$result}</div>"; 2082 }else{ 2083 return $link; 2084 } 2085 2086 1991 2087 } 2088 1992 2089 1993 2090 1994 2091 public function gpls_woo_rfq_add_to_cart_link_shop($link, $product) 1995 2092 { 1996 1997 1998 1999 2000 2093 2001 2094 if ($product->get_type() === 'external') { -
woo-rfq-for-woocommerce/trunk/includes/classes/gpls_woo_rfq_functions.php
r3320838 r3324627 956 956 exit; // Exit if accessed directly 957 957 } 958 if ( get_option('settings_gpls_woo_rfq_allow_favorites','no')=='yes') { 958 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 959 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 960 961 if (($allow_favs=="yes" && is_user_logged_in()) || 962 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 959 963 ob_start(); 960 964 … … 2146 2150 { 2147 2151 2152 $product = wc_get_product(); 2153 2148 2154 $rfq_enable = 'no'; 2149 2150 2155 2151 2156 if (isset($product) && is_object($product)) { … … 2163 2168 if ($rfq_enable == 'no') { 2164 2169 2165 return $purchasable; ;2170 return $purchasable; 2166 2171 2167 2172 } … … 2258 2263 $allow_favorites = get_option('settings_gpls_woo_rfq_allow_favorites', 'no'); 2259 2264 2260 if ($allow_favorites == "yes") { 2265 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 2266 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 2267 2268 if (($allow_favs=="yes" && is_user_logged_in()) || 2269 (get_current_user_id() ==0 && $allow_favs=="yes" && $allow_favs_anon=='yes') ) { 2261 2270 2262 2271 $create_page_once = get_option('gpls_woo_fav_qr_page_check'); … … 2299 2308 function gpls_woo_rfq_hide_rfq_page($items, $menu, $args) 2300 2309 { 2310 2301 2311 2302 2312 … … 2323 2333 $rfq_page = get_option('rfq_cart_sc_section_show_link_to_rfq_page', $home); 2324 2334 2325 if (isset($rfq_page) ) {2335 if (isset($rfq_page) &&!is_admin()) { 2326 2336 2327 2337 $link_to_rfq_page_url = trim($rfq_page); … … 2348 2358 } 2349 2359 2360 $allow_favs=get_option('settings_gpls_woo_rfq_allow_favorites','no'); 2361 $allow_favs_anon=get_option('settings_gpls_woo_rfq_allow_anon_favorites','no'); 2362 2350 2363 2351 2364 if (get_option('settings_gpls_woo_rfq_allow_favorites', 'no') == 'no' 2352 2353 || get_option('settings_gpls_woo_rfq_allow_menu', 'no') == 'no') {2354 2355 {2365 ||get_option('settings_gpls_woo_rfq_allow_menu', 'no') == 'no' 2366 || (get_current_user_id() ==0 && $allow_favs_anon=='no') 2367 ) 2368 { 2356 2369 2357 2370 $rfq_page = get_option('rfq_cart_sc_section_link_to_favorites_page', NULL); … … 2371 2384 2372 2385 2373 if ($page_post != null ) {2386 if ($page_post != null &&!is_admin()) { 2374 2387 2375 2388 foreach ($items as $key => $item) { … … 2380 2393 } 2381 2394 } 2382 } 2395 2383 2396 } 2384 2397 -
woo-rfq-for-woocommerce/trunk/readme.txt
r3320838 r3324627 7 7 Requires PHP: 7.4 8 8 WC tested up to: 9.9.5 9 Stable tag: 2.4. 39 Stable tag: 2.4.4 10 10 License: GPLv2 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 212 212 == Changelog == 213 213 214 = 2.4. 3 7/1/2025 =215 Reduced required PHP from 8.2 to 7.4 214 = 2.4.4 7/8/2025 = 215 Fix issue with add to faves in RFQ mode 216 216 217 217 == Upgrade Notice == 218 218 219 = 2.4. 3 7/1/2025 =220 Reduced required PHP from 8.2 to 7.4 221 222 223 219 = 2.4.4 7/8/2025 = 220 Fix issue with add to faves in RFQ mode 221 222 223 -
woo-rfq-for-woocommerce/trunk/woo-rfq-for-woocommerce.php
r3320838 r3324627 3 3 * Plugin Name: NP Quote Request for WooCommerce 4 4 * Description: NP Quote Request for WooCommerce enables your customers to easily submit a quote request to your WooCommerce store. It is very flexible and can be used in a variety of store settings. NP Quote Request for WooCommerce enables you to generate leads and engage with your customers! 5 * Version: 2.4. 35 * Version: 2.4.4 6 6 * Contributors: Neah Plugins,gplsaver 7 7 * Author: Neah Plugins
Note: See TracChangeset
for help on using the changeset viewer.