redirect from /collections/all

Solved

redirect from /collections/all

dvaughn
Excursionist
176 0 11

Right now I have a code for my '/collections/all' that whenever the user searches that it brings them back to the home page. I'd appreciate assistance on how to just take them to the current products page which is /pages/inventory.

Accepted Solution (1)

Asad-Mahmood
Shopify Partner
409 69 79

This is an accepted solution.

You can use this script to achieve this 

<script>
document.addEventListener('DOMContentLoaded', function() {
  if (window.location.pathname === '/collections/all') {
    window.location.href = '/pages/inventory';
  }
});
</script>
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




View solution in original post

Replies 10 (10)

PaulNewton
Shopify Partner
7731 678 1629

You would find wherever that redirect is coming from and point it to /pages/inventory instead of the home page.

You need to provide much better detail to get a less vague answer.

https://community.shopify.com/c/blog/how-to-get-support-from-the-community/bc-p/1419945 

 

If you do not know where the redirect is coming from and need it debugged then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Asad-Mahmood
Shopify Partner
409 69 79

This is an accepted solution.

You can use this script to achieve this 

<script>
document.addEventListener('DOMContentLoaded', function() {
  if (window.location.pathname === '/collections/all') {
    window.location.href = '/pages/inventory';
  }
});
</script>
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




dvaughn
Excursionist
176 0 11

This worked, thank you. I would appreciate assistance on how to change the link color located in the policy page in checkout page from blue to blackdvaughn_0-1723498502904.png

namphan
Shopify Partner
2689 349 398

Hi @dvaughn,

Please send me the store link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
dvaughn
Excursionist
176 0 11

My solution has been fixed. I would appreciate assistance on how to change the cart button logo located in the checkout page from the default cart icon to the cart text i already currently have already for the rest of my site.

namphan
Shopify Partner
2689 349 398

HI @dvaughn,

Please send me the store link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
dvaughn
Excursionist
176 0 11
namphan
Shopify Partner
2689 349 398

Hi @dvaughn,

Please send me the password via private message, I will check it

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
namphan
Shopify Partner
2689 349 398

Hi @dvaughn,

You want to edit icon at checkout page:

Screenshot.png

This is not possible unless you use Shopify plus. Hope it is clear to you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
dvaughn
Excursionist
176 0 11

Alright. I'd appreciate if you could help me capitalizing and making all text bold in the checkout page, log in page, thank you page, orders page etc. So  throughout my site. It's already capitalized in my main site just not in those pages.