Customise Spartacus Cart Path - checkout

Apologies if this has been answered elsewhere, though a search didn't turn up any results.
Assuming I'm starting from a fresh Spartacus app, how can I customise the path of the cart page? By default it's /cart, but what if I want to change it to (for example) /checkout/cart?
Thanks for your time

In defaultStorefrontRoutesConfig we have cart: { paths: ['cart'] },. You can replace it to anything.
You also need to replace the CMS cart page's label to /checkout/cart, so that the CMS cart page can be found and loaded.

Related

WooCommerce Redirect Link Adding Two Items To Cart At One Time Not One Item At One Time

I came from a post about the topic I am inquiring about.
Summary of problem:
The post states that in WooCommerce to add items to cart and then redirect your URL use this link and add in your own personal links.
http://yourdomain.com/your_custom_page/?add-to-cart=25
The link works on my site but it adds two items to the cart at once not one.
That is my problem any help would be much appreciated.
I am new to this community and want to respect it.
Thank you for taking the time to read this post.

Hide element on blog page

I am really a beginner, trying to improve my wife's Wordpress website. What I am wanting to do is to hide a certain element (of the header, in this case) on mobile only. I already managed to figure out the "name" of this element, which is .vc_custom_xyz. I also managed to hide this element by adding additional CSS to any given page. BUT: This doesn't work for the blog post page - which simply ignores all CSS that I add. Also, when I add CSS into the theme's additional CSS section by referring to the blog page ID. Any ideas to help me achieve this? Thanks...

Display pages tree

I have problem with showing tree of display pages in display pages section of web content creation form.
I created some pages with asset publishers on them. I set these publishers to be the default asset publishers for these pages. I created these pages and asset publishers under role admin. When I open display pages section in creation form of any web content it shows me site map where can I see pages on which is asset publisher, see image:
You can see that black color is for pages with asset publishers.
But when I login with another user I cannot expand this tree. The only thing I can see is "1st level" of this site map:
I tried to add all possible rights to this user, all possible rights to any resources but without assigning role "administrator" for this user I cannot browse this tree.
When I click on little "plus icon" in this tree I can see that it is making request on "/c/layouts_admin/get_layouts" but in request I can see only html which is telling me that I haven't sufficient roles to obtain right content.
I made some investigation. I tried to make request under this user from jsonws api ("/api/jsonws?signature=%2Flayout%2Fget-layouts-6-groupId-privateLayout-parentLayoutId-incomplete-start-end"). I tried the same method with same parameters as they were in request from site map tree and it returned me right content.
So from "Choose Display Page" window it tells me that I haven't good role but when I call api from jsonws with same parameters it returns me good result. Where can be problem?
Thanks,
Patrik
Hi dear Add this Snippet in com.liferay.portal.struts.PortalRequestProcessor.java
processRoles(HttpServletRequest, HttpServletResponse, ActionMapping)
After user O bject is Created.
if(user!=null){
if(path.equals("/layouts_admin/get_layouts")){
return true;
}
}

Manually Inserting Joomla Show Cart NON sef URL

I have been having some SEF URL issues so I updated my Joomla SH404SEF module and I discussed my issues with a support guy from the company that supplies the 404SEF module and he realized that somebody had manually inserted an SEF URL for the Show Cart link, and that was messing up their module's URL conversion. So he asked me to disable the SEF module for now, and to MANUALLY insert the default NON SEF URL for the "Show Cart" link and I have no idea how to do that! He said that this NON SEF URL should be somewhere in my Virtuemart component, but I looked everywhere for it and didn't find it!! Any help would be tremendously appreciated.
Thanks!
Tao B.
you could grap the link from the minicart which displays the products in the cart and has a text link called "show cart" which links to the items in the cart. This is from the minicart module so if you don't have it installed you won't know what I'm talking about. Publish the module, right click on "show cart" grab the code and you'll be able to manually insert it. Review this file: / administrator/components/com_virtuemart/html/shop.basket_short.php

Form in mediaWiki

I have a Mediawiki site running. I am a beginner at this. I want two pages: one to display name and has a button, which leads to the another page where we can add names. This page has a textbox and a button to save the name. The display page has to show all the names entered.Please advice on how this can be done. Thanks in advance.
Since you are a beginner, I would not add buttons - just use the features MediaWiki already provides. On page 1, add a link using:
[[name of second page]]
On the second page, people can add names and use default MediaWiki functionality to save them.
To make the names nicely formatted, use a table.