imranpak
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: my data base files need repaired according to messageHi,
It clearly says that your have lost the tables.
By the way, I tried this below code to achieve my client ‘s requirements.
ON JS FILE:
jQuery(document).ready(function () {jQuery(‘#billing_country’).change(function () {
var billingcountry = $(this).val();
var billing_country = jQuery(‘#billing_country’).val();
var data = {
action: ‘woocommerce_apply_billing_country’,
security: wc_checkout_params.apply_billing_country_nonce,
billing_country: billing_country
};
jQuery.ajax({
type: ‘POST’,
url: wc_checkout_params.ajax_url,
data: data,success: function (code) {
alert (code +”Code”);
},
dataType: ‘html’
});return false;
});});
ON FUNCTIONS.PHP FILE:
wp_enqueue_script(‘billing_country’, get_template_directory_uri() . ‘/js/billing_country_call.js’, array(‘jquery’));
wp_localize_script(‘billing_country’, ‘wc_checkout_params’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));add_action(‘woocommerce_apply_billing_country’, ‘calculate’, 10);
add_action(‘wp_ajax_nopriv_woocommerce_apply_district’, ‘calculate’, 10);function calculate() {
if (isset($_POST[‘billing_country’])) {global $woocommerce ;
$order_shipping_total = 0;
$billing_country = $_POST[‘billing_country’];if ( $billing_country == “US” ) {
$order_shipping_total = 25;
} else {
$order_shipping_total = 50;
}
session_start();
$_SESSION[‘val’] = $order_shipping_total;}
}add_action(‘woocommerce_cart_calculate_fees’, ‘wpi_add_ship_fee’);
function wpi_add_ship_fee() {
@session_start();
$customshipcost = $_SESSION[‘val’];
WC()->cart->add_fee(‘Shipping :’, $customshipcost );
}it returns zero right under subtotal on checkout page.
any help will be highly appreciated.
Best regards,
Imran
Hello Guys,
I am using woocommerce v. 2.1.12.
I have the same issue, my client wants. if buyer wants to change billing or checked different shipping address and change shipping country, shipping price must be calculated automatically on checkout page before confirm the order.
Please reply on same, quick reply will be highly appreciated.
Best regards,
Imran
Forum: Plugins
In reply to: [Easy Property Listings] goMasterKey importyes, we did it. They provide xml.
Forum: Plugins
In reply to: [Plugin: WooCommerce] Warning: Division by zeroPlease share the solution, I am facing the same error.
on WooCommerce website.
If I commented this code:
// Extra post classes
$classes = array();
if ( 0 == ( $woocommerce_loop[‘loop’] – 1 ) % $woocommerce_loop[‘columns’] || 1 == $woocommerce_loop[‘columns’] )
$classes[] = ‘first’;
if ( 0 == $woocommerce_loop[‘loop’] % $woocommerce_loop[‘columns’] )
$classes[] = ‘last’;And run the site still not working normally. As I uncommented the code and run the site, It works fine but it is not a solution.
Please advise your test trick that resolve this issue.
Grateful to you,
Imran
Forum: Fixing WordPress
In reply to: WP-Admin Blank White PageForum: Plugins
In reply to: [WooCommerce] Shipping method error.If I have enabled flat rate shipping method, free shipping method and include Australia in both of them then system show me both shipping method but I have to put on country restriction. Hope got my point.
replace this HTACCESS file with default file.
Forum: Plugins
In reply to: [WooCommerce] Missing order numbersaccording to my raw knowledge,
as you mentioned above, it uses wp_posts ID, so if the website honor have posted 12 other posts in post_type posts. After those 12 blog posts he received an order that entitles next available number in WP_POSTS.
Then may be it shows missed numbers… as his client is complaining.
Forum: Plugins
In reply to: [WooCommerce] Shipping percentge chargeyes, you can use flate rate type in shipping section.
Forum: Fixing WordPress
In reply to: Permalinks how tohello there,
Have you got any solutions for this problem?
How can I turn those in nice permalinks?
I have https://www.myURL.com/blog/?p=223
Any direction to the answer would be appreciated.
Thanks in Advance.
Imran