← All changes
|
app/Hooks/Handlers/ShortCodes/Buttons/AddToCartShortcode.php
+3
-4
1.3.25
→
1.6.5
View file →
| @@ -76,10 +76,10 @@ | ||
| 76 | 76 | return ''; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | $atts = [ |
| 80 | - 'text' => $buttonText, | |
| 81 | - 'is_shortcode'=> true, | |
| 80 | + 'add_to_cart_text' => $buttonText, | |
| 81 | + 'is_shortcode' => true, | |
| 82 | 82 | ]; |
| 83 | 83 | |
| 84 | 84 | if ($buttonClass) { |
| 85 | 85 | $atts['class'] = $buttonClass; |
| @@ -84,8 +84,7 @@ | ||
| 84 | 84 | if ($buttonClass) { |
| 85 | 85 | $atts['class'] = $buttonClass; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - return (new ProductRenderer($product, $rendererConfig))->renderAddToCartButtonBlock($atts); | |
| 88 | + return (new ProductRenderer($product, $rendererConfig))->renderAddToCartButton($atts); | |
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | - | |