Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
asset/logs/
build/woo-bundle-choice/
516 changes: 54 additions & 462 deletions README.txt

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions __dev_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
Product bundling as ring builder for jewelry, pair maker for clothing and guidance tool for home decor, cosmetics etc.

== Description ==
WooCommerce Product Bundle Choice – also known as WBC -- helps you to create exciting functionalities and experience on your website with the help of any one of the following modules:
BUNDLOICE (formerly Woo Choice Plugin) – also known as WBC -- helps you to create exciting functionalities and experience on your website with the help of any one of the following modules:

1. Ring Builder
2. Pair Maker
Expand Down Expand Up @@ -135,7 +135,7 @@ If you are interested in our plugin, click [here](https://www.woo-product-bundle

= Compatibility with other plugins/Officially tested plugins =

We have tested WooCommerce Product Bundle Choice with Wordpress 3.5 to 5.4 and WooCommerce 2.0 to 4.0.1 and our plugin is technically compatible with all the other plugins.
We have tested BUNDLOICE (formerly Woo Choice Plugin) with Wordpress 3.5 to 5.4 and WooCommerce 2.0 to 4.0.1 and our plugin is technically compatible with all the other plugins.

= Live Demo =
Now that you know how this plugin works, is there any reason to not use it? Do you want to see the live demo?
Expand All @@ -147,11 +147,11 @@ Below you can check demos for different inventories:

= Documentation =

* WooCommerce Product Bundle Choice full documentation is available [here](https://www.woo-product-bundle.sphere.emptyops.com/documentation-2/).
* BUNDLOICE (formerly Woo Choice Plugin) full documentation is available [here](https://www.woo-product-bundle.sphere.emptyops.com/documentation-2/).

= FOR SUPPORT, SUGGESTIONS, FEATURE REQUEST AND BUG REPORTING =

If you have suggestions about how to improve WooCommerce Product Bundle Choice, you can write to us, so we can enhance our WooCommerce Product Bundle Choice plugin.
If you have suggestions about how to improve BUNDLOICE (formerly Woo Choice Plugin), you can write to us, so we can enhance our BUNDLOICE (formerly Woo Choice Plugin) plugin.

== Installation ==
**1. Installation**
Expand Down Expand Up @@ -193,7 +193,7 @@ This plugin will be useful for selling any physical items like electronics, clot
Yes, it is compatible with all themes but if it doesn't you can report a bug here.

= How this product bundling is different than other product bundling? =
In other plugins the user can only select bundles created by admin so he has no choice, while in WooCommerce Product Bundle Choice, the user can make his own bundle of two or more products of his choice.
In other plugins the user can only select bundles created by admin so he has no choice, while in BUNDLOICE (formerly Woo Choice Plugin), the user can make his own bundle of two or more products of his choice.

= How to add shortcode in sidebar or anywhere? =
Please follow our instruction
Expand All @@ -215,7 +215,7 @@ Yes, it is.
== Screenshots ==
1. On home page, widget set using placement option.
2. On category page, widget set using short code option.
3. Configure Woocommerce Bundle Choice Plugin by selecting two main product category.
3. Configure BUNDLOICE (formerly Woo Choice Plugin) Plugin by selecting two main product category.
4. Creating a map is the process of binding links between product sub-categories, which will eventually let user combine products based on these category mappings.
5. Home page after plugin fully configured.

Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function run() {
add_action('customize_register', function($wp_customize) {
//adding section in wordpress customizer
$wp_customize->add_section('woo_bundle_choice', array(
'title' => 'Woo Bundle Choice',
'title' => 'BUNDLOICE (formerly Woo Choice Plugin)',
'active_callback' => 'is_front_page'
));

Expand Down
10 changes: 5 additions & 5 deletions application/controllers/admin/menu/admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private function __construct() {
public function get_menu(){
$menu = array(
'title'=>eowbc_lang('Home').' - '.constant('EOWBC_NAME'),
'menu_title'=>constant('EOWBC_NAME'), //eowbc_lang('WooCommerce Bundle Choice'),
'menu_title'=>constant('EOWBC_NAME'), //eowbc_lang('BUNDLOICE (formerly Woo Choice Plugin)'),
'capability'=>'manage_options',
'slug'=>'eowbc',
'template'=>'admin/menu/home',
Expand All @@ -34,17 +34,17 @@ public function get_menu(){

array(
'parent_slug'=>null,
'title'=>eowbc_lang('Setup').' '.constant('EOWBC_NAME'), //eowbc_lang('Setup WooCommerce Product Bundle Choice'),
'menu_title'=>eowbc_lang('Setup WooCommerce Product Bundle Choice'),
'title'=>eowbc_lang('Setup').' '.constant('EOWBC_NAME'), //eowbc_lang('Setup BUNDLOICE (formerly Woo Choice Plugin)'),
'menu_title'=>eowbc_lang('Setup BUNDLOICE (formerly Woo Choice Plugin)'),
'capability'=>'manage_options',
'slug'=>'eowbc-install',
'template'=>'admin/init-install',
'position'=>0
),
array(
'parent_slug'=>'eowbc',
'title'=>eowbc_lang('General').' - '.constant('EOWBC_NAME'), //eowbc_lang('General - Woo Choice Plugin'),
'menu_title'=>eowbc_lang('General'), //eowbc_lang('General - Woo Choice Plugin'),
'title'=>eowbc_lang('General').' - '.constant('EOWBC_NAME'), //eowbc_lang('General - BUNDLOICE (formerly Woo Choice Plugin)'),
'menu_title'=>eowbc_lang('General'), //eowbc_lang('General - BUNDLOICE (formerly Woo Choice Plugin)'),
'capability'=>'manage_options',
'slug'=>'eowbc-configuration',
'template'=>'admin/menu/configuration',
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/sample_data/sample-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function init() {

$callback = $this->get_page( $this->model->data_template()->get_attributes(), $this->model->data_template()->get_categories(), $this->model->data_template()->get_maps() );
$position = empty($position)?66:$position;
add_menu_page( eowbc_lang('WooCommerce Bundle Choice'),eowbc_lang('WooCommerce Bundle Choice'),'manage_options','eowbc',$callback,$this->get_icon_url(),$position );
add_menu_page( eowbc_lang('BUNDLOICE (formerly Woo Choice Plugin)'),eowbc_lang('BUNDLOICE (formerly Woo Choice Plugin)'),'manage_options','eowbc',$callback,$this->get_icon_url(),$position );
}

public function get_icon_url() {
Expand Down
6 changes: 3 additions & 3 deletions application/controllers/publics/pages/_product.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ public function eo_wbc_make_pair()
//Add Js to the footer.
add_action('wp_footer',function(){
?>
<!-- WBC{ WooCommerce Product Bundle Choice wiget STARTS. } -->
<!-- WBC{ BUNDLOICE (formerly Woo Choice Plugin) wiget STARTS. } -->
<script>
jQuery(document).ready(function(){
jQuery('form.cart').prepend("<input type='hidden' name='eo_wbc_target' value='<?php echo $this->eo_wbc_get_category(); ?>'/><input type='hidden' name='eo_wbc_product_id' value='<?php global $post; echo $post->ID; ?>'/>");
});
</script>
<!-- WBC{ WooCommerce Product Bundle Choice wiget ENDS. } -->
<!-- WBC{ BUNDLOICE (formerly Woo Choice Plugin) wiget ENDS. } -->
<?php
});
}
Expand Down Expand Up @@ -280,7 +280,7 @@ public function eo_wbc_render()
if(!empty($product) and !is_wp_error($product) and $product->is_in_stock()) {

?>
<!-- Created with Wordpress plugin - WooCommerce Product bundle choice -->
<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->
<script type="text/javascript">
jQuery(".single_add_to_cart_button.button.alt").ready(function(){
jQuery('form.cart').prepend("<input type='hidden' name='eo_wbc_target' value='<?php echo $this->eo_wbc_get_category(); ?>'/><input type='hidden' name='eo_wbc_product_id' value='<?php global $post; echo $post->ID; ?>'/>");
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/publics/pages/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function eo_wbc_render()
/*add_action('woocommerce_before_cart_contents',function(){
$this->eo_wbc_cart_service();
?>
<!-- Created with Wordpress plugin - WooCommerce Product bundle choice -->
<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->
<style>
tr.cart_item
{
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/publics/pages/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function eo_wbc_render()
add_action( 'woocommerce_no_products_found', function(){

remove_action( 'woocommerce_no_products_found', 'wc_no_products_found', 10 );
$html='<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><br/><br/>';
$html='<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><br/><br/>';
$html.='<div class="woocommerce ui grid centered">';
$html.='<div class="ui row" style="height:max-content;">';
$html.="<div class='ui grid centered'>";
Expand Down
4 changes: 2 additions & 2 deletions application/controllers/publics/pages/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function update_order_review()

//Add cutomization on load....
/* add_action('wp_footer',function(){
echo "<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><script>
echo "<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><script>
jQuery(document).ready(function(){
jQuery('.cart_item').remove();
jQuery('table.shop_table>tbody').append('".$this->eo_wbc_render()."');
Expand Down Expand Up @@ -192,7 +192,7 @@ public function checkout_rows($map)
}

$price=0;
$html="<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><tr><td><div><strong>".
$html="<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><tr><td><div><strong>".
__(wbc()->wc->eo_wbc_get_product($map['FIRST'][0])->get_title().($map['FIRST'][2] ? "&nbsp; -&nbsp;".implode(',',wbc()->wc->eo_wbc_get_product_variation_attributes($map['FIRST'][2],$map['FIRST']['variation'])):''))."</strong>&nbsp;X&nbsp;{$map["FIRST"][1]}</div>";

$product=wbc()->wc->eo_wbc_get_product($map['FIRST'][2]?$map['FIRST'][2]:$map['FIRST'][0]);
Expand Down
4 changes: 2 additions & 2 deletions application/controllers/publics/pages/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function eo_wbc_the_content()
//moved inside buttons template
// public function eo_wbc_code() //script to get color code from buttons
// {
// return '<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><script>'.
// return '<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><script>'.
// 'jQuery(document).ready(function($){'.
// '$(".eo_button_container .button").each(function(i,e){'.
// '$(e).attr("href",$(e).attr("href")+"&EO_WBC_CODE="+window.btoa($(".woocommerce a.button").css("background-color")+"/"+$(".woocommerce a.button").css("color")));'.
Expand Down Expand Up @@ -161,7 +161,7 @@ public function eo_wbc_buttons(){ //the two buttons UI
$second_url.='?';
}

return '<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><div id="wbc_" class="eo-wbc-container"><h2 class="ui center aligned header" style="text-align: center !important;">'.($heading?$heading:__('Make your own pair from recommendation','woo-bundle-choice')).'</h2><div class="ui grid center aligned container"><div class="ui buttons large row stackable"><button class="ui button primary column" href="'. $first_url .'EO_WBC=1&BEGIN='.get_option('eo_wbc_first_slug').'&STEP=1" >'.(get_option('eo_wbc_home_btn_text',__('Start with ','woo-bundle-choice'))).' '.get_option('eo_wbc_first_name','FIRST').'</button> <div class="or"></div><button class="ui button primary column" href="'. $second_url .'EO_WBC=1&BEGIN='.get_option('eo_wbc_second_slug').'&STEP=1" >'. (get_option('eo_wbc_home_btn_text',__('Start with','woo-bundle-choice'))).' '.get_option('eo_wbc_second_name','SECOND').'</button></div></div><style>.ui.grid{margin-left: auto;margin-right: auto;} '.$this->eo_wbc_buttons_css().' @media only screen and (max-width: 768px){ .eo-wbc-container .ui.buttons .button{ border-radius: 0 !important; } }</style><br/><br/></div><!-- Created with Wordpress plugin - WooCommerce Product bundle choice -->';
return '<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><div id="wbc_" class="eo-wbc-container"><h2 class="ui center aligned header" style="text-align: center !important;">'.($heading?$heading:__('Make your own pair from recommendation','woo-bundle-choice')).'</h2><div class="ui grid center aligned container"><div class="ui buttons large row stackable"><button class="ui button primary column" href="'. $first_url .'EO_WBC=1&BEGIN='.get_option('eo_wbc_first_slug').'&STEP=1" >'.(get_option('eo_wbc_home_btn_text',__('Start with ','woo-bundle-choice'))).' '.get_option('eo_wbc_first_name','FIRST').'</button> <div class="or"></div><button class="ui button primary column" href="'. $second_url .'EO_WBC=1&BEGIN='.get_option('eo_wbc_second_slug').'&STEP=1" >'. (get_option('eo_wbc_home_btn_text',__('Start with','woo-bundle-choice'))).' '.get_option('eo_wbc_second_name','SECOND').'</button></div></div><style>.ui.grid{margin-left: auto;margin-right: auto;} '.$this->eo_wbc_buttons_css().' @media only screen and (max-width: 768px){ .eo-wbc-container .ui.buttons .button{ border-radius: 0 !important; } }</style><br/><br/></div><!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->';
*/

if(wbc()->options->get_option('configuration','buttons_page')==3 or wbc()->options->get_option('configuration','buttons_page')==1) {
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/publics/pages/preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private function eo_wbc_render()
wbc()->load->model('publics/component/eowbc_breadcrumb');
$content= \eo\wbc\model\publics\component\EOWBC_Breadcrumb::eo_wbc_add_breadcrumb(wbc()->sanitize->get('STEP'),wbc()->sanitize->get('BEGIN')).'<br/>';

$content.='<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><div class="ui special cards centered" style="margin: auto !important;direction: ltr;
$content.='<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><div class="ui special cards centered" style="margin: auto !important;direction: ltr;
min-width: fit-content !important;max-width: fit-content !important;">'.
'<div class="card">'.
'<div class="blurring dimmable image">'.
Expand Down
6 changes: 3 additions & 3 deletions application/controllers/publics/pages/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,13 @@ public function eo_wbc_make_pair()
//Add Js to the footer.
add_action('wp_footer',function(){
?>
<!-- WBC{ WooCommerce Product Bundle Choice wiget STARTS. } -->
<!-- WBC{ BUNDLOICE (formerly Woo Choice Plugin) wiget STARTS. } -->
<script>
jQuery(document).ready(function(){
jQuery('form.cart').prepend("<input type='hidden' name='eo_wbc_target' value='<?php echo $this->page_category; ?>'/><input type='hidden' name='eo_wbc_product_id' value='<?php global $post; echo $post->ID; ?>'/>");
});
</script>
<!-- WBC{ WooCommerce Product Bundle Choice wiget ENDS. } -->
<!-- WBC{ BUNDLOICE (formerly Woo Choice Plugin) wiget ENDS. } -->
<?php
});
}
Expand Down Expand Up @@ -671,7 +671,7 @@ public function eo_wbc_render()
if(!empty($product) and !is_wp_error($product) and $product->is_in_stock()) {

?>
<!-- Created with Wordpress plugin - WooCommerce Product bundle choice -->
<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->
<script type="text/javascript">
jQuery(".single_add_to_cart_button.button.alt").ready(function(){
jQuery('form.cart').prepend("<input type='hidden' name='eo_wbc_target' value='<?php echo $this->page_category; ?>'/><input type='hidden' name='eo_wbc_product_id' value='<?php global $post; echo $post->ID; ?>'/>");
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/publics/pages/view-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function get_set($set)
}

$price=0;
$row="<!-- Created with Wordpress plugin - WooCommerce Product bundle choice --><tr>".
$row="<!-- Created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) --><tr>".
"<td class=\'eo_wbc_row\'>".
"<span class=\'eo_wbc_column-1\'>".
wbc()->wc->eo_wbc_get_product($set[0][0])->get_image("thumbnail")."&nbsp;&nbsp;<p>".
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/visual_tools/wp-bakery.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function system_init() {
vc_map( array(
"name" => __( 'The Two Buttons', 'woo-bundle-choice' ),
"base" => 'render_two_buttons',
'category' => __( 'Woo Bundle Choice', 'woo-bundle-choice' ),
'category' => __( 'BUNDLOICE (formerly Woo Choice Plugin)', 'woo-bundle-choice' ),
'description' => __( 'Add two button widget to show the buttons for starting the bundle builder.', 'woo-bundle-choice' ),
"icon" => 'https://img.icons8.com/ios/2x/button2.png',
'params'=>
Expand Down
6 changes: 3 additions & 3 deletions application/model/admin/eowbc_base_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function get( $form_definition = array() , $params = array()) {

// Skip these fields.
// To override this use eowbc_ignore_fields filter.
if( !in_array($rvk,$table_fields) {
if( !in_array($rvk,$table_fields) ) {
continue;
}

Expand Down Expand Up @@ -145,7 +145,7 @@ public function save( $form_definition = array(),$menu_key = '',$is_table_save =
if(!empty($form_definition[$saved_tab_key])) {

$tab = $form_definition[$saved_tab_key];
$key = $saved_tab_key
$key = $saved_tab_key;

$key_clean = ((!empty($this->tab_key_prefix) and strpos($key,$this->tab_key_prefix)===0)?substr($key,strlen($this->tab_key_prefix)):$key);

Expand Down Expand Up @@ -277,7 +277,7 @@ public function activate( $ids, $key, $menu_key='' ,$by_key=false) {
}
}

wbc()->options->update_option_group( $menu_key.''_.$key, serialize($table_data) );
wbc()->options->update_option_group( $menu_key.'_'.$key, serialize($table_data) );
$res["msg"] = $activate_cnt . " " . eowbc_lang('record(s) activated');

return $res;
Expand Down
4 changes: 2 additions & 2 deletions application/model/publics/component/_eowbc_filter_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function get_widget_standalone(array $filter) {

?>
<!--Primary filter button that will only be visible on desktop/tablet-->
<!-- This widget is created with Wordpress plugin - WooCommerce Product bundle choice -->
<!-- This widget is created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->
<div id="loading" style="z-index: -999;height: 100%; width: 100%; position: fixed; top: 0;<?php (wbc()->options->get_option('appearance_filters','appearance_filters_loader') OR apply_filters('eowbc_filter_widget_loader',false))?_e('display:none !important;'):'';?>"></div>

<?php
Expand Down Expand Up @@ -2673,7 +2673,7 @@ public function get_widget() {

?>
<!--Primary filter button that will only be visible on desktop/tablet-->
<!-- This widget is created with Wordpress plugin - WooCommerce Product bundle choice -->
<!-- This widget is created with Wordpress plugin - BUNDLOICE (formerly Woo Choice Plugin) -->
<div id="loading" style="z-index: -999; height: 100%; width: 100%; position: fixed; top: 0;<?php (wbc()->options->get_option('appearance_filters','appearance_filters_loader') OR apply_filters('eowbc_filter_widget_loader',false))?_e('display:none !important;'):'';?>"></div>

<script type="text/javascript">
Expand Down
Loading