Skip to content

Commit

Permalink
new button borders implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
angbpy committed Jun 29, 2022
1 parent b08697f commit e77b850
Show file tree
Hide file tree
Showing 16 changed files with 122 additions and 29 deletions.
3 changes: 0 additions & 3 deletions includes/stylehandler.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

function styleHandler($theme){

$theme = strtolower(str_replace(' ', '', $theme));
Expand All @@ -10,7 +9,5 @@ function styleHandler($theme){
return is_file($cssFilePath)?
$css
:$defaultStyle;

}

?>
9 changes: 9 additions & 0 deletions public/css/bigstore.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,12 @@
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}


9 changes: 9 additions & 0 deletions public/css/blossomshop.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,12 @@
height: 45px !important;
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
11 changes: 10 additions & 1 deletion public/css/divi.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
16 changes: 15 additions & 1 deletion public/css/electro.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#btn-1cc {
display: block !important;
width: 100%;
border-radius: 1.8em;
overflow: hidden;
}
#btn-1cc-mini-cart {
display: inline-flex;
border-radius: 1.8em;
overflow: hidden;
}
#btn-1cc-pdp {
position: relative;
top: 12px;
border-radius: 1.8em;
overflow: hidden;

}
#off-canvas-cart-summary .woocommerce-mini-cart__buttons.buttons{
width: 41%;
Expand Down Expand Up @@ -92,4 +97,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
16 changes: 16 additions & 0 deletions public/css/electrochild.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#btn-1cc {
display: block !important;
width: 100%;
border-radius: 1.8em;
overflow: hidden;
}
#btn-1cc-mini-cart {
display: inline-flex;
border-radius: 1.8em;
overflow: hidden;
}
#btn-1cc-pdp {
position: relative;
top: 12px;
border-radius: 1.8em;
overflow: hidden;

}
#off-canvas-cart-summary .woocommerce-mini-cart__buttons.buttons{
width: 41%;
Expand Down Expand Up @@ -90,4 +97,13 @@
#rzp-logo {
height: 45px !important;
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
11 changes: 10 additions & 1 deletion public/css/elessitheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
11 changes: 10 additions & 1 deletion public/css/elessithemechild.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
13 changes: 12 additions & 1 deletion public/css/flatsome.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
position: relative;
top: 10px;
width: 260px;
border-radius: 0;
overflow: hidden;
}

#rzp-spinner-backdrop {
Expand Down Expand Up @@ -81,4 +83,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
11 changes: 10 additions & 1 deletion public/css/lebe.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,13 @@
#rzp-logo {
height: 45px !important;
}
}
}


.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
17 changes: 14 additions & 3 deletions public/css/lebe|sharedbywptry.org.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#btn-1cc {
display: block !important;
width: 100%;
width: 50%;
}
#btn-1cc-mini-cart {
display: block !important;
width: 100%;
}
#btn-1cc-pdp {
position: relative;
top: 10px;
top: 6px;
width: 268px;
}
#rzp-spinner-backdrop {
Expand Down Expand Up @@ -84,4 +84,15 @@
#rzp-logo {
height: 45px !important;
}
}
}




.single_add_to_cart_button.button{
z-index: 2 !important;
}

.quantity{
z-index: 2 !important;
}
4 changes: 3 additions & 1 deletion public/css/molla.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
position: relative;
top:12px;
width: 200px;
border-radius: 0;
overflow: hidden;
}
#rzp-spinner-backdrop {
position: fixed;
Expand Down Expand Up @@ -89,4 +91,4 @@
#rzp-logo {
height: 45px !important;
}
}
}
11 changes: 0 additions & 11 deletions templates/handleAttributes.php

This file was deleted.

3 changes: 2 additions & 1 deletion templates/rzp-mini-checkout-btn.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

<div id="btn-1cc-mini-cart" >
<magic-checkout-btn page-type="cart_sm"></magic-checkout-btn>
<magic-checkout-btn page-type="cart_sm"> ></magic-checkout-btn>
</div>
<div id="rzp-spinner-backdrop"></div>
<div id="rzp-spinner">
Expand Down
4 changes: 1 addition & 3 deletions templates/rzp-pdp-checkout-btn.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
global $product;
$productData = wp_json_encode(['id' => $product->get_id(), 'quantity' => 1]);
include handleAttributes.php;

?>
<div id="btn-1cc-pdp"
product_id="<?php echo esc_attr($product->get_id()); ?>"
pdp_checkout="<?php echo true; ?>" >
<magic-checkout-btn page-type=<?php buttonType("product")?> border-radius=<?php borderRadius()?>></magic-checkout-btn>
<magic-checkout-btn page-type="product"></magic-checkout-btn>
</div>

<div id="rzp-spinner-backdrop"></div>
Expand Down
2 changes: 1 addition & 1 deletion woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ public function update1ccOrderWC(& $order, $wcOrderId, $razorpayPaymentId)
}
else
{
$item->set_method_title($shippingData[0]['name']);
$item->set_method_title($shippingData??[0]['name']);
}

// set an non existing Shipping method rate ID will mark the order as completed instead of processing status
Expand Down

0 comments on commit e77b850

Please sign in to comment.