File tree Expand file tree Collapse file tree 9 files changed +12
-44
lines changed
Expand file tree Collapse file tree 9 files changed +12
-44
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,6 @@ public function getShowSlider()
114114 return $ this ->config ->isProductSliderEnabled () ? 'true ' : 'false ' ;
115115 }
116116
117- public function getSmallSize ()
118- {
119- return $ this ->config ->isProductSmallSizeEnabled () ? 'true ' : 'false ' ;
120- }
121-
122117 public function isAplazameActive ()
123118 {
124119 return $ this ->config ->isActive ();
Original file line number Diff line number Diff line change @@ -97,14 +97,6 @@ public function isProductSliderEnabled()
9797 return (bool ) $ this ->getValue ('aplazame_widget/aplazame_product_widget/product_slider ' );
9898 }
9999
100- /**
101- * @return bool
102- */
103- public function isProductSmallSizeEnabled ()
104- {
105- return (bool ) $ this ->getValue ('aplazame_widget/aplazame_product_widget/product_small_size ' );
106- }
107-
108100 /**
109101 * @return int
110102 */
@@ -203,14 +195,6 @@ public function isCartSliderEnabled()
203195 return (bool ) $ this ->getValue ('aplazame_widget/aplazame_cart_widget/cart_slider ' );
204196 }
205197
206- /**
207- * @return bool
208- */
209- public function isCartSmallSizeEnabled ()
210- {
211- return (bool ) $ this ->getValue ('aplazame_widget/aplazame_cart_widget/cart_small_size ' );
212- }
213-
214198 /**
215199 * @return int
216200 */
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ public function getConfig()
4848 'cart_widget_primary_color ' => $ this ->config ->getCartPrimaryColor (),
4949 'cart_widget_ver ' => $ this ->config ->getCartWidgetVer (),
5050 'cart_slider_enabled ' => $ this ->config ->isCartSliderEnabled () ? 'true ' : 'false ' ,
51- 'cart_small_size_enabled ' => $ this ->config ->isCartSmallSizeEnabled () ? 'true ' : 'false ' ,
5251 ],
5352 ],
5453 ];
Original file line number Diff line number Diff line change 7474 <comment >Only v5</comment >
7575 </field >
7676
77- <field id =" product_small_size" translate =" label" type =" select" sortOrder =" 14" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
78- <label >Small size</label >
79- <source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
80- <comment >Only v5</comment >
81- </field >
82-
8377 <field id =" product_downpayment_info" translate =" label" type =" select" sortOrder =" 15" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
8478 <label >Show downpayment info</label >
8579 <source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
155149 <comment >Only v5</comment >
156150 </field >
157151
158- <field id =" cart_small_size" translate =" label" type =" select" sortOrder =" 14" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
159- <label >Small size</label >
160- <source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
161- <comment >Only v5</comment >
162- </field >
163-
164152 <field id =" cart_downpayment_info" translate =" label" type =" select" sortOrder =" 15" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" >
165153 <label >Show downpayment info</label >
166154 <source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
Original file line number Diff line number Diff line change 1515 <product_widget_enabled >1</product_widget_enabled >
1616 <product_widget_ver >v5</product_widget_ver >
1717 <product_slider >1</product_slider >
18- <product_small_size >0</product_small_size >
1918 <product_downpayment_info >1</product_downpayment_info >
2019 <product_legal_advice >0</product_legal_advice >
2120 <product_pay_in_4 >0</product_pay_in_4 >
3130 <cart_widget_enabled >1</cart_widget_enabled >
3231 <cart_widget_ver >v5</cart_widget_ver >
3332 <cart_slider >1</cart_slider >
34- <cart_small_size >0</cart_small_size >
3533 <cart_downpayment_info >1</cart_downpayment_info >
3634 <cart_legal_advice >0</cart_legal_advice >
3735 <cart_pay_in_4 >0</cart_pay_in_4 >
Original file line number Diff line number Diff line change 1212"Widget version","Versión del widget"
1313"Show widget","Mostrar el widget"
1414"Show slider","Mostrar barra deslizante"
15- "Small size","Tamaño pequeño"
1615"Show downpayment info","Mostrar pago inicial"
1716"Show legal notice","Mostrar texto legal"
1817"Force pay in 4 widget","Forzar widget paga en 4"
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ if (!$block->isAplazameActive()) {
2424 data-aplazame-widget-instalments="v5"
2525 data-type="product"
2626 data-option-slider="<?php echo $ block ->getShowSlider (); ?> "
27- data-option-small-size="<?php echo $ block ->getSmallSize (); ?> "
2827 data-option-align="<?php echo $ block ->getWidgetAlign (); ?> "
2928 <?php endif ; ?>
3029 data-amount="<?php echo Decimal::fromFloat ($ block ->getFinalPrice ())->jsonSerialize (); ?> "
@@ -40,4 +39,6 @@ if (!$block->isAplazameActive()) {
4039 <?php if ( ! empty ( $ block ->getDefaultInstalments () ) ) : ?>
4140 data-option-default-instalments="<?php echo $ block ->getDefaultInstalments (); ?> "
4241 <?php endif ; ?>
43- ></div>
42+ >
43+ <div data-aplazame-loading></div>
44+ </div>
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ define([
2121 cartLayout : config . cart_widget_layout ,
2222 cartAlign : config . cart_widget_align ,
2323 cartSliderIsEnabled : config . cart_slider_enabled ,
24- cartSmallSizeIsEnabled : config . cart_small_size_enabled ,
2524
2625 getAmount : function ( ) {
2726 return Quote . totals ( ) . base_grand_total ;
Original file line number Diff line number Diff line change 1313 'data-option-default-instalments': cartDefaultInstalments,
1414 'data-option-align': cartAlign,
1515 'data-option-slider': cartSliderIsEnabled,
16- 'data-option-small-size': cartSmallSizeIsEnabled,
1716 } "
18- > </ div >
17+ >
18+ < div data-aplazame-loading > </ div >
19+ </ div >
1920 <!-- /ko -->
2021 <!-- ko if: cartWidgetVer == 'v4' -->
2122 < div
3435 'data-option-layout': cartLayout,
3536 'data-option-align': cartAlign,
3637 } "
37- > </ div >
38+ >
39+ < div data-aplazame-loading > </ div >
40+ </ div >
3841 <!-- /ko -->
3942 <!-- ko if: cartWidgetVer == 'v3' -->
4043 < div
4952 'data-pay-in-4': cartPayIn4IsEnabled ? '' : null,
5053 'data-option-default-instalments': cartDefaultInstalments,
5154 } "
52- > </ div >
55+ >
56+ < div data-aplazame-loading > </ div >
57+ </ div >
5358 <!-- /ko -->
5459<!-- /ko -->
You can’t perform that action at this time.
0 commit comments