Forum Replies Created

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter mrks.7777

    (@mrks7777)

    it is working now great. thanks
    do i need to do that for all other sites as well?
    i contacted with hostgator as well they just said

    “we have recently added a new firewall, your php scripts will not work temporarily. we are working on a fix for this now. you will just need to patient, nothing is wrong with your site.

    what to do?

    can i please as another question how can i use one gmail account for different domains?

    Thread Starter mrks.7777

    (@mrks7777)

    i tried gmail api still failed
    showing the error message

    Error calling POST https://www.googleapis.com/gmail/v1/users/me/messages/send: (403) Access Not Configured. The API (Gmail API) is not enabled for your project. Please use the Google Developers Console to update your configuration.

    Thread Starter mrks.7777

    (@mrks7777)

    ya i am using my gmail account [email protected]
    security SMTPS
    authentication: oAuth2.0

    Authorized JavaScript origins https://juborajbristol.co.uk
    Authorized redirect URI https://juborajbristol.co.uk/wp-admin/options-general.php?page=postman
    Client ID 339097590995-16vahk6shekdlhr4kcuufei6sg9lnnk9.apps.googleusercontent.com
    Client Secret 097hovMSMSNm33yPBASFbjgj

    in advanced setting the port number is 465
    i have chaged it to 443 as well but no luck

    Thread Starter mrks.7777

    (@mrks7777)

    thanks for quick reply
    https://www.henburybaltihouse.co.uk

    Thread Starter mrks.7777

    (@mrks7777)

    Hi
    I am actually making a site for takeaway restaurant. I am using advanced free shipping as collection. And it is necessary as there are lot more conditions. Any way but the offer 10%discount on every collection. If I can manage that in here then it would be great and solve all the problems.
    Thanks for quick reply

    Thread Starter mrks.7777

    (@mrks7777)

    i found the solution finally. if anybody need then please email me: [redacted]

    Thread Starter mrks.7777

    (@mrks7777)

    i found the solution finally. if anybody need then please email me: [redacted]

    Thread Starter mrks.7777

    (@mrks7777)

    Hi thanks for reply,
    Do you know what, it actually works in mobile phone
    But not with every theme. It is still working in one of my site where I used artificer theme it also worked with some other themes as well. But with maximum themes it does not work in mobile. I don’t know how to fix this. Any help would be appreciable.

    Thanks

    Thread Starter mrks.7777

    (@mrks7777)

    thanks tom for quick reply.
    unfortunately it does not work. i am using vryn-restaurant.1.8 theme it is a child theme of sixteen. it wraps the home page slider with the menu i think. so it is not working. any way i am trying to use another responsive menu for mobile and a vertical menu for laptop users in sidebar.
    thanks again
    i just love mega menu and i definitely tell my friends about it.
    thanks
    mahbub

    Thread Starter mrks.7777

    (@mrks7777)

    Hi
    thanks for quick reply. here is my themes header.php file. can you please tell me which part i need to delete?i tried several times but no luck. thanks again.

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id=”content”>
    *
    * @package Sixteen
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <link rel=”profile” href=”https://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>

    <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>
    <?php if ( get_header_image() ) : ?>
    <div id=”header-image”></div>
    <?php endif; // End header image check. ?>
    <div id=”page” class=”hfeed site”>

    <div id=”top-section”>
    <header id=”masthead” class=”site-header” role=”banner”>

    <div class=”site-branding”>
    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
    </div>

    <?php get_template_part(‘icon’, ‘sociocon’); ?>

    </header><!– #masthead –>

    <div id=”nav-wrapper”>
    <nav id=”site-navigation” class=”main-navigation” role=”navigation”>

    <h1 class=”menu-toggle”><?php _e( ‘Menu’, ‘sixteen’ ); ?></h1>
    <div class=”screen-reader-text skip-link”><?php _e( ‘Skip to content’, ‘sixteen’ ); ?></div>

    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>

    </nav><!– #site-navigation –>
    </div>

    <?php
    if ( of_get_option(‘slide1’,true) == 1 ) :
    get_template_part(‘defaults/slider’);
    else :
    get_template_part(‘slider’, ‘nivo’);
    endif; ?>

    </div><!–#top-section–>

    <div id=”content” class=”site-content container”>

    Thread Starter mrks.7777

    (@mrks7777)

    hi i just found the option woocommerce>settings>product and then need to enable the ejax option. it is really cool.
    but it is not working on mobile. on my iphone 5

    mrks.7777

    (@mrks7777)

    hi i found the solution finally. its working awesome now. if any body wants to know please email me [email protected]

    Thread Starter mrks.7777

    (@mrks7777)

    hi i finally found the culprit. it was wp-supercache plugin. this plugin caches the data and most probably loads quickly but does not allow timed content rule to change the text according to time. as it loads the page from cache.i dont know is there any solution. i removed the wp-supercache now timed content rule working fine.
    thank for this powerful plugin

    mrks.7777

    (@mrks7777)

    hi sanjaisc
    thank you so much for reply. here is my class-wc-shipping-local-delivery.php. i found first two places to copy codes from class-wc-shipping-free-shipping.php. but here is no function called is_available(). where do past the final part? please help please….

    <?php

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    /**
    * Local Delivery Shipping Method
    *
    * A simple shipping method allowing local delivery as a shipping method
    *
    * @class WC_Shipping_Local_Delivery
    * @version 2.3.0
    * @package WooCommerce/Classes/Shipping
    * @author WooThemes
    */
    class WC_Shipping_Local_Delivery extends WC_Shipping_Local_Pickup {

    /**
    * Constructor
    */
    public function __construct() {
    $this->id = ‘local_delivery’;
    $this->method_title = __( ‘Local Delivery’, ‘woocommerce’ );
    $this->method_description = __( ‘Local delivery is a simple shipping method for delivering orders locally.’, ‘woocommerce’ );
    $this->init();
    }

    /**
    * init function.
    */
    public function init() {

    // Load the settings.
    $this->init_form_fields();
    $this->init_settings();

    // Define user set variables
    $this->title = $this->get_option( ‘title’ );
    $this->type = $this->get_option( ‘type’ );
    $this->fee = $this->get_option( ‘fee’ );
    $this->type = $this->get_option( ‘type’ );
    $this->codes = $this->get_option( ‘codes’ );
    $this->availability = $this->get_option( ‘availability’ );
    $this->countries = $this->get_option( ‘countries’ );

    add_action( ‘woocommerce_update_options_shipping_’ . $this->id, array( $this, ‘process_admin_options’ ) );
    }

    /**
    * calculate_shipping function.
    *
    * @param array $package (default: array())
    */
    public function calculate_shipping( $package = array() ) {
    $shipping_total = 0;

    switch ( $this->type ) {
    case ‘fixed’ :
    $shipping_total = $this->fee;
    break;
    case ‘percent’ :
    $shipping_total = $package[‘contents_cost’] * ( $this->fee / 100 );
    break;
    case ‘product’ :
    foreach ( $package[‘contents’] as $item_id => $values ) {
    if ( $values[‘quantity’] > 0 && $values[‘data’]->needs_shipping() ) {
    $shipping_total += $this->fee * $values[‘quantity’];
    }
    }
    break;
    }

    $rate = array(
    ‘id’ => $this->id,
    ‘label’ => $this->title,
    ‘cost’ => $shipping_total
    );

    $this->add_rate( $rate );
    }

    /**
    * init_form_fields function.
    *
    * @access public
    * @return void
    */
    public function init_form_fields() {
    $this->form_fields = array(
    ‘enabled’ => array(
    ‘title’ => __( ‘Enable’, ‘woocommerce’ ),
    ‘type’ => ‘checkbox’,
    ‘label’ => __( ‘Enable local delivery’, ‘woocommerce’ ),
    ‘default’ => ‘no’
    ),
    ‘title’ => array(
    ‘title’ => __( ‘Title’, ‘woocommerce’ ),
    ‘type’ => ‘text’,
    ‘description’ => __( ‘This controls the title which the user sees during checkout.’, ‘woocommerce’ ),
    ‘default’ => __( ‘Local Delivery’, ‘woocommerce’ ),
    ‘desc_tip’ => true,
    ),
    ‘type’ => array(
    ‘title’ => __( ‘Fee Type’, ‘woocommerce’ ),
    ‘type’ => ‘select’,
    ‘class’ => ‘wc-enhanced-select’,
    ‘description’ => __( ‘How to calculate delivery charges’, ‘woocommerce’ ),
    ‘default’ => ‘fixed’,
    ‘options’ => array(
    ‘fixed’ => __( ‘Fixed amount’, ‘woocommerce’ ),
    ‘percent’ => __( ‘Percentage of cart total’, ‘woocommerce’ ),
    ‘product’ => __( ‘Fixed amount per product’, ‘woocommerce’ ),
    ),
    ‘desc_tip’ => true,
    ),
    ‘fee’ => array(
    ‘title’ => __( ‘Delivery Fee’, ‘woocommerce’ ),
    ‘type’ => ‘price’,
    ‘description’ => __( ‘What fee do you want to charge for local delivery, disregarded if you choose free. Leave blank to disable.’, ‘woocommerce’ ),
    ‘default’ => ”,
    ‘desc_tip’ => true,
    ‘placeholder’ => wc_format_localized_price( 0 )
    ),
    ‘codes’ => array(
    ‘title’ => __( ‘Allowed Zip/Post Codes’, ‘woocommerce’ ),
    ‘type’ => ‘text’,
    ‘desc_tip’ => __( ‘What zip/post codes are available for local pickup?’, ‘woocommerce’ ),
    ‘default’ => ”,
    ‘description’ => __( ‘Separate codes with a comma. Accepts wildcards, e.g. P* will match a postcode of PE30. Also accepts a pattern, e.g. NG1___ would match NG1 1AA but not NG10 1AA’, ‘woocommerce’ ),
    ‘placeholder’ => ‘e.g. 12345, 56789’
    ),
    ‘availability’ => array(
    ‘title’ => __( ‘Method availability’, ‘woocommerce’ ),
    ‘type’ => ‘select’,
    ‘default’ => ‘all’,
    ‘class’ => ‘availability wc-enhanced-select’,
    ‘options’ => array(
    ‘all’ => __( ‘All allowed countries’, ‘woocommerce’ ),
    ‘specific’ => __( ‘Specific Countries’, ‘woocommerce’ )
    )
    ),
    ‘countries’ => array(
    ‘title’ => __( ‘Specific Countries’, ‘woocommerce’ ),
    ‘type’ => ‘multiselect’,
    ‘class’ => ‘wc-enhanced-select’,
    ‘css’ => ‘width: 450px;’,
    ‘default’ => ”,
    ‘options’ => WC()->countries->get_shipping_countries(),
    ‘custom_attributes’ => array(
    ‘data-placeholder’ => __( ‘Select some countries’, ‘woocommerce’ )
    )
    )
    );
    }
    }

    mrks.7777

    (@mrks7777)

    HI jdesignz,
    I need minimum order for local delivery for my site deadly. i was trying your code but stack on the last part. cant find the function called is_available()in class-wc-shipping-local-delivery. so where can i paste the last part of your code? please help please i am dying on it. currently i am using woocommerce 2.3.5 and worpress 4.1.1.
    And sanjaisc how you did that?
    I will be waiting for your reply.

    thanks..

Viewing 15 replies - 16 through 30 (of 30 total)