← All changes
|
app/Hooks/Handlers/ShortCodes/Buttons/DirectCheckoutShortcode.php
+2
-1
1.4.2
→
1.6.5
View file →
| @@ -97,8 +97,9 @@ | ||
| 97 | 97 | 'text' => $buttonText, |
| 98 | 98 | 'is_shortcode' => true, |
| 99 | 99 | 'enable_modal_checkout'=> $instantCheckout, |
| 100 | 100 | 'variant_ids' => [$variationId], |
| 101 | + 'class' => $buttonClass ?: 'fluent-cart-direct-checkout-button', | |
| 101 | 102 | ]; |
| 102 | 103 | |
| 103 | 104 | if ($buttonClass) { |
| 104 | 105 | $atts['class'] = $buttonClass; |
| @@ -107,9 +108,9 @@ | ||
| 107 | 108 | if ($target) { |
| 108 | 109 | $atts['target'] = $target; |
| 109 | 110 | } |
| 110 | 111 | |
| 111 | - return (new ProductRenderer($product, $rendererConfig))->renderBuyNowButton($atts); | |
| 112 | + return (new ProductRenderer($product, $rendererConfig))->renderBuyNowButtonBlock($atts); | |
| 112 | 113 | } |
| 113 | 114 | |
| 114 | 115 | protected function renderAttributes($atts = []) |
| 115 | 116 | { |