Skip to content

Commit

Permalink
fix(quick-cart): Quick cart redirection , icon layout select field la…
Browse files Browse the repository at this point in the history
…yout

In this commit the quick cart icon selection and the layout selection is fixed.

resolves: Quick cart: quick cart redirection and layout design fix. #309
  • Loading branch information
satyajittalukder committed Nov 12, 2023
1 parent f265b09 commit 42e490f
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 @@ -2297,11 +2299,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 @@ -2398,7 +2412,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 42e490f

Please sign in to comment.