storefront | An Angular storefront app for Magento | Ecommerce library
kandi X-RAY | storefront Summary
kandi X-RAY | storefront Summary
Angular 2 flavored HTML. Gulp and its plugins.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of storefront
storefront Key Features
storefront Examples and Code Snippets
Community Discussions
Trending Discussions on storefront
QUESTION
ANSWER
Answered 2021-Jun-11 at 16:03https://sap.github.io/spartacus-docs/i18n/#overwriting-individual-translations
You have to find the chunk + key in the source code, then provide your own translation for the given key
QUESTION
I'm new on SAP Spartacus storefront, and I'm trying to make a custom API call to check if CNPJ is valid on customer database. My backend is ready and needs to receive a Token on request header.
But I don't find on Spartacus documentation how to use a default token service or interceptor to make this call.
Anyone can help me? Thanks for your time, have a good day.
...ANSWER
Answered 2021-Jun-09 at 19:16You can take a look at the Spartacus Session Management documentation.
- If you need to send the user token, by default it is included in the
header of every request made to "occ". This means that if you want to
have this same behavior for an endpoint not in OCC you will need to
extend and overwrite
AuthHttpHeaderService
more specifically theisOccUrl
method so that it returns "true" for occ endpoints and your external endpoints. It will look like this:
QUESTION
Are there any sample data available for B2B features in Spartacus? All the files that I could find were referencing old (on-prem) storefront.
...ANSWER
Answered 2021-Feb-02 at 12:39B2B sample data comes packaged with the latest spartacus releases in the 2005 sample data addons attached to releases.
QUESTION
I've created a new SOLR Indexed property that must act as category a facet:
...ANSWER
Answered 2021-May-28 at 07:17If all the products in the result have the same value or no value at all, the facet won't show. The facet will only appear if it will make a difference in the result when the user filters by it. Can you check if that's the case?
QUESTION
I just launched my store on wordpress and I ran into a problem: When I am on the home page of the site, all my product titles are in H2 and should be in h3 (SEO reasons), my recommendation products are also in h2 instead of h3 (on the single product page and in collections, i would like to change them all to h3). I looked for a long time where the problem could come from, searched all the files of the theme to change any title from h2 to h3 but nothing helped, I can't find where it is! I also asked the theme creators for help but they told me it was woocomerce's fault and there was nothing they could do ..
A lot of people have had some of the same problem under other themes but they don't have the same "function.php" as me. I also followed this: How can I change the product
in Woocommerce Storefront to ? but it didn't work for me.Can someone help me on this problem ?
here is my "function.php" but i dont think it'll help..
...ANSWER
Answered 2021-May-19 at 21:08I don't think the functions.php
file has anything to do with it - usually HTML structures like this are created in template php files which are in the themes folder - either on the top level of that folder or as "template parts" in an according subfolder. You have to edit those( or actually those among them that are used by the pages you are referring to), changing all
(also the closing tags).
However, since any not-selfmade theme will be updated every now and then, those changes would be overwritten with updated files when available, it would be necessary to create a child theme, which only contains those templates which you want to change (see also https://developer.wordpress.org/themes/advanced-topics/child-themes/). Then again, updated themes might contain template updates which are necessary, so you'd always have to check which details were updated in that particular template file, integrating it into your child theme templates or editing the updated original themes and using them in your child theme.
P.S.: I think the title of your question is a bit misleading: In the question text you are asking about certain title tags in the product pages, not about parts of the menu, aren't you?
QUESTION
I have followed below steps to create Spartacus storefront,
- ng new spartacus3
- cd spartacus3
- ng add @spartacus/schematics --baseUrl https://spartacus-demo.eastus.cloudapp.azure.com:8443/ --baseSite=electronics-spa --ssr
- yarn install
- yarn start
It installs Angular 10.2.4 and Spartacus 3.1.
It compiles without error.
But am getting blank screen when I'm opening same in browser using URL http://localhost:4200/ I verified network tab in browser it have valid response. Here is network tab screenshot - screenshot - 1, screenshot 2
But no one elements are getting added in DOM. Here is elements tab screenshot - elements tab screenshot
But in console I have below info,
...ANSWER
Answered 2021-May-14 at 07:14In app.module.ts use this baseUrl link baseUrl: 'https://spartacus-training.eastus.cloudapp.azure.com:8443',
QUESTION
after reading many similar topics, I still can’t solve this problem; the quantities in the cart don’t update with the new values once the “update cart” button is clicked.
I’ve already tried disabling themes and plugins, but even as the only extension installed and with default theme (tried both StoreFront & Twenty Twenty-one), the WooCommerce cart continues to behave this way. I have also enabled the WordPress debugging logs and I can’t find anything there, just like in the console.
Someone already run a debug on my cart and think that I am a victim of a code conflict, he found this error :
...ANSWER
Answered 2021-May-09 at 20:21As I could not find the source of the problem, I started from scratch by changing my hosting solution. Once the files were uploaded on the new server and the configuration files were adapted, the shopping cart works normally again.
QUESTION
On a standard WooCommerce Cart page like storefront theme under the product row is a row of coupon code to the left and a update cart on the right. I can use woocommerce_cart_coupon
to hook beside the coupon on the left:
ANSWER
Answered 2021-May-03 at 19:16You can use the woocommerce_cart_actions
hook.
This code:
QUESTION
I’m currently giving Spartacus 3.2 a spin and I’m struggling a bit with the new schematics.
The information on https://sap.github.io/spartacus-docs/building-the-spartacus-storefront-from-libraries/ does not match the information on https://sap.github.io/spartacus-docs/schematics/#adding-spartacus-core-libraries-and-features-to-your-angular-project
What do I have to select to get the same b2c features as for the 3.1 schematics?
- What's the difference between options
b2c
/b2b
of the first question? - Why are basic things like "Cart" and "Product" even presented as option? or are they preselected already because I chose "b2c"?
- What's the difference between options
ANSWER
Answered 2021-May-02 at 16:18What do I have to select to get the same b2c features as for the 3.1 schematics
To have the b2c configuration, you need to select the "b2c" configuration on the first prompt. Here, "b2c" means only some b2c-related configuration, and it's not related to b2c features. The second prompt will ask you which additional Spartacus features you would like to install. Here, you can just press "Enter" if you don't want any of the additional features. The exception to this is our new "User" library which is mandatory to be installed.
Why are basic things like "Cart" and "Product" even presented as option? or are they preselected already because I chose "b2c"?
The reason for this is because some clients like to use Spartacus as just a catalog site, without any cart functionality (for example). Currently, these libraries only contain some extra features related to cart and product and the core mechanisms for these features are still present in core and storefrontlib. This is part of our effort to improve the code splitting and lazy loading. And again, the second prompt doesn't change based on your choice between b2c/b2c configuration.
What is the purpose of useMetaTags?
Meta tags are explained in our docs:
QUESTION
I cannot seem to replace the text inside the Add to basket buttons on the single product pages, im using a child theme with the storefront theme for WooCommerce.
Here's what i've tried:
...ANSWER
Answered 2021-Apr-30 at 07:19I do think the issue is theme-related as your code does work when I try it on a test site, though I don't have Storefront set as the theme.
You could try a string replace:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install storefront
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page