Implement multilingual support for shop interface and add total calculation to cart drawer: - Add FR/EN translations for all shop-related texts (cart, checkout, stock status) - Update templates and JavaScript to use translation system - Add cart total calculation with formatted currency display - Refactor cart drawer styles to SASS with improved button styling (black borders on +/-) - Fix English product content (replace JSON with proper HTML) - Extract cart drawer to separate snippet for better organization Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
20 lines
No EOL
643 B
PHP
20 lines
No EOL
643 B
PHP
<div class="product-purchase">
|
|
<div class="product-stock-info">
|
|
<p data-product-stock class="stock-status"></p>
|
|
</div>
|
|
|
|
<button
|
|
class="btn-add-to-cart"
|
|
data-shopify-add-to-cart
|
|
data-product-id="15689076179317"
|
|
data-variant-id=""
|
|
data-text-add="<?= t('addToCart') ?>"
|
|
data-text-adding="<?= t('addingToCart') ?>"
|
|
data-text-added="<?= t('addedToCart') ?>"
|
|
data-text-error="<?= t('errorAddToCart') ?>"
|
|
data-text-out-of-stock="<?= t('outOfStock') ?>"
|
|
data-text-in-stock="<?= t('inStock') ?>"
|
|
>
|
|
<?= t('addToCart') ?>
|
|
</button>
|
|
</div>
|