diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3a6b65d5..b8378e78e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,4 +96,4 @@ jobs: upload_url: ${{ steps.release_info.outputs.upload_url }} asset_path: ./${{ github.event.repository.name }}/${{ github.event.repository.name }}.zip asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip \ No newline at end of file + asset_content_type: application/zip diff --git a/templates/catalog/_partials/miniatures/product.tpl b/templates/catalog/_partials/miniatures/product.tpl index 6dba1ad1c..e2591a89c 100644 --- a/templates/catalog/_partials/miniatures/product.tpl +++ b/templates/catalog/_partials/miniatures/product.tpl @@ -176,7 +176,7 @@ {/block} - {if $product.add_to_cart_url && $product.product_type !== 'combinations'} + {if $product.add_to_cart_url}
diff --git a/webpack/webpack.vars.js b/webpack/webpack.vars.js index ebd350768..46dad4189 100644 --- a/webpack/webpack.vars.js +++ b/webpack/webpack.vars.js @@ -1,21 +1,18 @@ const fs = require('fs'); const path = require('path'); - const themeDev = path.resolve(__dirname, '../src'); + const envFilePath = './webpack/.env'; if (fs.existsSync(envFilePath)) { require('dotenv').config({path: envFilePath}); -} else { - console.error('\x1b[41m\x1b[37m%s\x1b[0m', 'Your .env file not exits. Read getting started section in documentation for more information https://github.com/PrestaShop/hummingbird?tab=readme-ov-file#how-to-build-assets/.'); - process.exit(); } const { - PORT: port, - PUBLIC_PATH: publicPath, - SERVER_ADDRESS: serverAddress, - SITE_URL: siteURL, + PORT: port = null, + PUBLIC_PATH: publicPath = null, + SERVER_ADDRESS: serverAddress = null, + SITE_URL: siteURL = null, } = process.env; const entriesArray = {