Commit 14eea73a authored by Quan Nguyen's avatar Quan Nguyen

commit code 22/06 9h

parent cb2d2518
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -71,92 +71,85 @@ class RRCKiotvietWcProduct ...@@ -71,92 +71,85 @@ class RRCKiotvietWcProduct
// Get product ID from SKU if created during the importation. // Get product ID from SKU if created during the importation.
if (empty($data['id']) && !empty($data['sku'])) { if (empty($data['id']) && !empty($data['sku'])) {
$product_id = wc_get_product_id_by_sku($data['sku']); $product_id = wc_get_product_id_by_sku($data['sku']);
$id1 = "ID: " . $product_id;
$this->check_update_product_by_config($data); $this->check_update_product_by_config($data);
if ($product_id) { if ($product_id) {
$data['id'] = $product_id; $data['id'] = $product_id;
} }
} }
$object = $this->get_product_object($data);
$id1 = empty($data['id']) . " and " . !empty($data['sku']) . " and " . $data['simple']; if ($object->get_status() == "trash") {
$data['status'] = "trash";
// return (empty($data['id']) && !empty($data['sku'])); }
return $id1;
// $object = $this->get_product_object($data);
// if ($object->get_status() == "trash") {
// $data['status'] = "trash";
// }
// if (is_wp_error($object)) { if (is_wp_error($object)) {
// return $object; return $object;
// } }
// if ('external' === $object->get_type()) { if ('external' === $object->get_type()) {
// unset($data['manage_stock'], $data['stock_status'], $data['backorders'], $data['low_stock_amount']); unset($data['manage_stock'], $data['stock_status'], $data['backorders'], $data['low_stock_amount']);
// } }
// if ('variation' === $object->get_type()) { if ('variation' === $object->get_type()) {
// if (isset($data['status']) && -1 === $data['status']) { if (isset($data['status']) && -1 === $data['status']) {
// $data['status'] = 0; // Variations cannot be drafts - set to private. $data['status'] = 0; // Variations cannot be drafts - set to private.
// } }
// } }
// if ('importing' === $object->get_status()) { if ('importing' === $object->get_status()) {
// $object->set_status('publish'); $object->set_status('publish');
// $object->set_slug(''); $object->set_slug('');
// } }
// $result = $object->set_props(array_diff_key($data, array_flip(array('meta_data', 'raw_image_id', 'raw_gallery_image_ids', 'raw_attributes')))); $result = $object->set_props(array_diff_key($data, array_flip(array('meta_data', 'raw_image_id', 'raw_gallery_image_ids', 'raw_attributes'))));
// if (is_wp_error($result)) { if (is_wp_error($result)) {
// throw new Exception($result->get_error_message()); throw new Exception($result->get_error_message());
// } }
// if ('variation' === $object->get_type()) { if ('variation' === $object->get_type()) {
// $this->set_variation_data($object, $data); $this->set_variation_data($object, $data);
// } else { } else {
// $this->set_product_data($object, $data); $this->set_product_data($object, $data);
// } }
// $this->set_image_data($object, $data); //$this->set_image_data($object, $data);
// $this->set_meta_data($object, $data); $this->set_meta_data($object, $data);
// $object = apply_filters('woocommerce_product_import_pre_insert_product_object', $object, $data); $object = apply_filters('woocommerce_product_import_pre_insert_product_object', $object, $data);
// $object->save(); $object->save();
// //Store stock location //Store stock location
// if($data['manage_stock'] == 1) { if($data['manage_stock'] == 1) {
// $this->set_stock_location_data($data, $object->get_id()); $this->set_stock_location_data($data, $object->get_id());
// } else { } else {
// update_post_meta($object->get_id(), "_stock_status", "instock"); update_post_meta($object->get_id(), "_stock_status", "instock");
// } }
// if ($data['kvProductType'] == "thue-bao"){ if ($data['kvProductType'] == "thue-bao"){
// //enable sub //enable sub
// //enable gift //enable gift
// //set min/max ship //set min/max ship
// //set frequency //set frequency
// //set image //set image
// //create variation //create variation
// $this->create_variation_product($object, $data); $this->create_variation_product($object, $data);
// } }
// // change status when update product trash // change status when update product trash
// do_action('woocommerce_product_import_inserted_product_object', $object, $data); do_action('woocommerce_product_import_inserted_product_object', $object, $data);
// return $object->get_id(); return $object->get_id();
} catch (Exception $e) { } catch (Exception $e) {
return new WP_Error('woocommerce_product_importer_error', $e->getMessage(), array('status' => $e->getCode())); return new WP_Error('woocommerce_product_importer_error', $e->getMessage(), array('status' => $e->getCode()));
} }
...@@ -707,6 +700,10 @@ class RRCKiotvietWcProduct ...@@ -707,6 +700,10 @@ class RRCKiotvietWcProduct
$product->update_meta_data($meta['key'], $meta['value']); $product->update_meta_data($meta['key'], $meta['value']);
} }
} }
//Save addtion product data
$product->update_meta_data('allowsSale', $data['allowsSale']);
$product->update_meta_data('isRewardPoint', $data['isRewardPoint']);
} }
protected function get_attachment_id_from_url($url, $product_id) protected function get_attachment_id_from_url($url, $product_id)
...@@ -1138,18 +1135,18 @@ class RRCKiotvietWcProduct ...@@ -1138,18 +1135,18 @@ class RRCKiotvietWcProduct
public function productSimple($product) public function productSimple($product)
{ {
$productSimple = $product;//$this->import_product($product); $productSimple = $this->import_product($product);
// if (!is_wp_error($productSimple)) { if (!is_wp_error($productSimple)) {
// $this->insertProductMap([ $this->insertProductMap([
// 'product_id' => $productSimple, 'product_id' => $productSimple,
// 'product_kv_id' => $product['kv_id'], 'product_kv_id' => $product['kv_id'],
// 'data_raw' => json_encode($product, JSON_UNESCAPED_UNICODE), 'data_raw' => json_encode($product, JSON_UNESCAPED_UNICODE),
// 'parent' => 0, 'parent' => 0,
// 'retailer' => $this->retailer, 'retailer' => $this->retailer,
// 'created_at' => rrc_kiotviet_sync_get_current_time(), 'created_at' => rrc_kiotviet_sync_get_current_time(),
// 'status' => 1 'status' => 1
// ]); ]);
// } }
return $productSimple; return $productSimple;
} }
......
...@@ -317,8 +317,8 @@ class Rrc_Kiotviet_Sync_Service_Product ...@@ -317,8 +317,8 @@ class Rrc_Kiotviet_Sync_Service_Product
$data['category_ids'] = array(!empty($categorySync[$data['category_kv']]) ? $categorySync[$data['category_kv']] : []); $data['category_ids'] = array(!empty($categorySync[$data['category_kv']]) ? $categorySync[$data['category_kv']] : []);
if ($updateProduct) { if ($updateProduct) {
$id = $this->update($data); // $id = $this->update($data);
array_push($result, $id); // array_push($result, $id);
} else { } else {
$id = $this->add($data); $id = $this->add($data);
array_push($result, $id); array_push($result, $id);
......
...@@ -19,10 +19,9 @@ function productLocation(branchIDParams) { ...@@ -19,10 +19,9 @@ function productLocation(branchIDParams) {
$(".product-detail.product-type-simple form :input").prop("disabled", true); $(".product-detail.product-type-simple form :input").prop("disabled", true);
$(".product-detail.product-type-simple .stock.in-stock").hide(); $(".product-detail.product-type-simple .stock.in-stock").hide();
$(".product-detail.product-type-simple .location-detail .message").text(""); $(".product-detail.product-type-simple .location-detail .message").text("");
$(".product-detail.product-type-simple .location-detail .branch").text(""); $(".product-detail.product-type-simple .location-detail .branch").text("");
return ; return;
} else if (branchIDParams) {
}else if (branchIDParams) {
branchID = branchIDParams; branchID = branchIDParams;
} else { } else {
branchID = localStorage.getItem("address_branch_id_saved"); branchID = localStorage.getItem("address_branch_id_saved");
...@@ -34,10 +33,16 @@ function productLocation(branchIDParams) { ...@@ -34,10 +33,16 @@ function productLocation(branchIDParams) {
branchID = branchID.replace(regexWord, ""); branchID = branchID.replace(regexWord, "");
} }
if($(".product-detail.product-type-simple .slw_item_stock_location option:selected").attr("disabled") !== "disabled"){ if (
$(".product-detail.product-type-simple .slw_item_stock_location option").removeAttr("selected"); $(
".product-detail.product-type-simple .slw_item_stock_location option:selected"
).attr("disabled") !== "disabled"
) {
$(
".product-detail.product-type-simple .slw_item_stock_location option"
).removeAttr("selected");
} }
$( $(
".product-detail.product-type-simple .slw_item_stock_location option[value=" + ".product-detail.product-type-simple .slw_item_stock_location option[value=" +
branchID + branchID +
...@@ -56,14 +61,13 @@ function productLocation(branchIDParams) { ...@@ -56,14 +61,13 @@ function productLocation(branchIDParams) {
).prop("selectedIndex"); ).prop("selectedIndex");
if (indexQualityStock === 0) { if (indexQualityStock === 0) {
$(".product-detail.product-type-simple form").submit(function () { $(".product-detail.product-type-simple form").submit(function () {
return false; return false;
}); });
$(".product-detail.product-type-simple form :input").prop("disabled", true); $(".product-detail.product-type-simple form :input").prop("disabled", true);
$(".product-detail.product-type-simple .stock.in-stock").hide(); $(".product-detail.product-type-simple .stock.in-stock").hide();
$(".product-detail.product-type-simple .location-detail .message").text(""); $(".product-detail.product-type-simple .location-detail .message").text("");
$(".product-detail.product-type-simple .location-detail .branch").text(""); $(".product-detail.product-type-simple .location-detail .branch").text("");
} else { } else {
$(".product.product-detail .product-detail__notification").hide(); $(".product.product-detail .product-detail__notification").hide();
...@@ -97,9 +101,12 @@ function productLocation(branchIDParams) { ...@@ -97,9 +101,12 @@ function productLocation(branchIDParams) {
".product-detail.product-type-simple .product-detail__notification-delivery" ".product-detail.product-type-simple .product-detail__notification-delivery"
).addClass("d-none"); ).addClass("d-none");
} else { } else {
$(".product-detail.product-type-simple .location-detail .message").text(
$(".product-detail.product-type-simple .location-detail .message").text(""); ""
$(".product-detail.product-type-simple .location-detail .branch").text(""); );
$(".product-detail.product-type-simple .location-detail .branch").text(
""
);
$(".product-detail.product-type-simple .stock.in-stock").text( $(".product-detail.product-type-simple .stock.in-stock").text(
$(".modal-visible .product_at").text() + $(".modal-visible .product_at").text() +
" " + " " +
...@@ -359,6 +366,9 @@ function handleSelectDistrict( ...@@ -359,6 +366,9 @@ function handleSelectDistrict(
localStorage.setItem("branch_list", branchList.html()); localStorage.setItem("branch_list", branchList.html());
onDistrictChange(); onDistrictChange();
$("#modalLocation .modal-body .modal-error").addClass(
"invisible"
);
} else if (r == -1) { } else if (r == -1) {
// Shiping other list branch // Shiping other list branch
$('select[name="calc_other_shipping_provinces"]').removeClass("d-none"); $('select[name="calc_other_shipping_provinces"]').removeClass("d-none");
...@@ -574,7 +584,6 @@ function handleSelectDistrict( ...@@ -574,7 +584,6 @@ function handleSelectDistrict(
let branchID = listBranchAddress.eq(0).attr("id"); let branchID = listBranchAddress.eq(0).attr("id");
let addressTo = await fetchMovies(detailAddress); let addressTo = await fetchMovies(detailAddress);
for (let i = 0; i < listBranchAddress.length; i++) { for (let i = 0; i < listBranchAddress.length; i++) {
let latData = listBranchAddress.eq(i).attr("data-lat"); let latData = listBranchAddress.eq(i).attr("data-lat");
let lngData = listBranchAddress.eq(i).attr("data-lng"); let lngData = listBranchAddress.eq(i).attr("data-lng");
...@@ -595,7 +604,9 @@ function handleSelectDistrict( ...@@ -595,7 +604,9 @@ function handleSelectDistrict(
} }
if (smallestDistance < 100000) { if (smallestDistance < 100000) {
$("#modalLocation .modal-body .modal-error").addClass("invisible"); $("#modalLocation .modal-body .modal-error").addClass(
"invisible"
);
localStorage.setItem("address_branch_id_saved", branchID); localStorage.setItem("address_branch_id_saved", branchID);
localStorage.setItem("address_available", true); localStorage.setItem("address_available", true);
if ( if (
...@@ -608,7 +619,9 @@ function handleSelectDistrict( ...@@ -608,7 +619,9 @@ function handleSelectDistrict(
"invisible" "invisible"
); );
localStorage.removeItem("address_branch_id_saved"); localStorage.removeItem("address_branch_id_saved");
if ($(".product.product-detail.product-type-simple ").length > 0) { if (
$(".product.product-detail.product-type-simple ").length > 0
) {
productLocation("notAvailable"); productLocation("notAvailable");
} }
} }
......
$(document).ready(function () {
// Add border to selected item
const subsSelectSection = $('.subs__select-section');
subsSelectSection.each(function () {
const items = $(this).find('.subs__item-container')
items.click(function () {
items.each(function () {
$(this).removeClass('subs__item-container--selected');
});
$(this).addClass('subs__item-container--selected');
});
});
// input
const inputAttributePaBag = $('input[name="attribute_pa_bag"]');
const inputVariationId = $('input[name="variation_id"]');
const inputFrequency = $('input[name="frequency"]');
const inputNumOfBag = $('input[name="num_of_bag"]');
const totalPrice = $('#totalPrice');
const btnContinue = $('#btnContinue');
const totalSection = $('#total');
const formCheckOut = $('form.js-form-checkout').first();
const summaryBag = $('#summaryBag');
const summaryBagTitle = summaryBag.find('.subs__text--primary');
const summaryBagDesc = summaryBag.find('.subs__text--secondary');
const summaryFreq = $('#summaryFreq');
const summaryFreqTitle = summaryFreq.find('.js-freq');
const selectBag = $('#selectBag');
const bags = selectBag.find('.subs__item-container');
const selectFrequency = $('#selectFrequency');
const frequencies = selectFrequency.find('.subs__item-container');
btnContinue.click(function () {
selectBag.addClass('d-none');
selectFrequency.removeClass('d-none');
$(this).addClass('d-none');
});
bags.click(function () {
const title = $(this).find('.subs__text--primary').text().trim();
const desc = $(this).find('.subs__text--secondary').text().trim();
const price = $(this).data('price');
summaryBagTitle.text(title);
summaryBagDesc.text(desc);
totalPrice.text(price);
summaryBag.removeClass('d-none');
btnContinue.removeClass('d-none');
totalSection.removeClass('d-none');
inputAttributePaBag.val($(this).data('slug'));
inputVariationId.val($(this).data('id'));
inputNumOfBag.val($(this).data('num-of-bag'));
});
frequencies.click(function () {
const title = $(this).find('.subs__text--primary').text().trim().toLowerCase();
summaryFreqTitle.text(title);
summaryFreq.removeClass('d-none');
formCheckOut.removeClass('d-none');
inputFrequency.val($(this).data('value'));
});
});
...@@ -277,10 +277,15 @@ function rangrangcoffee_scripts() { ...@@ -277,10 +277,15 @@ function rangrangcoffee_scripts() {
wp_enqueue_script( 'product-detail', get_template_directory_uri() . "/assets/js/product-detail.js", array(), 'all' ); wp_enqueue_script( 'product-detail', get_template_directory_uri() . "/assets/js/product-detail.js", array(), 'all' );
} }
// TODO: Not use
if ( is_page_template( 'templates/template-selection-subscription-plan.php' ) ) { if ( is_page_template( 'templates/template-selection-subscription-plan.php' ) ) {
wp_enqueue_script( 'coffee-sub', get_template_directory_uri() . "/assets/js/coffee-sub.js", array(), 'all' ); wp_enqueue_script( 'coffee-sub', get_template_directory_uri() . "/assets/js/coffee-sub.js", array(), 'all' );
} }
if ( is_page_template( 'templates/template-select-coffee-subscription.php' ) ) {
wp_enqueue_script( 'coffee-sub', get_template_directory_uri() . "/assets/js/select-coffee-subscription.js", array(), 'all' );
}
if ( is_page_template( 'templates/template-gift-details.php' ) ) { if ( is_page_template( 'templates/template-gift-details.php' ) ) {
wp_enqueue_script( 'gift-sub', get_template_directory_uri() . "/assets/js/gift-sub.js", array(), 'all' ); wp_enqueue_script( 'gift-sub', get_template_directory_uri() . "/assets/js/gift-sub.js", array(), 'all' );
} }
......
...@@ -44,7 +44,7 @@ get_header(); ...@@ -44,7 +44,7 @@ get_header();
<?php endif; ?> <?php endif; ?>
<div class="w-30 brew-guides-detail__right"> <div class="w-30 brew-guides-detail__right">
<h6 class="font-weight-bold text-uppercase"><?php pll_e( "what you'll need" ); ?> </h6> <!-- <h6 class="font-weight-bold text-uppercase"><?php pll_e( "what you'll need" ); ?> </h6> -->
<?php <?php
$rows = get_field( 'you_will_need' ); ?> $rows = get_field( 'you_will_need' ); ?>
<?php if ( $rows ) { ?> <?php if ( $rows ) { ?>
...@@ -68,8 +68,8 @@ get_header(); ...@@ -68,8 +68,8 @@ get_header();
<h6 class="font-weight-bold text-uppercase"><?php pll_e( "have questions" ) ?> </h6> <h6 class="font-weight-bold text-uppercase"><?php pll_e( "have questions" ) ?> </h6>
<p class="brew-guides-detail__text--sidebar-content"> <p class="brew-guides-detail__text--sidebar-content">
<?php pll_e( "Ask our experts at" ) ?> <?php pll_e( "Ask our experts at" ) ?>
<a href="mailto:support@rangrangcoffee.vn?subject=Suport" title="Email Support" <a href="mailto:<?php the_field('support_link'); ?>?subject=Suport" title="Email Support"
class="brew-guides-detail--link">support@rangrangcoffee.vn</a> class="brew-guides-detail--link"><?php the_field('support_link'); ?></a>
</p> </p>
<?php if ( is_active_sidebar( 'sidebar-right' ) ) : ?> <?php if ( is_active_sidebar( 'sidebar-right' ) ) : ?>
<?php get_sidebar( 'sidebar-right' ); ?> <?php get_sidebar( 'sidebar-right' ); ?>
......
...@@ -11,7 +11,8 @@ get_header(); ?> ...@@ -11,7 +11,8 @@ get_header(); ?>
<main id="primary" class="site-main"> <main id="primary" class="site-main">
<?php while ( have_posts() ) { <?php while ( have_posts() ) {
the_post(); the_post();
$btn_html = '<a class="text-uppercase btn-custom btn-primary d-block mv-auto" href="/job-apply/?job_id=' . get_the_ID() . '">' . pll__( 'apply for this job' ) . '</a>'; $permalink_job_apply = get_the_permalink(pll_get_post(get_page_by_path('job-apply')->ID));
$btn_html = '<a class="text-uppercase btn-custom btn-primary d-block mv-auto" href="' . $permalink_job_apply . '?job_id=' . get_the_ID() . '">' . pll__( 'apply for this job' ) . '</a>';
?> ?>
<div class="container job-container my-5"> <div class="container job-container my-5">
<div class="row justify-content-center"> <div class="row justify-content-center">
......
<?php
/**
* Template Name: Select coffee subscription Template
*
* Template for selecting coffee subscription
*
* @package Rang_Rang_Coffee
*/
get_header();
?>
<?php
// https://coffee-shop.dev/select-coffee-subscription/?product_id=1765
$product_id = isset( $_GET['product_id'] ) ? absint( $_GET['product_id'] ) : null;
if (!$product_id) {
echo "<script>window.location.href='" . home_url() . "';</script>";
}
$product = wc_get_product( $product_id );
// Check product is subscribable
$is_enable_subscription = get_field( 'enable_subscription', $product_id );
function tscs_input_hidden( $name, $value ) { ?>
<input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>">
<?php
}
function tscs_render_bag( $product ) {
if ( $product instanceof WC_Product ) {
$price = $product->get_price();
$bag_types = get_field( 'bag_types', $product->get_id() );
foreach ( $bag_types as $bag_type ) {
$num_of_bag = absint( $bag_type['num_of_bag'] );
$image_url = $bag_type['bag_image']['sizes']['thumbnail'];
$text_primary = $num_of_bag . ' ' . rrc_plural( pll__( 'bag' ), pll__( 'bags' ), $num_of_bag );
$real_price = $price * $num_of_bag;
$currency_symbol = get_woocommerce_currency_symbol();
?>
<div class="col-md-6 col-12 p-2">
<div class="subs__item-container"
data-id="0"
data-price="<?php echo "$real_price$currency_symbol" ?>"
data-num-of-bag="<?php echo $num_of_bag ?>">
<img class="subs__item-img" src="<?php echo $image_url ?>" alt="<?php _e( $text_primary . ' image' ) ?>">
<h5 class="subs__text--primary"><?php echo $text_primary ?> </h5>
<!-- <p class="subs__text--secondary">desc</p> -->
<!-- <p class="subs__text--price"><?php echo wc_price( $real_price ) ?></p> -->
</div>
</div>
<?php
}
}
}
function tscs_render_frequency( $product_id ) {
$data_to_render = array(
array(
'value' => '1',
'name' => 'every week',
'image' => 'everyweek',
),
array(
'value' => '2',
'name' => 'every other week',
'image' => 'everyotherweek',
),
array(
'value' => '3',
'name' => 'every 3 weeks',
'image' => 'every3week',
),
array(
'value' => '4',
'name' => 'every 4 weeks',
'image' => 'every4week',
),
);
foreach ( $data_to_render as $value ) {
$img_name = $value['image'];
$img_url = get_theme_file_uri( "/assets/img/weeks/$img_name.svg" );
?>
<div class="col-md-6 col-12 p-2">
<div class="subs__item-container" data-value="<?php echo $value['value']; ?>">
<img class="subs__item-img" src="<?php echo $img_url; ?>" alt="*">
<h5 class="subs__text--primary"><?php echo $value['name']; ?></h5>
</div>
</div>
<?php
}
}
?>
<main id="primary" class="site-main">
<?php if ( $is_enable_subscription ) { ?>
<section class="subs">
<div class="container my-5">
<div class="row">
<div class="col-12 col-md-8 order-1 order-md-0 my-3 subs__container-select">
<!-- select bag -->
<div class="subs__select-section" id="selectBag">
<h2
class="subs__title mt-0 mb-3"><?php pll_e( "How many bag(s) per shipment?" ) ?></h2>
<div class="row px-3">
<?php tscs_render_bag( $product ); ?>
</div>
</div>
<!-- select freq -->
<div class="subs__select-section d-none" id="selectFrequency">
<h2
class="subs__title mt-0 mb-3"><?php pll_e( "How often do you need more coffee?" ) ?></h2>
<div class="row px-3">
<?php tscs_render_frequency( $product_id ); ?>
</div>
</div>
</div>
<!-- Summary -->
<div class="col-12 col-md-4 order-0 order-md-1 my-3 subs__container-summary">
<h3 class="subs__title mt-0 mb-3"> <?php pll_e( 'Subscription Summary' ); ?> </h3>
<!-- section summary -->
<div class="subs__section-summary">
<div class="subs__text--tertiary"><?php pll_e( 'coffee type' ); ?></div>
<div class="d-flex justify-content-between my-2">
<h4 class="subs__text--primary my-0"><?php echo esc_html( $product->get_title() ); ?></h4>
<a
href="<?php echo get_the_permalink( pll_get_post( get_page_by_path( 'coffee-subscriptions' )->ID ) ) ?>"
class="custom-link"><?php pll_e( 'Change' ); ?></a>
</div>
<p class="subs__text--secondary mb-2">
<?php echo esc_html( $product->get_short_description() ); ?>
</p>
</div>
<!-- / section summary -->
<!-- summary bag -->
<div class="subs__section-summary d-none" id="summaryBag">
<div class="subs__text--tertiary"><?php pll_e( 'bag(s)' ); ?></div>
<div class="d-flex justify-content-between my-2">
<h4 class="subs__text--primary my-0">.</h4>
<a class="custom-link"
href="<?php echo $_SERVER['REQUEST_URI']; ?>"><?php pll_e( 'Change' ); ?></a>
</div>
<p class="subs__text--secondary mb-2">.</p>
</div>
<!-- summary freq -->
<div class="subs__section-summary d-none" id="summaryFreq">
<div class="subs__text--tertiary"><?php pll_e( 'frequency' ); ?></div>
<div class="d-flex justify-content-between my-2">
<h4 class="subs__text--primary my-0 js-freq">.</h4>
</div>
<p class="subs__text--secondary mb-2">
<?php pll_e( "We will mail out your first shipment" ) ?>
<b><?php echo rrc_tomorrow_date(); ?></b> <?php pll_e( "and" ) ?> <span
class="js-freq">.</span> <?php pll_e( "thereafter" ) ?>
</p>
</div>
<div class="d-none" id="total">
<hr class="mx-0"/>
<div class="d-flex justify-content-between mb-4 d-none">
<div>
<div class="subs__text--primary"><?php pll_e( "Total Per Shipment" ) ?></div>
<div class="subs__text--secondary"><?php pll_e( "shipping included" ) ?></div>
</div>
<div class="subs__text--price font-nomal" id="totalPrice">.</div>
</div>
</div>
<button class="btn-custom btn-primary w-100 d-none" id="btnContinue"><?php pll_e( "Continue" ) ?></button>
<form
action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>"
class="mt-2 js-form-checkout d-none"
enctype="multipart/form-data" method="post">
<?php
// tscs_input_hidden( 'product_id', $product_id );
tscs_input_hidden( 'quantity', 1 );
tscs_input_hidden( 'add-to-cart', $product_id );
tscs_input_hidden( 'order_type', 'coffee_subscription' );
tscs_input_hidden( 'frequency', '' );
tscs_input_hidden( 'num_of_bag', '' );
?>
<!-- num_of_month -->
<div class="form-group">
<label class="f16 mb-2" for="num-of-month"><?php pll_e( "Month(s)" ) ?></label>
<select name="num_of_month" class="form-control" id="num-of-month">
<option value="1"><?php echo "1 " . pll__( "Month" ) ?></option>
<option value="3"><?php echo "3 " . pll__( "Months" ) ?></option>
<option value="6"><?php echo "6 " . pll__( "Months" ) ?></option>
<option value="12"><?php echo "12 " . pll__( "Months" ) ?></option>
</select>
</div>
<button type="submit" class="btn-custom btn-primary w-100">
<?php pll_e( "Proceed To Checkout" ) ?>
</button>
<p class="subs__text--secondary mt-1 mb-0"><?php pll_e( "Pause, skip, or cancel anytime" ) ?></p>
</form>
</div>
</div>
</div>
</section>
<?php } else { ?>
<div class="container my-4">
<div class="text-center">
<h3><?php pll_e( "This product not enable subscription" ); ?></h3>
<a href="<?php echo pll_home_url() ?>" class="btn-outline text-uppercase mt-4"><?php pll_e( "Home" ); ?></a>
</div>
</div>
<?php } ?>
</main>
<?php
get_footer();
<?php <?php
add_action( 'init', function () { add_action( 'init', function () {
pll_register_string( 'rangrangcoffee_0', "%s quantity" ); pll_register_string( 'rangrangcoffee_0', "%s quantity" );
pll_register_string( 'rangrangcoffee_1', "1 Username or email address" ); pll_register_string( 'rangrangcoffee_1', "1 Username or email address" );
pll_register_string( 'rangrangcoffee_2', "A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset." ); pll_register_string( 'rangrangcoffee_2', "A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset." );
pll_register_string( 'rangrangcoffee_3', "API Key" ); pll_register_string( 'rangrangcoffee_3', "API Key" );
pll_register_string( 'rangrangcoffee_4', "About Us" ); pll_register_string( 'rangrangcoffee_4', "About Us" );
pll_register_string( 'rangrangcoffee_5', "About this item" ); pll_register_string( 'rangrangcoffee_5', "Account Information" );
pll_register_string( 'rangrangcoffee_6', "Account Information" ); pll_register_string( 'rangrangcoffee_6', "Account Menu" );
pll_register_string( 'rangrangcoffee_7', "Account Menu" ); pll_register_string( 'rangrangcoffee_7', "Add payment method" );
pll_register_string( 'rangrangcoffee_8', "Add payment method" ); pll_register_string( 'rangrangcoffee_8', "Add to cart" );
pll_register_string( 'rangrangcoffee_9', "Add to cart" ); pll_register_string( 'rangrangcoffee_9', "Add widgets here." );
pll_register_string( 'rangrangcoffee_10', "Add widgets here." ); pll_register_string( 'rangrangcoffee_10', "Additional information" );
pll_register_string( 'rangrangcoffee_11', "Additional information" ); pll_register_string( 'rangrangcoffee_11', "All" );
pll_register_string( 'rangrangcoffee_12', "All" ); pll_register_string( 'rangrangcoffee_12', "Already have an account?" );
pll_register_string( 'rangrangcoffee_13', "Already have an account?" ); pll_register_string( 'rangrangcoffee_13', "Amount" );
pll_register_string( 'rangrangcoffee_14', "Amount" ); pll_register_string( 'rangrangcoffee_14', "Application authentication request" );
pll_register_string( 'rangrangcoffee_15', "Application authentication request" ); pll_register_string( 'rangrangcoffee_15', "Apply coupon" );
pll_register_string( 'rangrangcoffee_16', "Apply coupon" ); pll_register_string( 'rangrangcoffee_16', "Approve" );
pll_register_string( 'rangrangcoffee_17', "Approve" ); pll_register_string( 'rangrangcoffee_17', "Ask our experts at" );
pll_register_string( 'rangrangcoffee_18', "Ask our experts at" ); pll_register_string( 'rangrangcoffee_18', "Author" );
pll_register_string( 'rangrangcoffee_19', "Author" ); pll_register_string( 'rangrangcoffee_19', "Available downloads" );
pll_register_string( 'rangrangcoffee_20', "Available downloads" ); pll_register_string( 'rangrangcoffee_20', "Available on backorder" );
pll_register_string( 'rangrangcoffee_21', "Available on backorder" ); pll_register_string( 'rangrangcoffee_21', "Awaiting product image" );
pll_register_string( 'rangrangcoffee_22', "Awaiting product image" ); pll_register_string( 'rangrangcoffee_22', "Back" );
pll_register_string( 'rangrangcoffee_23', "Back" ); pll_register_string( 'rangrangcoffee_23', "Back To Home" );
pll_register_string( 'rangrangcoffee_24', "Back To Home" ); pll_register_string( 'rangrangcoffee_24', "Bag Size" );
pll_register_string( 'rangrangcoffee_25', "Bag Size" ); pll_register_string( 'rangrangcoffee_25', "Become Subscriber Widget" );
pll_register_string( 'rangrangcoffee_26', "Become Subscriber Widget" ); pll_register_string( 'rangrangcoffee_26', "Become a Blue Bottle Coffee Subscriber" );
pll_register_string( 'rangrangcoffee_27', "Become a Blue Bottle Coffee Subscriber" ); pll_register_string( 'rangrangcoffee_27', "Become a RangRangCoffee Subscriber" );
pll_register_string( 'rangrangcoffee_28', "Become a RangRangCoffee Subscriber" ); pll_register_string( 'rangrangcoffee_28', "Benefits" );
pll_register_string( 'rangrangcoffee_29', "Benefits" ); pll_register_string( 'rangrangcoffee_29', "Billing address" );
pll_register_string( 'rangrangcoffee_30', "Billing address" ); pll_register_string( 'rangrangcoffee_30', "Branch" );
pll_register_string( 'rangrangcoffee_31', "Branch" ); pll_register_string( 'rangrangcoffee_31', "Branch Categories Menu" );
pll_register_string( 'rangrangcoffee_32', "Branch Categories Menu" ); pll_register_string( 'rangrangcoffee_32', "Brew Guides" );
pll_register_string( 'rangrangcoffee_33', "Brew Guides" ); pll_register_string( 'rangrangcoffee_33', "BrewGuide Right Sidebar Hero Section Widget" );
pll_register_string( 'rangrangcoffee_34', "BrewGuide Right Sidebar Hero Section Widget" ); pll_register_string( 'rangrangcoffee_34', "BrewGuide Right Sidebar Widget" );
pll_register_string( 'rangrangcoffee_35', "BrewGuide Right Sidebar Widget" ); pll_register_string( 'rangrangcoffee_35', "Browse products" );
pll_register_string( 'rangrangcoffee_36', "Browse products" ); pll_register_string( 'rangrangcoffee_36', "Button Label:" );
pll_register_string( 'rangrangcoffee_37', "Button Label:" ); pll_register_string( 'rangrangcoffee_37', "Button Link URL:" );
pll_register_string( 'rangrangcoffee_38', "Button Link URL:" ); pll_register_string( 'rangrangcoffee_38', "Button Link label:" );
pll_register_string( 'rangrangcoffee_39', "Button Link label:" ); pll_register_string( 'rangrangcoffee_39', "Button URL:" );
pll_register_string( 'rangrangcoffee_40', "Button URL:" ); pll_register_string( 'rangrangcoffee_40', "Cancel" );
pll_register_string( 'rangrangcoffee_41', "Cancel" ); pll_register_string( 'rangrangcoffee_41', "Carrer Benefits Section Widget" );
pll_register_string( 'rangrangcoffee_42', "Carrer Benefits Section Widget" ); pll_register_string( 'rangrangcoffee_42', "Carrer Coffee Education Section Widget" );
pll_register_string( 'rangrangcoffee_43', "Carrer Coffee Education Section Widget" ); pll_register_string( 'rangrangcoffee_43', "Carrer Coffee Shop Life Section Widget" );
pll_register_string( 'rangrangcoffee_44', "Carrer Coffee Shop Life Section Widget" ); pll_register_string( 'rangrangcoffee_44', "Carrer Guiding Principles Section Widget" );
pll_register_string( 'rangrangcoffee_45', "Carrer Guiding Principles Section Widget" ); pll_register_string( 'rangrangcoffee_45', "Carrer Our Impact Section Widget" );
pll_register_string( 'rangrangcoffee_46', "Carrer Our Impact Section Widget" ); pll_register_string( 'rangrangcoffee_46', "Cart Summary" );
pll_register_string( 'rangrangcoffee_47', "Cart Summary" ); pll_register_string( 'rangrangcoffee_47', "Change" );
pll_register_string( 'rangrangcoffee_48', "Change" ); pll_register_string( 'rangrangcoffee_48', "Change Icon" );
pll_register_string( 'rangrangcoffee_49', "Change Icon" ); pll_register_string( 'rangrangcoffee_49', "Check your email address for you new password." );
pll_register_string( 'rangrangcoffee_50', "Check your email address for you new password." ); pll_register_string( 'rangrangcoffee_50', "Choose Gift Subscription Widget" );
pll_register_string( 'rangrangcoffee_51', "Choose Gift Subscription Widget" ); pll_register_string( 'rangrangcoffee_51', "Choose a branch near you for convenient delivery. If there is no branch near you, please choose another." );
pll_register_string( 'rangrangcoffee_52', "Choose a branch near you for convenient delivery. If there is no branch near you, please choose another." ); pll_register_string( 'rangrangcoffee_52', "Choose a delivery area" );
pll_register_string( 'rangrangcoffee_53', "Choose a delivery area" ); pll_register_string( 'rangrangcoffee_53', "Choose location" );
pll_register_string( 'rangrangcoffee_54', "Choose location" ); pll_register_string( 'rangrangcoffee_54', "Choose your whole bean coffee type" );
pll_register_string( 'rangrangcoffee_55', "Choose your whole bean coffee type" ); pll_register_string( 'rangrangcoffee_55', "City" );
pll_register_string( 'rangrangcoffee_56', "City" ); pll_register_string( 'rangrangcoffee_56', "Clear" );
pll_register_string( 'rangrangcoffee_57', "Clear" ); pll_register_string( 'rangrangcoffee_57', "Clear all filter" );
pll_register_string( 'rangrangcoffee_58', "Clear all filter" ); pll_register_string( 'rangrangcoffee_58', "Close" );
pll_register_string( 'rangrangcoffee_59', "Close" ); pll_register_string( 'rangrangcoffee_59', "Coffee Education" );
pll_register_string( 'rangrangcoffee_60', "Coffee Education" ); pll_register_string( 'rangrangcoffee_60', "Coffee Match Favorite Section Widget" );
pll_register_string( 'rangrangcoffee_61', "Coffee Match Favorite Section Widget" ); pll_register_string( 'rangrangcoffee_61', "Coffee Match Quote Section Widget" );
pll_register_string( 'rangrangcoffee_62', "Coffee Match Quote Section Widget" ); pll_register_string( 'rangrangcoffee_62', "Coffee Schedule And Delivery Section Widget" );
pll_register_string( 'rangrangcoffee_63', "Coffee Schedule And Delivery Section Widget" ); pll_register_string( 'rangrangcoffee_63', "Coffee Subscription" );
pll_register_string( 'rangrangcoffee_64', "Coffee Subscription" ); pll_register_string( 'rangrangcoffee_64', "Comments are closed." );
pll_register_string( 'rangrangcoffee_65', "Comments are closed." ); pll_register_string( 'rangrangcoffee_65', "Confirm new password" );
pll_register_string( 'rangrangcoffee_66', "Confirm new password" ); pll_register_string( 'rangrangcoffee_66', "Contact Us" );
pll_register_string( 'rangrangcoffee_67', "Contact Us" ); pll_register_string( 'rangrangcoffee_67', "Content" );
pll_register_string( 'rangrangcoffee_68', "Content" ); pll_register_string( 'rangrangcoffee_68', "Content Noficiation:" );
pll_register_string( 'rangrangcoffee_69', "Content Noficiation:" ); pll_register_string( 'rangrangcoffee_69', "Content Section" );
pll_register_string( 'rangrangcoffee_70', "Content Section" ); pll_register_string( 'rangrangcoffee_70', "Content:" );
pll_register_string( 'rangrangcoffee_71', "Content:" ); pll_register_string( 'rangrangcoffee_71', "Continue" );
pll_register_string( 'rangrangcoffee_72', "Continue" ); pll_register_string( 'rangrangcoffee_72', "Continue Shopping" );
pll_register_string( 'rangrangcoffee_73', "Continue Shopping" ); pll_register_string( 'rangrangcoffee_73', "Create an account?" );
pll_register_string( 'rangrangcoffee_74', "Create an account?" ); pll_register_string( 'rangrangcoffee_74', "Current password" );
pll_register_string( 'rangrangcoffee_75', "Current password" ); pll_register_string( 'rangrangcoffee_75', "Custom" );
pll_register_string( 'rangrangcoffee_76', "Custom" ); pll_register_string( 'rangrangcoffee_76', "Date" );
pll_register_string( 'rangrangcoffee_77', "Date" ); pll_register_string( 'rangrangcoffee_77', "Date:" );
pll_register_string( 'rangrangcoffee_78', "Date:" ); pll_register_string( 'rangrangcoffee_78', "Delivery" );
pll_register_string( 'rangrangcoffee_79', "Delivery" ); pll_register_string( 'rangrangcoffee_79', "Delivery Date" );
pll_register_string( 'rangrangcoffee_80', "Delivery Date" ); pll_register_string( 'rangrangcoffee_80', "Delivery date:" );
pll_register_string( 'rangrangcoffee_81', "Delivery date:" ); pll_register_string( 'rangrangcoffee_81', "Deny" );
pll_register_string( 'rangrangcoffee_82', "Deny" ); pll_register_string( 'rangrangcoffee_82', "Description:" );
pll_register_string( 'rangrangcoffee_83', "Description:" ); pll_register_string( 'rangrangcoffee_83', "Distance Setting Section" );
pll_register_string( 'rangrangcoffee_84', "Distance Setting Section" ); pll_register_string( 'rangrangcoffee_84', "District" );
pll_register_string( 'rangrangcoffee_85', "District" ); pll_register_string( 'rangrangcoffee_85', "Don't have an account?" );
pll_register_string( 'rangrangcoffee_86', "Don't have an account?" ); pll_register_string( 'rangrangcoffee_86', "Done" );
pll_register_string( 'rangrangcoffee_87', "Done" ); pll_register_string( 'rangrangcoffee_87', "Each Subscription" );
pll_register_string( 'rangrangcoffee_88', "Each Subscription" ); pll_register_string( 'rangrangcoffee_88', "Edit" );
pll_register_string( 'rangrangcoffee_89', "Edit" ); pll_register_string( 'rangrangcoffee_89', "Edit cart" );
pll_register_string( 'rangrangcoffee_90', "Edit cart" ); pll_register_string( 'rangrangcoffee_90', "Email" );
pll_register_string( 'rangrangcoffee_91', "Email" ); pll_register_string( 'rangrangcoffee_91', "Email Address" );
pll_register_string( 'rangrangcoffee_92', "Email Address" ); pll_register_string( 'rangrangcoffee_92', "Email:" );
pll_register_string( 'rangrangcoffee_93', "Email:" ); pll_register_string( 'rangrangcoffee_93', "Empty your cart" );
pll_register_string( 'rangrangcoffee_94', "Empty your cart" ); pll_register_string( 'rangrangcoffee_94', "Enable gift" );
pll_register_string( 'rangrangcoffee_95', "Enable gift" ); pll_register_string( 'rangrangcoffee_95', "Enable if is product for coffee match" );
pll_register_string( 'rangrangcoffee_96', "Enable if is product for coffee match" ); pll_register_string( 'rangrangcoffee_96', "Enable if this attribute used to search" );
pll_register_string( 'rangrangcoffee_97', "Enable if this attribute used to search" ); pll_register_string( 'rangrangcoffee_97', "Enable subscription" );
pll_register_string( 'rangrangcoffee_98', "Enable subscription" ); pll_register_string( 'rangrangcoffee_98', "Enter Confirm Password" );
pll_register_string( 'rangrangcoffee_99', "Enter Confirm Password" ); pll_register_string( 'rangrangcoffee_99', "Enter Email" );
pll_register_string( 'rangrangcoffee_100', "Enter Email" ); pll_register_string( 'rangrangcoffee_100', "Enter First name" );
pll_register_string( 'rangrangcoffee_101', "Enter First name" ); pll_register_string( 'rangrangcoffee_101', "Enter Last name" );
pll_register_string( 'rangrangcoffee_102', "Enter Last name" ); pll_register_string( 'rangrangcoffee_102', "Enter Password" );
pll_register_string( 'rangrangcoffee_103', "Enter Password" ); pll_register_string( 'rangrangcoffee_103', "Enter Phone Number" );
pll_register_string( 'rangrangcoffee_104', "Enter Phone Number" ); pll_register_string( 'rangrangcoffee_104', "Enter User name" );
pll_register_string( 'rangrangcoffee_105', "Enter User name" ); pll_register_string( 'rangrangcoffee_105', "Enter a e-mail address." );
pll_register_string( 'rangrangcoffee_106', "Enter a e-mail address." ); pll_register_string( 'rangrangcoffee_106', "Enter a new password below." );
pll_register_string( 'rangrangcoffee_107', "Enter a new password below." ); pll_register_string( 'rangrangcoffee_107', "Every 3 weeks" );
pll_register_string( 'rangrangcoffee_108', "Every 3 weeks" ); pll_register_string( 'rangrangcoffee_108', "Every 4 weeks" );
pll_register_string( 'rangrangcoffee_109', "Every 4 weeks" ); pll_register_string( 'rangrangcoffee_109', "Every other week" );
pll_register_string( 'rangrangcoffee_110', "Every other week" ); pll_register_string( 'rangrangcoffee_110', "Every week" );
pll_register_string( 'rangrangcoffee_111', "Every week" ); pll_register_string( 'rangrangcoffee_111', "FAQ" );
pll_register_string( 'rangrangcoffee_112', "FAQ" ); pll_register_string( 'rangrangcoffee_112', "FAQ Categories Menu" );
pll_register_string( 'rangrangcoffee_113', "FAQ Categories Menu" ); pll_register_string( 'rangrangcoffee_113', "FILTER BY:" );
pll_register_string( 'rangrangcoffee_114', "FILTER BY:" ); pll_register_string( 'rangrangcoffee_114', "Facebook URL:" );
pll_register_string( 'rangrangcoffee_115', "Facebook URL:" ); pll_register_string( 'rangrangcoffee_115', "Filter by order type" );
pll_register_string( 'rangrangcoffee_116', "Filter by order type" ); pll_register_string( 'rangrangcoffee_116', "Filter by region" );
pll_register_string( 'rangrangcoffee_117', "Filter by region" ); pll_register_string( 'rangrangcoffee_117', "Filters" );
pll_register_string( 'rangrangcoffee_118', "Filters" ); pll_register_string( 'rangrangcoffee_118', "First" );
pll_register_string( 'rangrangcoffee_119', "First" ); pll_register_string( 'rangrangcoffee_119', "First Name" );
pll_register_string( 'rangrangcoffee_120', "First Name" ); pll_register_string( 'rangrangcoffee_120', "First name" );
pll_register_string( 'rangrangcoffee_121', "First name" ); pll_register_string( 'rangrangcoffee_121', "Footer Bottom" );
pll_register_string( 'rangrangcoffee_122', "Footer Bottom" ); pll_register_string( 'rangrangcoffee_122', "Footer Left Widget" );
pll_register_string( 'rangrangcoffee_123', "Footer Left Widget" ); pll_register_string( 'rangrangcoffee_123', "Footer Menu 1" );
pll_register_string( 'rangrangcoffee_124', "Footer Menu 1" ); pll_register_string( 'rangrangcoffee_124', "Footer Menu 2" );
pll_register_string( 'rangrangcoffee_125', "Footer Menu 2" ); pll_register_string( 'rangrangcoffee_125', "Footer Menu 3" );
pll_register_string( 'rangrangcoffee_126', "Footer Menu 3" ); pll_register_string( 'rangrangcoffee_126', "Footer Menu 4" );
pll_register_string( 'rangrangcoffee_127', "Footer Menu 4" ); pll_register_string( 'rangrangcoffee_127', "Footer Menu bottom" );
pll_register_string( 'rangrangcoffee_128', "Footer Menu bottom" ); pll_register_string( 'rangrangcoffee_128', "Footer Reversed Text" );
pll_register_string( 'rangrangcoffee_129', "Footer Reversed Text" ); pll_register_string( 'rangrangcoffee_129', "Footer Social" );
pll_register_string( 'rangrangcoffee_130', "Footer Social" ); pll_register_string( 'rangrangcoffee_130', "Footer Social Right Widget" );
pll_register_string( 'rangrangcoffee_131', "Footer Social Right Widget" ); pll_register_string( 'rangrangcoffee_131', "Forgot Password?" );
pll_register_string( 'rangrangcoffee_132', "Forgot Password?" ); pll_register_string( 'rangrangcoffee_132', "Frequency" );
pll_register_string( 'rangrangcoffee_133', "Frequency" ); pll_register_string( 'rangrangcoffee_133', "Full Street Address" );
pll_register_string( 'rangrangcoffee_134', "Full Street Address" ); pll_register_string( 'rangrangcoffee_134', "Gift" );
pll_register_string( 'rangrangcoffee_135', "Gift" ); pll_register_string( 'rangrangcoffee_135', "Gift Card Details" );
pll_register_string( 'rangrangcoffee_136', "Gift Card Details" ); pll_register_string( 'rangrangcoffee_136', "Gift Card Section Widget" );
pll_register_string( 'rangrangcoffee_137', "Gift Card Section Widget" ); pll_register_string( 'rangrangcoffee_137', "Gift Message" );
pll_register_string( 'rangrangcoffee_138', "Gift Message" ); pll_register_string( 'rangrangcoffee_138', "Gift Subscription" );
pll_register_string( 'rangrangcoffee_139', "Gift Subscription" ); pll_register_string( 'rangrangcoffee_139', "Gift Subscription Details Type Widget" );
pll_register_string( 'rangrangcoffee_140', "Gift Subscription Details Type Widget" ); pll_register_string( 'rangrangcoffee_140', "Give a Subscription" );
pll_register_string( 'rangrangcoffee_141', "Give a Subscription" ); pll_register_string( 'rangrangcoffee_141', "Go back to all job postings" );
pll_register_string( 'rangrangcoffee_142', "Go back to all job postings" ); pll_register_string( 'rangrangcoffee_142', "Go somewhere" );
pll_register_string( 'rangrangcoffee_143', "Go somewhere" ); pll_register_string( 'rangrangcoffee_143', "Guest Menu" );
pll_register_string( 'rangrangcoffee_144', "Guest Menu" ); pll_register_string( 'rangrangcoffee_144', "Guiding Principles" );
pll_register_string( 'rangrangcoffee_145', "Guiding Principles" ); pll_register_string( 'rangrangcoffee_145', "Have a coupon?" );
pll_register_string( 'rangrangcoffee_146', "Have a coupon?" ); pll_register_string( 'rangrangcoffee_146', "Help With" );
pll_register_string( 'rangrangcoffee_147', "Help With" ); pll_register_string( 'rangrangcoffee_147', "Help with" );
pll_register_string( 'rangrangcoffee_148', "Help with" ); pll_register_string( 'rangrangcoffee_148', "Hero Center Section Widget" );
pll_register_string( 'rangrangcoffee_149', "Hero Center Section Widget" ); pll_register_string( 'rangrangcoffee_149', "Hero Coffee Match Section Widget" );
pll_register_string( 'rangrangcoffee_150', "Hero Coffee Match Section Widget" ); pll_register_string( 'rangrangcoffee_150', "Hero Fourth Section Widget" );
pll_register_string( 'rangrangcoffee_151', "Hero Fourth Section Widget" ); pll_register_string( 'rangrangcoffee_151', "Hero Right Section Widget" );
pll_register_string( 'rangrangcoffee_152', "Hero Right Section Widget" ); pll_register_string( 'rangrangcoffee_152', "Hero Second Section Widget" );
pll_register_string( 'rangrangcoffee_153', "Hero Second Section Widget" ); pll_register_string( 'rangrangcoffee_153', "Hero Section" );
pll_register_string( 'rangrangcoffee_154', "Hero Section" ); pll_register_string( 'rangrangcoffee_154', "Hero Section Widget" );
pll_register_string( 'rangrangcoffee_155', "Hero Section Widget" ); pll_register_string( 'rangrangcoffee_155', "Hero Welcome Kit Section Widget" );
pll_register_string( 'rangrangcoffee_156', "Hero Welcome Kit Section Widget" ); pll_register_string( 'rangrangcoffee_156', "Hero title only section Widget" );
pll_register_string( 'rangrangcoffee_157', "Hero title only section Widget" ); pll_register_string( 'rangrangcoffee_157', "Hero top in gift subscription page" );
pll_register_string( 'rangrangcoffee_158', "Hero top in gift subscription page" ); pll_register_string( 'rangrangcoffee_158', "Homepage Introduction Section Widget" );
pll_register_string( 'rangrangcoffee_159', "Homepage Introduction Section Widget" ); pll_register_string( 'rangrangcoffee_159', "How many bags per shipment?" );
pll_register_string( 'rangrangcoffee_160', "How many bags per shipment?" ); pll_register_string( 'rangrangcoffee_160', "How many do you want to gift?" );
pll_register_string( 'rangrangcoffee_161', "How many do you want to gift?" ); pll_register_string( 'rangrangcoffee_161', "How often do you need more coffee?" );
pll_register_string( 'rangrangcoffee_162', "How often do you need more coffee?" ); pll_register_string( 'rangrangcoffee_162', "How should we deliver your gift?" );
pll_register_string( 'rangrangcoffee_163', "How should we deliver your gift?" ); pll_register_string( 'rangrangcoffee_163', "I'm not sure. skip." );
pll_register_string( 'rangrangcoffee_164', "I'm not sure. skip." ); pll_register_string( 'rangrangcoffee_164', "Icon not found" );
pll_register_string( 'rangrangcoffee_165', "Icon not found" ); pll_register_string( 'rangrangcoffee_165', "If you change the address. Some products in the cart may be deleted. Do you want to continue choosing a new address?" );
pll_register_string( 'rangrangcoffee_166', "If you change the address. Some products in the cart may be deleted. Do you want to continue choosing a new address?" ); pll_register_string( 'rangrangcoffee_166', "If you have a coupon code, please apply it below." );
pll_register_string( 'rangrangcoffee_167', "If you have a coupon code, please apply it below." ); pll_register_string( 'rangrangcoffee_167', "If you want to send this gift subscription to multiple recipients, enter each individual email followed by a comma. Max of 50 people." );
pll_register_string( 'rangrangcoffee_168', "If you want to send this gift subscription to multiple recipients, enter each individual email followed by a comma. Max of 50 people." ); pll_register_string( 'rangrangcoffee_168', "Instagram URL:" );
pll_register_string( 'rangrangcoffee_169', "Instagram URL:" ); pll_register_string( 'rangrangcoffee_169', "Invalid e-mail address" );
pll_register_string( 'rangrangcoffee_170', "Invalid e-mail address" ); pll_register_string( 'rangrangcoffee_170', "Invalid e-mail address." );
pll_register_string( 'rangrangcoffee_171', "Invalid e-mail address." ); pll_register_string( 'rangrangcoffee_171', "Invalid phone number" );
pll_register_string( 'rangrangcoffee_172', "Invalid phone number" ); pll_register_string( 'rangrangcoffee_172', "Is Coffee Match" );
pll_register_string( 'rangrangcoffee_173', "Is Coffee Match" ); pll_register_string( 'rangrangcoffee_173', "Is title text big than description" );
pll_register_string( 'rangrangcoffee_174', "Is title text big than description" ); pll_register_string( 'rangrangcoffee_174', "It seems we can't find what you're looking for. Perhaps searching can help." );
pll_register_string( 'rangrangcoffee_175', "It seems we can't find what you're looking for. Perhaps searching can help." ); pll_register_string( 'rangrangcoffee_175', "Item added to cart" );
pll_register_string( 'rangrangcoffee_176', "Item added to cart" ); pll_register_string( 'rangrangcoffee_176', "Last" );
pll_register_string( 'rangrangcoffee_177', "Last" ); pll_register_string( 'rangrangcoffee_177', "Last Name" );
pll_register_string( 'rangrangcoffee_178', "Last Name" ); pll_register_string( 'rangrangcoffee_178', "Last name" );
pll_register_string( 'rangrangcoffee_179', "Last name" ); pll_register_string( 'rangrangcoffee_179', "Learn more" );
pll_register_string( 'rangrangcoffee_180', "Learn more" ); pll_register_string( 'rangrangcoffee_180', "Left Sidebar" );
pll_register_string( 'rangrangcoffee_181', "Left Sidebar" ); pll_register_string( 'rangrangcoffee_181', "Life at Blue Bottle" );
pll_register_string( 'rangrangcoffee_182', "Life at Blue Bottle" ); pll_register_string( 'rangrangcoffee_182', "Line Widget" );
pll_register_string( 'rangrangcoffee_183', "Line Widget" ); pll_register_string( 'rangrangcoffee_183', "Link URL:" );
pll_register_string( 'rangrangcoffee_184', "Link URL:" ); pll_register_string( 'rangrangcoffee_184', "Link label:" );
pll_register_string( 'rangrangcoffee_185', "Link label:" ); pll_register_string( 'rangrangcoffee_185', "Location" );
pll_register_string( 'rangrangcoffee_186', "Location" ); pll_register_string( 'rangrangcoffee_186', "Logged in as" );
pll_register_string( 'rangrangcoffee_187', "Logged in as" ); pll_register_string( 'rangrangcoffee_187', "Login" );
pll_register_string( 'rangrangcoffee_188', "Login" ); pll_register_string( 'rangrangcoffee_188', "Logout" );
pll_register_string( 'rangrangcoffee_189', "Logout" ); pll_register_string( 'rangrangcoffee_189', "Lost your password? Please enter your username or email address. You will receive a link to create a new password via email." );
pll_register_string( 'rangrangcoffee_190', "Lost your password? Please enter your username or email address. You will receive a link to create a new password via email." ); pll_register_string( 'rangrangcoffee_190', "Mail Notification Widget" );
pll_register_string( 'rangrangcoffee_191', "Mail Notification Widget" ); pll_register_string( 'rangrangcoffee_191', "Make it personal: Add a message!" );
pll_register_string( 'rangrangcoffee_192', "Make it personal: Add a message!" ); pll_register_string( 'rangrangcoffee_192', "Map" );
pll_register_string( 'rangrangcoffee_193', "Map" ); pll_register_string( 'rangrangcoffee_193', "Max distance (km) to shipping" );
pll_register_string( 'rangrangcoffee_194', "Max distance (km) to shipping" ); pll_register_string( 'rangrangcoffee_194', "Max of 50 people" );
pll_register_string( 'rangrangcoffee_195', "Max of 50 people" ); pll_register_string( 'rangrangcoffee_195', "Max shipment" );
pll_register_string( 'rangrangcoffee_196', "Max shipment" ); pll_register_string( 'rangrangcoffee_196', "Min shipment" );
pll_register_string( 'rangrangcoffee_197', "Min shipment" ); pll_register_string( 'rangrangcoffee_197', "More" );
pll_register_string( 'rangrangcoffee_198', "More" ); pll_register_string( 'rangrangcoffee_198', "My account" );
pll_register_string( 'rangrangcoffee_199', "My account" ); pll_register_string( 'rangrangcoffee_199', "N/A" );
pll_register_string( 'rangrangcoffee_200', "N/A" ); pll_register_string( 'rangrangcoffee_200', "Name author" );
pll_register_string( 'rangrangcoffee_201', "Name author" ); pll_register_string( 'rangrangcoffee_201', "Name author:" );
pll_register_string( 'rangrangcoffee_202', "Name author:" ); pll_register_string( 'rangrangcoffee_202', "New password" );
pll_register_string( 'rangrangcoffee_203', "New password" ); pll_register_string( 'rangrangcoffee_203', "New payment methods can only be added during checkout. Please contact us if you require assistance." );
pll_register_string( 'rangrangcoffee_204', "New payment methods can only be added during checkout. Please contact us if you require assistance." ); pll_register_string( 'rangrangcoffee_204', "Next Shipping:" );
pll_register_string( 'rangrangcoffee_205', "Next Shipping:" ); pll_register_string( 'rangrangcoffee_205', "Next:" );
pll_register_string( 'rangrangcoffee_206', "Next:" ); pll_register_string( 'rangrangcoffee_206', "No Branchs Found." );
pll_register_string( 'rangrangcoffee_207', "No Branchs Found." ); pll_register_string( 'rangrangcoffee_207', "No Brew Guides Found." );
pll_register_string( 'rangrangcoffee_208', "No Brew Guides Found." ); pll_register_string( 'rangrangcoffee_208', "No FAQs Found." );
pll_register_string( 'rangrangcoffee_209', "No FAQs Found." ); pll_register_string( 'rangrangcoffee_209', "No data!" );
pll_register_string( 'rangrangcoffee_210', "No data!" ); pll_register_string( 'rangrangcoffee_210', "No downloads available yet." );
pll_register_string( 'rangrangcoffee_211', "No downloads available yet." ); pll_register_string( 'rangrangcoffee_211', "No job postings match these filters" );
pll_register_string( 'rangrangcoffee_212', "No job postings match these filters" ); pll_register_string( 'rangrangcoffee_212', "No jobs available" );
pll_register_string( 'rangrangcoffee_213', "No jobs available" ); pll_register_string( 'rangrangcoffee_213', "No saved methods found." );
pll_register_string( 'rangrangcoffee_214', "No saved methods found." ); pll_register_string( 'rangrangcoffee_214', "Normal" );
pll_register_string( 'rangrangcoffee_215', "Normal" ); pll_register_string( 'rangrangcoffee_215', "Note" );
pll_register_string( 'rangrangcoffee_216', "Note" ); pll_register_string( 'rangrangcoffee_216', "Note:" );
pll_register_string( 'rangrangcoffee_217', "Note:" ); pll_register_string( 'rangrangcoffee_217', "Nothing Found" );
pll_register_string( 'rangrangcoffee_218', "Nothing Found" ); pll_register_string( 'rangrangcoffee_218', "Now accepting" );
pll_register_string( 'rangrangcoffee_219', "Now accepting" ); pll_register_string( 'rangrangcoffee_219', "Num of shipment" );
pll_register_string( 'rangrangcoffee_220', "Num of shipment" ); pll_register_string( 'rangrangcoffee_220', "Number of Recipients" );
pll_register_string( 'rangrangcoffee_221', "Number of Recipients" ); pll_register_string( 'rangrangcoffee_221', "Number of products in stock:" );
pll_register_string( 'rangrangcoffee_222', "Number of products in stock:" ); pll_register_string( 'rangrangcoffee_222', "Number of recipients" );
pll_register_string( 'rangrangcoffee_223', "Number of recipients" ); pll_register_string( 'rangrangcoffee_223', "Number of recipients:" );
pll_register_string( 'rangrangcoffee_224', "Number of recipients:" ); pll_register_string( 'rangrangcoffee_224', "One-time Purchase" );
pll_register_string( 'rangrangcoffee_225', "One-time Purchase" ); pll_register_string( 'rangrangcoffee_225', "Oops something went wrong." );
pll_register_string( 'rangrangcoffee_226', "Oops something went wrong." ); pll_register_string( 'rangrangcoffee_226', "Oops! That page can be found." );
pll_register_string( 'rangrangcoffee_227', "Oops! That page can be found." ); pll_register_string( 'rangrangcoffee_227', "Order" );
pll_register_string( 'rangrangcoffee_228', "Order" ); pll_register_string( 'rangrangcoffee_228', "Order History" );
pll_register_string( 'rangrangcoffee_229', "Order History" ); pll_register_string( 'rangrangcoffee_229', "Order Success" );
pll_register_string( 'rangrangcoffee_230', "Order Success" ); pll_register_string( 'rangrangcoffee_230', "Order delivered from branch:" );
pll_register_string( 'rangrangcoffee_231', "Order delivered from branch:" ); pll_register_string( 'rangrangcoffee_231', "Order number:" );
pll_register_string( 'rangrangcoffee_232', "Order number:" ); pll_register_string( 'rangrangcoffee_232', "Order success failed" );
pll_register_string( 'rangrangcoffee_233', "Order success failed" ); pll_register_string( 'rangrangcoffee_233', "Order total" );
pll_register_string( 'rangrangcoffee_234', "Order total" ); pll_register_string( 'rangrangcoffee_234', "Order type" );
pll_register_string( 'rangrangcoffee_235', "Order type" ); pll_register_string( 'rangrangcoffee_235', "Order updates" );
pll_register_string( 'rangrangcoffee_236', "Order updates" ); pll_register_string( 'rangrangcoffee_236', "Other" );
pll_register_string( 'rangrangcoffee_237', "Other" ); pll_register_string( 'rangrangcoffee_237', "Other Province / City" );
pll_register_string( 'rangrangcoffee_238', "Other Province / City" ); pll_register_string( 'rangrangcoffee_238', "Our Impact" );
pll_register_string( 'rangrangcoffee_239', "Our Impact" ); pll_register_string( 'rangrangcoffee_239', "Our Support Widget" );
pll_register_string( 'rangrangcoffee_240', "Our Support Widget" ); pll_register_string( 'rangrangcoffee_240', "Overview" );
pll_register_string( 'rangrangcoffee_241', "Overview" ); pll_register_string( 'rangrangcoffee_241', "Pages:" );
pll_register_string( 'rangrangcoffee_242', "Pages:" ); pll_register_string( 'rangrangcoffee_242', "Password" );
pll_register_string( 'rangrangcoffee_243', "Password" ); pll_register_string( 'rangrangcoffee_243', "Password are not matching" );
pll_register_string( 'rangrangcoffee_244', "Password are not matching" ); pll_register_string( 'rangrangcoffee_244', "Password change" );
pll_register_string( 'rangrangcoffee_245', "Password change" ); pll_register_string( 'rangrangcoffee_245', "Password is required." );
pll_register_string( 'rangrangcoffee_246', "Password is required." ); pll_register_string( 'rangrangcoffee_246', "Password reset email has been sent." );
pll_register_string( 'rangrangcoffee_247', "Password reset email has been sent." ); pll_register_string( 'rangrangcoffee_247', "Password should be at least 8 characters in length and should include at least one upper case letter, one number, and one special character." );
pll_register_string( 'rangrangcoffee_248', "Password should be at least 8 characters in length and should include at least one upper case letter, one number, and one special character." ); pll_register_string( 'rangrangcoffee_248', "Pause, skip, or cancel anytime" );
pll_register_string( 'rangrangcoffee_249', "Pause, skip, or cancel anytime" ); pll_register_string( 'rangrangcoffee_249', "Pay" );
pll_register_string( 'rangrangcoffee_250', "Pay" ); pll_register_string( 'rangrangcoffee_250', "Payment method:" );
pll_register_string( 'rangrangcoffee_251', "Payment method:" ); pll_register_string( 'rangrangcoffee_251', "Phone" );
pll_register_string( 'rangrangcoffee_252', "Phone" ); pll_register_string( 'rangrangcoffee_252', "Phone Number" );
pll_register_string( 'rangrangcoffee_253', "Phone Number" ); pll_register_string( 'rangrangcoffee_253', "Please change" );
pll_register_string( 'rangrangcoffee_254', "Please change" ); pll_register_string( 'rangrangcoffee_254', "Please check your email to confirm" );
pll_register_string( 'rangrangcoffee_255', "Please check your email to confirm" ); pll_register_string( 'rangrangcoffee_255', "Please note these gift cards are redeemable for online purchases only. It cannot be redeemed in cafes or through our mobile app." );
pll_register_string( 'rangrangcoffee_256', "Please note these gift cards are redeemable for online purchases only. It cannot be redeemed in cafes or through our mobile app." ); pll_register_string( 'rangrangcoffee_256', "Please select" );
pll_register_string( 'rangrangcoffee_257', "Please select" ); pll_register_string( 'rangrangcoffee_257', "Please select your address so that we can provide accurate prices and promotions" );
pll_register_string( 'rangrangcoffee_258', "Please select your address so that we can provide accurate prices and promotions" ); pll_register_string( 'rangrangcoffee_258', "Position" );
pll_register_string( 'rangrangcoffee_259', "Position" ); pll_register_string( 'rangrangcoffee_259', "Position Author:" );
pll_register_string( 'rangrangcoffee_260', "Position Author:" ); pll_register_string( 'rangrangcoffee_260', "Postal Code" );
pll_register_string( 'rangrangcoffee_261', "Postal Code" ); pll_register_string( 'rangrangcoffee_261', "Previous:" );
pll_register_string( 'rangrangcoffee_262', "Previous:" ); pll_register_string( 'rangrangcoffee_262', "Price" );
pll_register_string( 'rangrangcoffee_263', "Price" ); pll_register_string( 'rangrangcoffee_263', "Primary" );
pll_register_string( 'rangrangcoffee_264', "Primary" ); pll_register_string( 'rangrangcoffee_264', "Proceed To Checkout" );
pll_register_string( 'rangrangcoffee_265', "Proceed To Checkout" ); pll_register_string( 'rangrangcoffee_265', "Product" );
pll_register_string( 'rangrangcoffee_266', "Product" ); pll_register_string( 'rangrangcoffee_266', "Products are out of stock at the branch" );
pll_register_string( 'rangrangcoffee_267', "Products are out of stock at the branch" ); pll_register_string( 'rangrangcoffee_267', "Provide a mailing address and we’ll arrange for immediate delivery of coffee to the lucky recipient, shipped out as soon as?" );
pll_register_string( 'rangrangcoffee_268', "Provide a mailing address and we’ll arrange for immediate delivery of coffee to the lucky recipient, shipped out as soon as?" ); pll_register_string( 'rangrangcoffee_268', "Province / City" );
pll_register_string( 'rangrangcoffee_269', "Province / City" ); pll_register_string( 'rangrangcoffee_269', "Purchase location" );
pll_register_string( 'rangrangcoffee_270', "Purchase location" ); pll_register_string( 'rangrangcoffee_270', "Question" );
pll_register_string( 'rangrangcoffee_271', "Question" ); pll_register_string( 'rangrangcoffee_271', "Rang Rang’s Recommendation" );
pll_register_string( 'rangrangcoffee_272', "Rang Rang’s Recommendation" ); pll_register_string( 'rangrangcoffee_272', "Re-enter new password" );
pll_register_string( 'rangrangcoffee_273', "Re-enter new password" ); pll_register_string( 'rangrangcoffee_273', "Recent orders" );
pll_register_string( 'rangrangcoffee_274', "Recent orders" ); pll_register_string( 'rangrangcoffee_274', "Recipient Name" );
pll_register_string( 'rangrangcoffee_275', "Recipient Name" ); pll_register_string( 'rangrangcoffee_275', "Related products" );
pll_register_string( 'rangrangcoffee_276', "Remove Icon" ); pll_register_string( 'rangrangcoffee_276', "Remove Icon" );
pll_register_string( 'rangrangcoffee_277', "Remove this item" ); pll_register_string( 'rangrangcoffee_277', "Remove this item" );
pll_register_string( 'rangrangcoffee_278', "Reset password" ); pll_register_string( 'rangrangcoffee_278', "Reset password" );
...@@ -382,58 +381,57 @@ add_action( 'init', function () { ...@@ -382,58 +381,57 @@ add_action( 'init', function () {
pll_register_string( 'rangrangcoffee_378', "You are already logged in" ); pll_register_string( 'rangrangcoffee_378', "You are already logged in" );
pll_register_string( 'rangrangcoffee_379', "You are already logged in." ); pll_register_string( 'rangrangcoffee_379', "You are already logged in." );
pll_register_string( 'rangrangcoffee_380', "You have not set up this type of address yet. Please add" ); pll_register_string( 'rangrangcoffee_380', "You have not set up this type of address yet. Please add" );
pll_register_string( 'rangrangcoffee_381', "You might also like" ); pll_register_string( 'rangrangcoffee_381', "Your Address" );
pll_register_string( 'rangrangcoffee_382', "Your Address" ); pll_register_string( 'rangrangcoffee_382', "Your Mail:" );
pll_register_string( 'rangrangcoffee_383', "Your Mail:" ); pll_register_string( 'rangrangcoffee_383', "Your Name (as will appear on note)" );
pll_register_string( 'rangrangcoffee_384', "Your Name (as will appear on note)" ); pll_register_string( 'rangrangcoffee_384', "Your area is not available" );
pll_register_string( 'rangrangcoffee_385', "Your area is not available" ); pll_register_string( 'rangrangcoffee_385', "Your favorite product could not be found" );
pll_register_string( 'rangrangcoffee_386', "Your favorite product could not be found" ); pll_register_string( 'rangrangcoffee_386', "Your new password" );
pll_register_string( 'rangrangcoffee_387', "Your new password" ); pll_register_string( 'rangrangcoffee_387', "Your new password is:" );
pll_register_string( 'rangrangcoffee_388', "Your new password is:" ); pll_register_string( 'rangrangcoffee_388', "Your order" );
pll_register_string( 'rangrangcoffee_389', "Your order" ); pll_register_string( 'rangrangcoffee_389', "Your shopping cart is empty!" );
pll_register_string( 'rangrangcoffee_390', "Your shopping cart is empty!" ); pll_register_string( 'rangrangcoffee_390', "and" );
pll_register_string( 'rangrangcoffee_391', "and" ); pll_register_string( 'rangrangcoffee_391', "apply" );
pll_register_string( 'rangrangcoffee_392', "apply" ); pll_register_string( 'rangrangcoffee_392', "apply for this job" );
pll_register_string( 'rangrangcoffee_393', "apply for this job" ); pll_register_string( 'rangrangcoffee_393', "bag(s)" );
pll_register_string( 'rangrangcoffee_394', "bag(s)" ); pll_register_string( 'rangrangcoffee_394', "benefits" );
pll_register_string( 'rangrangcoffee_395', "benefits" ); pll_register_string( 'rangrangcoffee_395', "brew time" );
pll_register_string( 'rangrangcoffee_396', "brew time" ); pll_register_string( 'rangrangcoffee_396', "characters left" );
pll_register_string( 'rangrangcoffee_397', "characters left" ); pll_register_string( 'rangrangcoffee_397', "check out" );
pll_register_string( 'rangrangcoffee_398', "check out" ); pll_register_string( 'rangrangcoffee_398', "coffee type" );
pll_register_string( 'rangrangcoffee_399', "coffee type" ); pll_register_string( 'rangrangcoffee_399', "description" );
pll_register_string( 'rangrangcoffee_400', "description" ); pll_register_string( 'rangrangcoffee_400', "find your favorite" );
pll_register_string( 'rangrangcoffee_401', "find your favorite" ); pll_register_string( 'rangrangcoffee_401', "frequency" );
pll_register_string( 'rangrangcoffee_402', "frequency" ); pll_register_string( 'rangrangcoffee_402', "get directions" );
pll_register_string( 'rangrangcoffee_403', "get directions" ); pll_register_string( 'rangrangcoffee_403', "get matched" );
pll_register_string( 'rangrangcoffee_404', "get matched" ); pll_register_string( 'rangrangcoffee_404', "get started" );
pll_register_string( 'rangrangcoffee_405', "get started" ); pll_register_string( 'rangrangcoffee_405', "have questions" );
pll_register_string( 'rangrangcoffee_406', "have questions" ); pll_register_string( 'rangrangcoffee_406', "here" );
pll_register_string( 'rangrangcoffee_407', "here" ); pll_register_string( 'rangrangcoffee_407', "hours this week" );
pll_register_string( 'rangrangcoffee_408', "hours this week" ); pll_register_string( 'rangrangcoffee_408', "in your cart" );
pll_register_string( 'rangrangcoffee_409', "in your cart" ); pll_register_string( 'rangrangcoffee_409', "input api key" );
pll_register_string( 'rangrangcoffee_410', "input api key" ); pll_register_string( 'rangrangcoffee_410', "of" );
pll_register_string( 'rangrangcoffee_411', "of" ); pll_register_string( 'rangrangcoffee_411', "per shipment" );
pll_register_string( 'rangrangcoffee_412', "per shipment" ); pll_register_string( 'rangrangcoffee_412', "results" );
pll_register_string( 'rangrangcoffee_413', "results" ); pll_register_string( 'rangrangcoffee_413', "search openings" );
pll_register_string( 'rangrangcoffee_414', "search openings" ); pll_register_string( 'rangrangcoffee_414', "shipping included" );
pll_register_string( 'rangrangcoffee_415', "shipping included" ); pll_register_string( 'rangrangcoffee_415', "shop now" );
pll_register_string( 'rangrangcoffee_416', "shop now" ); pll_register_string( 'rangrangcoffee_416', "shopping cart" );
pll_register_string( 'rangrangcoffee_417', "shopping cart" ); pll_register_string( 'rangrangcoffee_417', "sign up now" );
pll_register_string( 'rangrangcoffee_418', "sign up now" ); pll_register_string( 'rangrangcoffee_418', "start here" );
pll_register_string( 'rangrangcoffee_419', "start here" ); pll_register_string( 'rangrangcoffee_419', "sub title" );
pll_register_string( 'rangrangcoffee_420', "sub title" ); pll_register_string( 'rangrangcoffee_420', "subscribe now" );
pll_register_string( 'rangrangcoffee_421', "subscribe now" ); pll_register_string( 'rangrangcoffee_421', "subscription offer" );
pll_register_string( 'rangrangcoffee_422', "subscription offer" ); pll_register_string( 'rangrangcoffee_422', "team" );
pll_register_string( 'rangrangcoffee_423', "team" ); pll_register_string( 'rangrangcoffee_423', "text" );
pll_register_string( 'rangrangcoffee_424', "text" ); pll_register_string( 'rangrangcoffee_424', "thereafter" );
pll_register_string( 'rangrangcoffee_425', "thereafter" ); pll_register_string( 'rangrangcoffee_425', "title" );
pll_register_string( 'rangrangcoffee_426', "title" ); pll_register_string( 'rangrangcoffee_426', "try this coffee" );
pll_register_string( 'rangrangcoffee_427', "try this coffee" ); pll_register_string( 'rangrangcoffee_427', "visit us" );
pll_register_string( 'rangrangcoffee_428', "visit us" ); pll_register_string( 'rangrangcoffee_428', "welcome kit subscription" );
pll_register_string( 'rangrangcoffee_429', "welcome kit subscription" ); pll_register_string( 'rangrangcoffee_429', "what you'll need" );
pll_register_string( 'rangrangcoffee_430', "what you'll need" ); pll_register_string( 'rangrangcoffee_430', "work type" );
pll_register_string( 'rangrangcoffee_431', "work type" ); pll_register_string( 'rangrangcoffee_431', "would like to connect to your store" );
pll_register_string( 'rangrangcoffee_432', "would like to connect to your store" ); pll_register_string( 'rangrangcoffee_432', "your delivery area" );
pll_register_string( 'rangrangcoffee_433', "your delivery area" ); pll_register_string( 'rangrangcoffee_433', "your delivery branch" );
pll_register_string( 'rangrangcoffee_434', "your delivery branch" );
} ); } );
...@@ -37,80 +37,12 @@ if (isset($_GET['search'])) { ...@@ -37,80 +37,12 @@ if (isset($_GET['search'])) {
?> ?>
<div class="col-lg-7 col-12 order-1 order-lg-0 d-none d-md-block"> <div class="col-lg-7 col-12 order-1 order-lg-0 d-none d-md-block">
<ul class="sub-nav__menu d-flex ">
<li class="sub-nav__menu-item all"><a href="<?php echo $url ?>">
<?php pll_e('Shop all') ?>
</a></li>
<?php
$product_categories_less = array_slice($product_categories, 0, 3);
$product_categories_more = array();
foreach ($product_categories_less as $key => $category) {
if ($category_slug_params === $category->slug) {
?>
<li class='sub-nav__menu-item active'>
<a href="<?php echo $url ?>?type=<?php echo $category->slug ?>">
<?php echo $category->name ?>
</a>
</li>
<?php
} else {
?>
<li class="sub-nav__menu-item">
<a href="<?php echo $url ?>?type=<?php echo $category->slug ?>">
<?php echo $category->name ?>
</a>
</li>
<?php
}
}
?>
<?php
if (count($product_categories) > 3) {
$product_categories_more = array_slice($product_categories, 3);
?>
<li class="sub-nav__menu-item ">
<div class="dropdown dropdown-custom d-lg-inline-block sub-nav__menu-more ">
<div class=" dropdown-toggle position-relative " data-toggle="dropdown">
<?php pll_e('More') ?>
</div>
<ul class="dropdown-menu">
<?php
foreach ($product_categories_more as $key => $category) {
?>
<li>
<a href="<?php echo $url ?>?type=<?php echo $category->slug ?>">
<?php echo $category->name ?>
</a>
</li>
<?php
}
?>
</ul>
</div>
</li>
<?php } ?>
</ul>
</div> </div>
<div class="col-lg-5 col-12 order-0 order-lg-1"> <div class="col-lg-5 col-12 order-0 order-lg-1">
<div class="d-flex align-items-center justify-content-lg-end justify-content-center"> <div class="d-flex align-items-center justify-content-lg-end justify-content-center">
<form role="search" method="get" class="sub-nav__search" action="<?php echo wc_get_page_permalink('shop'); ?>">
<i class="fal fa-search"></i>
<?php
if (isset($_GET['search'])) {
?>
<input type="search" name="search" value="<?php echo $product_name_params ?> " placeholder="<?php pll_e('Search Store') ?>" />
<?php
} else {
?>
<input type="search" name="search" placeholder="<?php pll_e('Search Store') ?>" />
<?php
}
?>
</form>
<?php <?php
......
...@@ -66,7 +66,7 @@ if ( ! isset( $_GET['urlFrom'] ) ) { ...@@ -66,7 +66,7 @@ if ( ! isset( $_GET['urlFrom'] ) ) {
} else { } else {
?> ?>
<script> <script>
window.location.href = '/shop'; window.location.href = "<?php echo wc_get_page_permalink( 'shop' ); ?>";
</script> </script>
<?php <?php
} ?> } ?>
...@@ -182,7 +182,6 @@ $longitude_list = get_meta_value_term_meta( '_longitude' ); ...@@ -182,7 +182,6 @@ $longitude_list = get_meta_value_term_meta( '_longitude' );
</div> </div>
<div class="col-12 d-none"> <div class="col-12 d-none">
<ul class="list-branch-address"> <ul class="list-branch-address">
<?php <?php
foreach ( foreach (
......
...@@ -28,7 +28,95 @@ $longitude_list = get_meta_value_term_meta('_longitude'); ...@@ -28,7 +28,95 @@ $longitude_list = get_meta_value_term_meta('_longitude');
$product_id = $product->get_id(); $product_id = $product->get_id();
?> ?>
<div class="sub-nav__modal modal fade" id="modalLocation">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header align-items-center justify-content-between">
<div class="space"></div>
<div class="text-center font-bold">
<?php pll_e('Choose a delivery area') ?>
</div>
<div class="btn-cancel" data-dismiss="modal">
<i class="fal fa-times"></i>
</div>
</div>
<div class="modal-body text-left">
<p>
<?php pll_e('Choose a branch near you for convenient delivery. If there is no branch near you, please choose another.') ?>
</p>
<div class="modal-notification text-gray-1">
<b><?php pll_e('Note') ?> </b><?php pll_e('The system only accepts transportation to a radius of') ?>
<?php echo get_theme_mod('text_distance_setting'); ?>km
<div class="modal-error invisible text-error">
<?php pll_e('Your area is not available') ?>
</div>
</div>
<div class="form-wrap mb-4 ">
<div class="form-group mb-1">
<select name="calc_shipping_branch_provices" class="d-none" required="">
<?php
foreach ($list_address as $address) {
$longitude = "";
$latidude = "";
foreach ($latitude_list as $item) {
if ($item->term_id === $address->term_id) {
$latidude = $item->meta_value;
}
}
foreach ($longitude_list as $item) {
if ($item->term_id === $address->term_id) {
$longitude = $item->meta_value;
}
}
?>
<option id="b<?php echo $address->term_id ?>" data-lng="<?php echo $longitude ?>" data-lat="<?php echo $latidude ?>" value="<?php echo $address->meta_value ?>">
<?php echo $address->meta_value ?>
</option>
<?php
}
?>
</select>
</div>
<div class="form-group">
<select name="calc_shipping_provinces" required="">
<option value=""><?php pll_e('Province / City') ?></option>
</select>
</div>
<div class="form-group">
<select name="calc_other_shipping_provinces" class="d-none" required="">
<option value=""><?php pll_e('Other Province / City') ?> </option>
</select>
</div>
<div class="form-group">
<select name="calc_shipping_district" required="">
<option value=""><?php pll_e('District') ?></option>
</select>
</div>
<div class="form-group">
<select name="calc_shipping_branch" required="" class="d-none">
<option value=""><?php pll_e('Branch') ?></option>
</select>
</div>
</div>
<div class="modal-visible d-none">
<div class="province"><?php pll_e('Province / City') ?></div>
<div class="other_province"> <?php pll_e('Other Province / City') ?></div>
<div class="district"><?php pll_e('District') ?></div>
<div class="branch"><?php pll_e('Branch') ?></div>
<div class="other"><?php pll_e('Other') ?></div>
<div class="order_delivered"><?php pll_e('Order delivered from branch:') ?></div>
<div class="product_at"><?php pll_e('Products are out of stock at the branch') ?></div>
<div class="number_product"><?php pll_e('Number of products in stock:') ?></div>
</div>
</div>
</div>
</div>
</div>
<div id="product-<?php the_ID(); ?>" <?php wc_product_class('container product-detail mt-5', $product); ?>> <div id="product-<?php the_ID(); ?>" <?php wc_product_class('container product-detail mt-5', $product); ?>>
<p class="f16 text-center font-italic mb-4"> <p class="f16 text-center font-italic mb-4">
</p> </p>
...@@ -104,21 +192,51 @@ $product_id = $product->get_id(); ...@@ -104,21 +192,51 @@ $product_id = $product->get_id();
*/ */
do_action('woocommerce_single_product_summary'); do_action('woocommerce_single_product_summary');
?> ?>
<div class="product-detail__notification-delivery d-none">
<span><?php pll_e('Please change') ?> </span>
<span class="text-underline" data-toggle="modal" data-target="#modalLocation">
<?php pll_e('your delivery branch') ?>
</span>
</div>
<div class="product-detail__notification text-error ">
<span><?php pll_e('Please select') ?> </span>
<span class="area" data-toggle="modal" data-target="#modalLocation">
<?php pll_e('your delivery area') ?>
</span>
</div>
<div class="location-detail">
<span class="message"></span>
<span class="branch"></span>
</div>
</div>
<div class="col-12 d-none">
<ul class="list-branch-address">
<?php
foreach ($list_address as $address) {
?>
<li id="b<?php echo $address->term_id ?>"><?php echo $address->meta_value ?></li>
<?php
}
?>
</ul>
</div> </div>
</div>
<div class="col-12">
<?php
/**
* Hook: woocommerce_after_single_product_summary.
*
* @hooked woocommerce_output_product_data_tabs - 10
* @hooked woocommerce_upsell_display - 15
* @hooked woocommerce_output_related_products - 20
*/
do_action('woocommerce_after_single_product_summary');
?>
</div>
</div>
</div>
<div class="col-12">
<?php
/**
* Hook: woocommerce_after_single_product_summary.
*
* @hooked woocommerce_output_product_data_tabs - 10
* @hooked woocommerce_upsell_display - 15
* @hooked woocommerce_output_related_products - 20
*/
do_action('woocommerce_after_single_product_summary');
?>
</div> </div>
<?php do_action('woocommerce_after_single_product'); ?> </div>
\ No newline at end of file
<?php do_action('woocommerce_after_single_product'); ?>
\ No newline at end of file
...@@ -49,7 +49,7 @@ $category = wp_get_post_terms($post->ID, 'product_cat'); ...@@ -49,7 +49,7 @@ $category = wp_get_post_terms($post->ID, 'product_cat');
<div class="row"> <div class="row">
<?php <?php
$current_page = 0; $current_page = 0;
$MAX_PER_PAGE = 4; $MAX_PER_PAGE = 10;
$url = strtok($_SERVER["REQUEST_URI"], '?'); $url = strtok($_SERVER["REQUEST_URI"], '?');
$url_page_item = $url . "?page-store="; $url_page_item = $url . "?page-store=";
if (isset($_GET['page-store'])) { if (isset($_GET['page-store'])) {
......
2021-10-20T09:55:15+00:00 ERROR Error getting remote inbox notification data feed
2021-10-20T09:55:15+00:00 ERROR WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => cURL error 60: SSL certificate problem: certificate has expired
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
2021-10-20T09:55:15+00:00 ERROR Error getting remote inbox notification data feed
2021-10-20T09:55:15+00:00 ERROR WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => cURL error 60: SSL certificate problem: certificate has expired
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
2021-10-22T02:05:35+00:00 ERROR Error getting remote inbox notification data feed
2021-10-22T02:05:35+00:00 ERROR WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => cURL error 60: SSL certificate problem: certificate has expired
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
2021-10-22T02:05:35+00:00 ERROR Error getting remote inbox notification data feed
2021-10-22T02:05:35+00:00 ERROR WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => cURL error 60: SSL certificate problem: certificate has expired
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
2021-10-22T02:16:18+00:00 ERROR Error getting remote inbox notification data feed
2021-10-22T02:16:18+00:00 ERROR WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => cURL error 60: SSL certificate problem: certificate has expired
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment