Skip to content

Commit

Permalink
Merge pull request #310 from Invizo/fix/quick-cart-pre/issue#309
Browse files Browse the repository at this point in the history
fix(quick-cart): Quick cart redirection , icon layout select field la…
  • Loading branch information
code-with-mehedi authored Nov 12, 2023
2 parents 57311f6 + 42e490f commit 22d93dc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
18 changes: 16 additions & 2 deletions assets/src/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,7 @@ End Settings Sidebar
}

.dashboard-pricing-page {

.dashboad-content,
.sg_pricing_table {
margin-top: 20px;
Expand Down Expand Up @@ -1618,6 +1619,7 @@ End Settings Sidebar
}

.dashboard-pricing-page {

.dashboad-content,
.sg_pricing_table {
margin-top: 20px;
Expand Down Expand Up @@ -2298,11 +2300,23 @@ End Settings Sidebar
}
}
}

&.radio-icon-field{
&.quick-icon-layout {
@media (max-width: 1440px) {
grid-template-rows: repeat(1, auto);
}
}
}
&.radio-img-field {
height: 100%;
margin-top: 20px;

&.quick-cart-layout {
@media (max-width: 1440px) {
grid-template-rows: repeat(1, auto);
}
}

label.ant-radio-button-wrapper {
color: #073B4C;
font-size: 14px;
Expand Down Expand Up @@ -2399,7 +2413,7 @@ End Settings Sidebar

span {
@media (max-width: 1440px) {
display: none;
display: none;
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/modules/fly-cart/assets/js/wfc-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
event.preventDefault();
const productId = jQuery(event?.target).data("id");
jQuery.ajax({
url: wc_add_to_cart_params.ajax_url,
url: sgsbFrontend.ajaxUrl,
type: "POST",
data: {
action: "woocommerce_add_to_cart",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const DesignSettings = ({
name={ `icon_name` }
options={ [ ...iconOptions ] }
changeHandler={ onFieldChange }
classes={ `radio-icon-field quick-icon-layout` }
fieldValue={ formData.icon_name }
title={ __( `Cart Icon`, 'storegrowth-sales-booster' ) }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const GeneralSettings = ({
<RadioBox
name={ `layout` }
fieldWidth={ true }
classes={ `radio-img-field` }
classes={ `radio-img-field quick-cart-layout` }
fieldValue={ formData.layout }
changeHandler={ onFieldChange }
options={ [ ...layoutOptions ] }
Expand Down

0 comments on commit 22d93dc

Please sign in to comment.