scottyzen / woonuxt

Static e-commerce powered by WooCommerce & Nuxt
https://woonuxt.com
GNU General Public License v3.0
574 stars 139 forks source link

Add more storeSettings config #178

Closed alexookah closed 3 weeks ago

alexookah commented 3 weeks ago

In this PR, I’ve added new configuration options to storeSettings for managing the visibility of several UI elements. These changes include:

Rationale

These options offer flexibility for pages with fewer products by allowing easy disabling of features that are more suitable for larger product ranges. While it's possible to override these components and pages for customization, this approach simplifies maintenance.

The added config options ensure that any updates to these elements in the future are easier to integrate, enhancing maintainability and reducing the overhead of a lot of customization.

Let me know what you think @scottyzen

netlify[bot] commented 3 weeks ago

Deploy Preview for sleepy-chandrasekhar-717c3d ready!

Name Link
Latest commit 28dd46aff02780388b22aed256e4588abd52e988
Latest deploy log https://app.netlify.com/sites/sleepy-chandrasekhar-717c3d/deploys/668090312960c4000861c1a4
Deploy Preview https://deploy-preview-178--sleepy-chandrasekhar-717c3d.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

vercel[bot] commented 3 weeks ago

@alexookah is attempting to deploy a commit to the scottyzen's projects Team on Vercel.

A member of the Team first needs to authorize it.

scottyzen commented 3 weeks ago

Hey @alexookah,

Sorry for the delay. I've just got to have a chance to have a look now.

Thanks for adding these, super helpful! I just made 1 small tweak. I renamed the showInProductCategories prop to showProductCategoriesOnSingleProduct. And I applied your new settings to the product categories page. Also, I added a new prop saleBadge when this PR is active, might as well add it in at the same time.